Fat boot sector
Posted: Thu Sep 07, 2006 12:28 am
ok, i have been looking at the specs from http://osdever.net/documents/fatgen103.pdf?the_id=40
and it says the first sector should have all the information about the filesystem.
well, when i read it in.
the jump boot code is there, and the OEM id is there, but after that, everything appears to be wrong. its reporting 258bytes per sector, and 0 fats. but i dont think it is actually messed up, because grub loads things perfectly fine from the floppy image, and when i mount it in linux i can manipulate the filesystem. which i wouldn't figure i could do if it was really all messed up.
i have double checked my struture in my code, and it follows the documentation exactly. and have even looked at other example code and it matches.
any insight as to why this all looks this way?
and it says the first sector should have all the information about the filesystem.
well, when i read it in.
the jump boot code is there, and the OEM id is there, but after that, everything appears to be wrong. its reporting 258bytes per sector, and 0 fats. but i dont think it is actually messed up, because grub loads things perfectly fine from the floppy image, and when i mount it in linux i can manipulate the filesystem. which i wouldn't figure i could do if it was really all messed up.
i have double checked my struture in my code, and it follows the documentation exactly. and have even looked at other example code and it matches.
any insight as to why this all looks this way?