This project is read-only.

File system detection...

Apr 1, 2010 at 10:14 PM

What is the correct way to sniff the file system and determine if I should load the NTFS or FAT file system on a partition I'm looking at?  It wasn't clear to me what the model should be, I was wondering what you recommended?



Apr 2, 2010 at 9:54 AM

Hi Bill,

It's one of the gaps in DiscUtils right now, that it doesn't let you probe a partition to discover which file systems it may contain.

On solution might be to check the first few bytes of the partition.  NTFS partitions tend to have the letters 'NTFS' 3 bytes into the partition.  Technically this is the 'OEM name', but it's probably good enough.




Apr 16, 2010 at 8:18 AM

Hey Bill,

have a look here:

In figure 1 you can see the bytes 3 - 6 of the first sector being the "NTFS" string Ken talked about.
It's an example of how a vista Volume boot record looks like.

Ciao Ephraim

Apr 19, 2010 at 8:33 PM
Ephraim, thanks. While I do know how to do it, I was wondering if I had missed any native support in DiscUtils...