views:

31

answers:

2

I need to discover which file system is installed in a LG phone with windows mobile 6.5. Does anyone knows how?

thanks in advance.

+1  A: 

Connect to the device using ActiveSync and open a remote registry editor. Searcht eh HKLM\Drivers\Active key for a value of DSKx: where x is a number (you can also use FindFirstStore and FindNextStore for that).
Once you have that you can open the store with OpenStore. Then you can find the first partition with FindFirstPartition and FindNextPartition, open the partition on the store and see the filesystem type (in the PARTINFO struct).

Use the Storage Manager API to do all this.

Shaihi
+1  A: 

Most likely it's FAT (altho it doesn't have to be), but that doesn't really help you much. You can't really stuff with it very easily (either reading or writing). Also you have to be aware that there are two sets of filesystems. ROM and RAM, ROM is readonly and isn't always accessible in a read/write form. The ROM filesystem holds most of the system files. The RAM filesystem is the FAT filesystem where all the user data is stored.

Using the Storage Manager API will give you a breakdown of the RAM filesystem and any attached storage devices.

If you really want to you can access the RAM drive sector by sector using DeviceIoControl DISK_IOCTL_WRITE / DISK_IOCTL_WRITE.

Why do you need to know what the filesystem is?

Update:

So the actaul question is: "I need to know why cant i create more de 1000 files with same extension at same folder. But i can create more than 1000 files from different extensions?"

Actually you can. The problem is that on Windows Mobile devices (all the I have tried) is that the creation of the directory entry slows down the more directory entries you create. Once you get to around the 5000 files mark it can take 5 min's to create the directory entry. I've created test applications where it created zero length file and it took almost 48 hours to create 5000 files on one device!!! So yes it can but the creation of the files is very slow. I normally try to limit the number of files in one directory to around the 500 mark. So my advice would be to split the files into directories with a max for upto 500 files by directory. Or store the data in your own file format / database. Either will be speedy.

Shane Powell
I need to know why cant i create more de 1000 files with same extension at same folder. But i can create more than 1000 files from different extensions.
You have run into what I call a bug in the WinCE implementation of there FAT code. What I think they are doing is reading the complete directory listing from disk then writing it out every time a directory entry is added. It means that writing lots of directory entries begins to slow down a lot the more directory entries, once you get to about 5000 directory entries it can take 5 min's to create a file entry. This happens on all WinMo devices I'v seen... I would recommend spliting them into directories of no more than 500 files each or store them in your own file format/database.
Shane Powell