Skip to content

Instantly share code, notes, and snippets.

@takamichih
Created February 16, 2017 11:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save takamichih/a0e2d42d65845875726d486d12a6d4b8 to your computer and use it in GitHub Desktop.
Save takamichih/a0e2d42d65845875726d486d12a6d4b8 to your computer and use it in GitHub Desktop.
1.2M (1M) floppy format
1.232KiB
1024 (bytes/sector) * 1232 (sectors)
mformat command:
mformat -t77 -h2 -s8 -S3 -c1 -m0xfe -r6
-S3: sector size= 1 << (sizecode+7) = 1024
-c1: sectors per cluster= 1
-m0xfe: media descriptor
-r6: root sectors (192 entries)
device information:
===================
filename="/dev/usbfd0"
sectors per track: 8
heads: 2
cylinders: 77
mformat command line: mformat -t 77 -h 2 -s 8 -S 3 a:
bootsector information
======================
banner:"NEC 5.0"
sector size: 1024 bytes
cluster size: 1 sectors
reserved (boot) sectors: 1
fats: 2
max available root directory slots: 192
small size: 1232 sectors
media descriptor byte: 0xfe
sectors per fat: 2
sectors per track: 8
heads: 2
hidden sectors: 0
big size: 0 sectors
physical drive id: 0x80
reserved=0x0
dos4=0x29
serial number: 051011E6
disk label="NO NAME "
disk type="FAT12 "
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment