On Sat, Jul 01, 2000 at 03:38:37PM -0500, John McCarron wrote:
> How would I go about copying one of my linux boot diskettes?
You can do a byte-for-byte copy of a disk like this (as root):
(Insert source floppy in the drive)
dd if=/dev/fd0 of=/tmp/disk.image
(Switch disks, put in the target floppy)
dd if=/tmp/disk.image of=/dev/fd0
If you have two floppy disks, you can do a byte-for-byte copy
of one to the other like this:
dd if=/dev/fd0 of=/dev/fd1
The DD command is really cool, it has dozens of uses. Some
other examples:
Making an ISO image of a CD-ROM:
dd if=/dev/hdb of=/cd.image
Creating a blank 64MB file (such as to use for a swap file)
dd if=/dev/zero of=/file bs=1M count=64
Overwriting your entire hard drive with 0's (not recommended):
dd if=/dev/zero of=/dev/hda
Doing a byte for byte copy of one hard drive to another:
dd if=/dev/hda of=/dev/hdb
Overwritting a floppy drive with random data, to keep its contents
from falling into the hands of the enemy:
dd if=/dev/urandom of=/dev/hdb
Generating a 128-byte file containing random data:
dd if=/dev/urandom of=~/file bs=128 count=1
You get the idea.
dd is cool.
--
Craig McPherson
Network Admin
Baptist Student Union
Fayetteville, Arkansas
_______________________________________________
Stormlinux-users-list mailing list
[EMAIL PROTECTED]
http://www.stormix.com/community/lists/listinfo/stormlinux-users-list