GNU/Linux Desktop Survival Guide
by Graham Williams |
|||||
Copy a Floppy |
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:
$ dd bs=2x80x18b if=/dev/fd0 of=/tmp/floppy.image 1+0 records in 1+0 records out |
$ dd bs=2x80x18b < /tmp/floppy.image > /dev/fd0 1+0 records in 1+0 records out |
$ cp /dev/fd0 /tmp/floppy.image |