Tag: clone
How to clone a disk on linux
by z3n on Jul.05, 2010, under Linux Happyness
Problem:
How to do a 1:1 copy of a disk on linux?
Solution:
dd bs=4k if=/dev/SOURCE of=/dev/DESTINATION conv=noerror,sync
This will make a 1:1 copy directly into the destination device, you should be aware that both devices should have the same size, so make sure you know which one is the source and destination in order to avoid catastrophic fail.
For your enjoyment, you can also make a iso image:
dd if=/dev/SOURCE of=/path/to/image.iso
Source: