View Full Version : Problem in FAT16 file system

07-09-2007, 06:59 PM
Hi friends,

I have a file in my thumb drive which is FAT16 formatted. The file name is in lower case letters and less than 8 charecters in length.

I read all the data of thumb drive in to a file and I opened this file with Hex editor. There when I searched for the long filename for this file, I could not be able to find it. I found the short file name.

But when I open the thumb drive in Windows OS it is showing the long file name. Where these long file names are exactly stored?

Could you please help me?
Thank you

07-09-2007, 10:40 PM
How exactly did you read the data off? Did you read each file (this won't work), or did you do a full dump with something like dd or cat? As far as I'm aware, the filenames are stored in the file allocation tables - not in the files themselves.

Graham L
08-09-2007, 02:28 PM
Long filenames don't exist in a FAT16 filesystem, which allows 11 bytes per entry to store "8.3" filenames in its directories. (Not in the file allocation tables.)

Windows generates these long names for its own nefarious purposes. ;)