24.10 Floppy Disk Copy
The common geometry of a 3.5” floppy disk has 18 sectors per track with two heads and 80 cylinders. Thus, optimising the dd command to read the contents of a floppy we would use:
Then to write to another floppy:
The 2x
multiplies the sector size by the number of heads
while the 80x
identifies the number of cylinders. The
18b
specifies 18 sectors of 512 bytes. This gives a total of
1,474,560 bytes and issues a single 1,474,560-byte read request to
/dev/fd0 and a single 1,474,560 write request to /tmp/floppy.image,
rather than the corresponding cp command:
which issues 360 reads and writes of 4,096 bytes each.
Your donation will support ongoing availability and give you access to the PDF version of this book. Desktop Survival Guides include Data Science, GNU/Linux, and MLHub. Books available on Amazon include Data Mining with Rattle and Essentials of Data Science. Popular open source software includes rattle, wajig, and mlhub. Hosted by Togaware, a pioneer of free and open source software since 1984. Copyright © 1995-2022 Graham.Williams@togaware.com Creative Commons Attribution-ShareAlike 4.0