dd
http://www.thegeekstuff.com/2010/10/dd-command-examples/
https://newcome.wordpress.com/2010/01/14/zero-an-old-hard-disk-using-dd/
How can we back up the MBR and the partition table using the dd command?
dd if=/dev/hdx of=/path/to/image count=1 bs=512
How can we restore the MBR and the partition table using the dd command?
dd if=/path/to/image of=/dev/hdx
How can we restore the MBR without the partition table using the dd command?
dd if=/path/to/image of=/dev/hdx count=1 bs=446
What is the purpose of the dd command?
Convert and copy file.
What are the command line options for the dd command?
dd [option=value]
if=fileOrDevice
of=fileOrDevice
ibs=n // set the input block size to n bytes (default is 512)
obs=n // set the output block size
bs=n
cbs=n // conversion buffer size
skip=n // skip n input block
seek=n // seek n blocks in output before writing
conv=ascii // converts to ASCII, can copy non-Unix format file
Other examples:
dd if=/unix of=/dev/rmt1 bs=512
dd if=/dev/dsk/c1d5s1 of=/dev/rmt1 bs=512 count=64
dd if=/zImage of=/dev/fd0
dd if=/dev/tape/TST600 of=/dump/TST600 bs=60k
dd if=/dev/fdsk of=/tmp/floppy.image
dd if=/tmp/floppy.image of=/dev/fdsk count=<number of blocks>
page revision: 6, last edited: 28 Apr 2017 22:08