dd, the data duplicator.

dd if=/dev/fd0 of=~/image

Run that as root or some other user that has access to do a raw read of the floppy drive.

dd can do a lot of stuff. The basic syntax is the same, no matter what you’re doing. Here’s a few examples.

Overwrite your hard drive with random garbage:
dd if=/dev/urandom of=/dev/hda

Make an image file from a floppy disk:
dd if=/dev/fd0 of=~/image

Write an image file to a floppy disk (who needs rawrite?):
dd if=~/image of=/dev/fd0

Make a boot disk with your kernel on it:
dd if=/vmlinuz of=/dev/fd0

Make an ISO image of a CD-ROM:
dd if=/dev/cdrom of=~/iso

Create a distinctive signature file:
dd if=/dev/urandom of=~/.sig bs=1024 count=1

Create a 64MB blank file (good for creating swap files)
dd if=/dev/zero of=/swap bs=1M count=64

Completely nuke your Windows partition:
dd if=/dev/zero of=/dev/hda2

Create an image of your Windows partition:
dd if=/dev/hda2 of=~/win

Restore your Windows partition from the image you made when it ineventiably gets screwed up:
dd if=~/win of=/dev/hda2

Copy one partition to another partition:

dd if=/dev/hda2 of=/dev/hdc3

Copyright © 2010 · Hjärnavlämningar | Powered by WordPress