Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I wan to use Clonezilla to Copy an Entire Disk to another Server. As the Source Disk resides on a Server, I do not have Access to the server to use a Live-CD. I will therefore have to use the command line from a "rescue System" that lets me mount the Disk I want to clone.

But I have not found any information how to use clonezilla from the Command line. I would be very thankfull for advice how to

1.) Install Clonezialla not(!) to a live CD but rather as a linux system => On Debian 6.0 I do not find anything using: aptitude search clonezilla

2.) What parameters to use to clone for example /dev/sda

Thank you very much!! Markus

share|improve this question
add comment

2 Answers

up vote 2 down vote accepted

Install clonezilla, then run /opt/drbl/sbin/clonezilla (Debian might put this somewhere different, if it's not there, look around a bit for it) . There's a curses-based GUI that will take you through the process. You don't have to screw around with command line arguments at all.

As far as installing it, it should come with DRBL, which you can find at http://drbl.sourceforge.net/

share|improve this answer
add comment

You will need partclone to be installed in the "rescue System".

You can also use a dd+gzip to make the image and then restore it. You can also transfer over the network with netcat.

Destination:

nc -l 12345|gzip -d > /dev/sda1

Source:

dd if=/dev/sda1 bs=1024000|gzip |nc  1.2.3.4 12345

Where 1.2.3.4 is the destination IP. And 12345 is the port in the range 1-65535.

edit: Notice that this approach requires that CHS is the same on both disks. Cylinders, Heads and Sectors. Otherwise you can have boot problems. At least with windows. PS. I coulnd't find the comment button - therefore the edit.

share|improve this answer
    
Thanks Mircea! I upvoted. However that what you described was already that, what I had done. However I have the hope, clonezilla does ist more efficiently. Regarding your example, to improve it you should before using gzip "zero" the empty space for higher compression efficiency. However the described approach took a lot of time and I hoped clonezille had some further tweaks to cut this down. Thanks for your answer. –  Markus Oct 9 '11 at 18:09
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.