Solaris Handbook for Sun Peripherals

dd Command

This command converts and copies files with different data formats. One usage of this command is to transfer a file system or partition from your hard disk to a tape. You can also use it to copy files from one hard disk to another. If you use a device with a variable block size, you need to make sure that you use the same block size when you retrieve the data.

The following example shows how to write the file system or partition /user/sunsystem to a 4mm tape drive with a tape drive called /dev/rmt/0. The blocking factor is 96 in this example. This example has been optimized for a 5.0 Gbyte 4mm DDS device.

Example:


example# dd if=/dev/dsk/c0t0d0s7 of=/dev/rmt/0 bs=96k