Page 1 of 1
FAT12 question
Posted: Sun Dec 14, 2008 9:25 am
by renovatio
Hello, when windows formats my diskette with Fat12, the name of the first file, is the name of the diskette, this isn't specified in the FAT MS whitepaper. And when i format with MSDOS6.22 everything is ok. Why is that happening?
Re: FAT12 question
Posted: Sun Dec 14, 2008 12:17 pm
by Troy Martin
I think it has something to do with the Windoze long filename (LFN) kludge. IIRC the LFN directory entries start with the byte 0xF0.
Re: FAT12 question
Posted: Sun Dec 14, 2008 1:39 pm
by ru2aqare
Troy Martin wrote:I think it has something to do with the Windoze long filename (LFN) kludge. IIRC the LFN directory entries start with the byte 0xF0.
The Windows format command puts the volume name as the first entry in the root directory - if you enter one. It also sets the file attributes to a special value (0x08 if I remember correctly), so you can skip entries that have this value as the file attributes.
The LFN entries start with the byte 0x0F as a marker.
Re: FAT12 question
Posted: Sun Dec 14, 2008 3:12 pm
by Troy Martin
ru2aqare wrote:The LFN entries start with the byte 0x0F as a marker.
Ahh, I was close
Thanks, now I can add that to my FAT driver when I write it!
Re: FAT12 question
Posted: Sun Dec 14, 2008 5:13 pm
by renovatio
Thank you very much...