EXAMPLES
A simple inquiry about the drive type:
$ fdcontrol /dev/fd0
1.44M
Same as above, but with verbose output. Note that the result is about the "drive type", as opposed to a "device density", so it is independent from the actual subdevice being used for device.
$ fdcontrol -v /dev/fd0
/dev/fd0: 1.44M drive (3.5" high-density)
Inquiry about the density settings:
$ fdcontrol -F /dev/fd0
18,512,0xff,0x1b,80,500,2,0x6c,1,0,+mfm
The verbose flag makes this human readable:
/dev/fd0: 1440 KB media type
Format: 18,512,0xff,0x1b,80,500,2,0x6c,1,0,+mfm
Sector size: 512
Sectors/track: 18
Heads/cylinder: 2
Cylinders/disk: 80
Transfer rate: 500 kbps
Sector gap:27
Format gap:108
Interleave:1
Side offset: 0
Flags <MFM>
As indicated, trailing commas in the parameter list may be omitted.
In order to access archaic 160 KB single-density (FM encoded) 5.25 media in a modern 1.2M drive, something like the following definition would be needed. (Note that not all controller hardware is actually capable of handling FM encoding at all.)
# fdcontrol -s 16,128,0x80,0x2,40,300,,0x10,,,-mfm,+2step /dev/fd1.1
It is still possible to hook up 8" drives to most modern floppy controllers, given the right cable magic. (On PC hardware, tell the BIOS that it is a 5.25" drive.) The classical 128/26/2/77 format can be read with this entry
fdcontrol -s 26,128,0x80,0x2,77,500,2,0x10,,,-mfm /dev/fd0
SEE ALSO
fdc(4)
HISTORY
AUTHORS