View Full Version : [ubuntu] Move Ubuntu 12.04 from one HD to another

July 5th, 2012, 10:11 PM
My computer has one 1TB HD (sda) and 1 500GB HD (sdc). Ubuntu 10.10 is installed on the 1TB HD. I installed 12.04 on the 500GB HD and am now satisfied that I have moved all files I wanted from the 10.10 HD to the 500GB Ubuntu 12.04 HD.
I want to get rid of the 10.10 installation and move the 12.04 installation to the 1TB HD. Is it possible to do this and, if so, how?
Many thanks,

July 6th, 2012, 05:10 PM
There are several ways to move it and each requires some editing of UUIDs, fstab and reinstall of grub2's boot loader to the MBR.

You can do image copies, but cannot have duplicate UUIDs so they have to be changed if you want both drives still connected. Some have used dd (nickname Data Destroyer) which can work but any typo destroys data and you have to edit UUIDs.

While you can do the move, I suggest a reinstall. You then can move /home and export a list of installed applications and you will have the same version on both drives. If you do not want to down load all the applications and are installing exactly the same version and have not housecleaned you can copy the .debs to the new install to save downloading. I like having fully workable systems on different drives, just in case one drive fails. Although I also have liveCD/USB and a full install on a flash drive also. :)

To move /home uses rsync

I assume if system crashes I will reinstall, so my backup procedure is to have everything I need to restore.
Oldfred's list of stuff to backup May 2011:

from lovinglinux - use dpkg to list installed apps
From old install
dpkg --get-selections > ~/my-packages
From New install
sudo dpkg --set-selections < my-packages
sudo apt-get -y update
sudo apt-get dselect-upgrade

Location of downloaded debs

discussion of alternatives/strategy backups
Full image backups
Free Imaging software - CloneZilla & PartImage - Tutorial

Move entire OS to another drive - but new install often easier

July 6th, 2012, 06:30 PM
Thank you! I appreciate your time....
I will try to accomplish the task and let you know how it turns out.