How do I move (copy) my entire Ubuntu system to a different hard disk?

I actually ended up using Gparted from the Live CD. I copied the partition and pasted it in the unallocated space on the other HDD. Then I used blkid to check the UUIDs and edited the fstab file. Worked like a charm!


Well, I just used usb stick + ubuntu live.

I was transferring ubuntu 13.10 from larger hdd to a smaller ssd, and clonezilla "said" that it can't be done this way since target partition is smaller than the source partition.

So I started ubuntu live, mounted both hdd's (new disk, was partitioned earlier of course, don't forget about swap ;) ), and just:

cd /media/ubuntu/old-hdd-uuid/

then:

sudo cp -R --preserve=all bin/ boot/ cdrom/ dev/ etc/ home/ lib/ lib32/ lib64/ media/ mnt/ opt/ proc/ root/ run/ sbin/ srv/ sys/ tmp/ usr/ var/ /media/ubuntu/new-hdd-uuid/

above you can see that it's just copying all directories from one hdd to another, recursively with all permissions and stuff preserved.

cd /media/ubuntu/new-hdd-uuid/

then I had to make two symlinks in root directory of a new disk:

sudo ln -s boot/vmlinuz-x.xx.x-xx-generic vmlinuz
sudo ln -s boot/initrd.img-x.xx.x-xx-generic initrd.img

and the next step was installing grub, so:

sudo grub-install --boot-directory=boot/ /dev/sdxy

where x - device, y - partition number (if unsure use cfdisk or fdisk to print partition table...)

and the last step was, changing uuid of a new hdd to uuid from old hdd (it's the easiest way to fool grub config, fstab or else without searching and fixing configurations)

sudo tune2fs /dev/sdxy -U OLD-UUID

new UUID will show after device remounting. So now reboot and if everything is ok, your ubuntu should start...


You can do it by using dd. For complete info check the site.

Clone a Hard Drive Using an Ubuntu Live CD

Warning dd is a very powerful low-level tool and even one little typo is sufficient to wipe out an entire disk. Please be very careful with its use and try to use a higher-level tool if at all possible.
Note also that this method only works if your target disk is the same size or larger


Cloning hard drives is a common maintenance task. Don’t bother burning a new boot CD or paying for new software – you can do it easily with your Ubuntu Live CD.

Not only can you do this with your Ubuntu Live CD, you can do it right out of the box – no additional software needed! The program we’ll use is called dd, and it’s included with pretty much all Linux distributions. dd is a utility used to do low-level copying – rather than working with files, it works directly on the raw data on a storage device.

You can also use:

Clonezilla, a free hard drive cloning software. Clonezilla runs from a live CD, and features a simple user interface. You’ll still need to be aware of what you’re doing, of course, but this tool can simplify your job immensely with its step-by-step breakdown.

You can download Clonezilla here

Warning Make sure that you check out the Limitation of Clonzilla before you start.

You also mentioned that you have used Ghost for windows, well you can use Ghost for Linux as well.

Source: http://www.howtogeek.com/howto/19141/clone-a-hard-drive-using-an-ubuntu-live-cd/

Source: http://www.makeuseof.com/tag/2-methods-to-clone-your-linux-hard-drive/