Page 1 of 1

Floppy Drive BootSector Problem

Posted: Mon Nov 05, 2007 3:11 pm
by 01000101
I put together a simple realmode bootloader, but when I try to put my kenel.bin onto the floppy drive it says "the disk in drive A is not formatted" and gives me that option to format it or not.

My bootsector ends with the standard

Code: Select all

times 510 - ($-$$) db 0 
dw 0xAA55
Why would the floppy not let me write to it anymore? is the bootloader messing up the FAT table or am I writing to many/to few zeros to the end of the bootsector image?

Posted: Mon Nov 05, 2007 3:35 pm
by Brynet-Inc
If you overwrite the first 512 bytes with a bootloader that isn't FAT-compatible.. It won't be recognized as FAT formatted.

This will make writing files to your disk in the "conventional" way very difficult.. ;)

http://en.wikipedia.org/wiki/File_Alloc ... oot_Sector

You can find more by searching the Forums/Wiki & Google.. Have fun 8)

Re: Floppy Drive BootSector Problem

Posted: Tue Nov 06, 2007 12:08 am
by Candy
01000101 wrote:Why would the floppy not let me write to it anymore?
Windows won't let you read the floppy as a FAT12 floppy because it isn't. Find the FAT12 spec and look for BPB.