FAT12 question

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
renovatio
Member
Member
Posts: 57
Joined: Fri May 23, 2008 5:13 am

FAT12 question

Post 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?
User avatar
Troy Martin
Member
Member
Posts: 1686
Joined: Fri Apr 18, 2008 4:40 pm
Location: Langley, Vancouver, BC, Canada
Contact:

Re: FAT12 question

Post 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.
Image
Image
Solar wrote:It keeps stunning me how friendly we - as a community - are towards people who start programming "their first OS" who don't even have a solid understanding of pointers, their compiler, or how a OS is structured.
I wish I could add more tex
ru2aqare
Member
Member
Posts: 342
Joined: Fri Jul 11, 2008 5:15 am
Location: Hungary

Re: FAT12 question

Post 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.
User avatar
Troy Martin
Member
Member
Posts: 1686
Joined: Fri Apr 18, 2008 4:40 pm
Location: Langley, Vancouver, BC, Canada
Contact:

Re: FAT12 question

Post by Troy Martin »

ru2aqare wrote:The LFN entries start with the byte 0x0F as a marker.
Ahh, I was close :P Thanks, now I can add that to my FAT driver when I write it!
Image
Image
Solar wrote:It keeps stunning me how friendly we - as a community - are towards people who start programming "their first OS" who don't even have a solid understanding of pointers, their compiler, or how a OS is structured.
I wish I could add more tex
renovatio
Member
Member
Posts: 57
Joined: Fri May 23, 2008 5:13 am

Re: FAT12 question

Post by renovatio »

Thank you very much... :)
Post Reply