Clonezilla is an excellent hard disk cloning utility for all disk formats, not just Linux. However, sometimes it gets things wrong and fails to complete a clone successfully. The good news is it tells you when things go wrong, but what to do next?
When I first started working in computing I used to provide operational support for IBM mainframes, and to do that you had to know something called JCL (Job Control Language), a mainframe scripting language. The DD (Data Description )command was a core component to this scripting language, so was rather surprised to find it exists in Unix and Linux.
In Unix and Linux OSs, dd it is used to do low level copying of raw data and is actually used by Clonezilla to do a disk copy should all other methods fail. In my case Clonezilla tried to clone the disk using a method it though would work so never got round to trying dd.
To use dd, boot off a live CD, I use GParted as this shows me graphically the disk structure. As with any disk imaging tool, triple check what you are doing before pressing Enter after typing the command, otherwise you may regret being too hasty.
Open terminal and enter the following:
dd if=/dev/source of=/dev/destination
if stands for Input File and sets the source
of stands for Output File and sets the destination
for example if my source disk is /dev/dsa and my destination disk is /dev/sdb then I would enter
dd if=/dev/sda of=/dev/sdb
As with any traditional Unix/ Linux command, when you press Enter, nothing is displayed on the screen showing progress. If there is a problem, you will be told via a message. Your only clue that the copy is happening will be the hard disk activity light.
To find out more on what dd can do in addition to disk to disk copies, see this excellent article at backuphowto.info.
Powered by Blogilo