Skip to main content

Thread: Transfer an entire installation that has multiple mounting points to a new drive.


hello all,

need transfer entire ubuntu 12.04lts installation (can't upgrade since don't have enough disk space) new hard drive. confuses , concerns me have different mount points files (such /var). perhaps explain:
  • current installation: "/" mounted approximately 11 gib partition on corsair 60gb ssd, , "/usr" mounted approximately 100 gib partition on seagate 1tb hdd.
  • new installtion: "/" mounted partition on new samsung 128gb ssd, , (i believe right - i'm not booted on new installation right now) "/home" (also, note "/home" encrypted) mounted appoximately 380 gib partition on seagate 1tb hdd.
  • my linux swap partition appoximately 20 gib partition on seagate 1tb hdd.
  • window$ installation: installed approximately 49 gib partition on corsair 60gb ssd, appoximately 105 mib system reserve on partition on corsair 60gb ssd, , mounted approximately 500 gib partition on seagate 1tb hdd.


it's of mess...

anyway, how go transferring current installation new installation, without having worry grub not recognizing or other stuff that? should mention have seagate 2tb backup drive if need use in process transfer files (though, note i'd preferably keep of settings , preferences on of installed programs).

in advance!

previously, i've tarred entire system , extracted onto correctly formatted , mounted filesystem. this bit complicated, may you're looking for. allow me explain:

first, tar system:
code:
# tar cjfvp system.tar.bz2 / --exclude=/proc --exclude=/tmp --exclude=/dev --exclude=/sys --exclude=/run ...
(you'll need disk space that; expect take ~80% of size of entire system. consider ignoring places /home/user/music if have backed up. it's worth noting fat32 has max file size of ~4gb, can't use external drive formatted that.)
if you're wondering cjvfp options, man tar can sort out, p very important.

tar image, can fire live cd of choice, mount / partition on, say, /mnt/ubuntu, , following in case of /var on sda3, /boot on sda1, / on sda2, /home on sda4:
code:
# mkdir /mnt/ubuntu # mount /dev/sda2 /mnt/ubuntu # mkdir /mnt/ubuntu/boot && mkdir /mnt/ubuntu/home && mkdir /mnt/ubuntu/var # mount /dev/sda1 /mnt/ubuntu/boot # mount /dev/sda4 /mnt/ubuntu/home # mount /dev/sda3 /mnt/ubuntu/var # cp /path/to/system.tar.bz2 /mnt/ubuntu/ # cd /mnt/ubuntu # tar xjvfp system.tar.bz2
finally, you'll need install grub, chroot in:
code:
# mount -t proc none /mnt/ubuntu/proc # mount -r /dev /mnt/ubuntu/dev # mount -r /sys /mnt/ubuntu/sys # chroot /mnt/ubuntu /bin/bash # grub-install /dev/sda
finally, you'll have edit /etc/fstab reflect new system. ubuntu docs should have info on this, , arch , gentoo docs reference too.



edit: also, doubt you'd ever need 100gb /usr. consider having of on ssd can, improve system performance, , /usr doesn't lot of writing on ubuntu.

also, not mess windows partition, , don't try method it. doing first results in feaking out... should know.
doing second hopeless, i'd tempted see exotic error messages puts out.


Forum The Ubuntu Forum Community Ubuntu Official Flavours Support General Help [ubuntu] Transfer an entire installation that has multiple mounting points to a new drive.


Ubuntu

Comments

Popular posts from this blog

Could not place because the source rectangle is empty

Thread: Using smartcard reader with vpnc

Adobe Font Folio 7.0 or just 7?