Page 1 of 1

Formatting a FAT12 floppy

Posted: Wed Jul 13, 2016 1:51 am
by cyanDev
Hello!
I have a floppy emulated using a VFD.
Then I have a bootloader with OEM parameter block:

Code: Select all

;*************************************************;
;	OEM Parameter block
;*************************************************;

bpbOEM					db "cyanOS  "
bpbBytesPerSector:  	DW 512
bpbSectorsPerCluster: 	DB 1
bpbReservedSectors: 	DW 1
bpbNumberOfFATs: 	    DB 2
bpbRootEntries: 	    DW 224
bpbTotalSectors: 	    DW 2880
bpbMedia: 	            DB 0xF0
bpbSectorsPerFAT: 	    DW 9
bpbSectorsPerTrack: 	DW 18
bpbHeadsPerCylinder: 	DW 2
bpbHiddenSectors: 	    DD 0
bpbTotalSectorsBig:     DD 0
bsDriveNumber: 	        DB 0
bsUnused: 	            DB 0
bsExtBootSignature: 	DB 0x29
bsSerialNumber:	        DD 0xa0a1a2a3
bsVolumeLabel: 	        DB "CYANOS FLP "
bsFileSystem: 	        DB "FAT12   "
I assume, that if the floppy has a FAT12 file system it should be recognized by windows. But when i try to access it using windows explorer it says, that the floppy is not formatted. Am I missing something or is this normal?

Thanks for all the answers,
cyan

Re: Formatting a FAT12 floppy

Posted: Wed Jul 13, 2016 2:22 am
by iansjack
What are the first three bytes of your boot sector?

What about the rest of the disk? Is it formatted?

Re: Formatting a FAT12 floppy

Posted: Wed Jul 13, 2016 2:30 am
by alexfru
iansjack is spot-on! Windows wants a jump as the very first instruction. See mine for example.