Results 1 to 6 of 6

Thread: Move installation to different computer

  1. #1
    Join Date
    Mar 2009
    Beans
    128

    Move installation to different computer

    I have been playing/experimenting with Ubuntu on an extra laptop I have. My main laptop is still XP pro. I am ready to convert that laptop to Ubuntu Jaunty. I really like how I have my current installation set up and don't really want to go through everything again.

    I know this is almost impossible to do in Windows, but is there a way to simply move/clone my current installation to an entirely different PC?

  2. #2
    Join Date
    Jun 2009
    Beans
    4

    Re: Move installation to different computer

    I've done this loads of times before using SuSE, Slackware, & Debian. Just by copying all the files over and tweaking the odd hostname, network address, and stuff.

    But with Ubuntu, I just can't get it to start up. I don't know what's going wrong.

  3. #3
    Join Date
    Jun 2006
    Location
    UK
    Beans
    Hidden!
    Distro
    Ubuntu 22.04 Jammy Jellyfish

    Re: Move installation to different computer

    Quote Originally Posted by edgeeffect View Post
    But with Ubuntu, I just can't get it to start up. I don't know what's going wrong.
    You need to edit /boot/grub/menu.lst and /etc/fstab. Ubuntu uses UUIDs wherever possible in both those files. Because you've moved the installation from one hard drive to another, all the UUIDs (for swap, / and whatever else you might have) will have changed.

    Either edit those files to use /dev/sda1 type references or run 'sudo blkid' from a live CD to get the new UUIDs and substitute these UUIDs into the two files. If you go for the former option be aware that in menu.lst, instead of a root line, you have something like this:

    Code:
    uuid        blahblahblah
    You'll need to change that to

    Code:
    root    (hd0,1)
    ... or whatever the appropriate (hdx,y) number is.

  4. #4
    Join Date
    Apr 2007
    Location
    Eldorado, NM
    Beans
    5,060
    Distro
    Ubuntu 18.04 Bionic Beaver

    Re: Move installation to different computer

    This may work, but because the hardware is different and usually detected and set up upon installing, certain things may no longer work. Examples might be video in addition to the uuids changing, as others have stated.

    Ubuntu keeps configurations and such for apps in /home/user in hidden directories that begin with a dot (.). You can certainly back those up and copy them over to the new install.
    -merlin

  5. #5
    Join Date
    Mar 2006
    Location
    Williams Lake
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Move installation to different computer

    I would suggest taking the hard drive from your spare laptop and inserting it in the new one and see what happens. If everything works without to many problems, use Remastersys to create a clone of your install and install it on your new laptop.

  6. #6
    Join Date
    Jun 2009
    Beans
    4

    Re: Move installation to different computer

    Quote Originally Posted by coffeecat View Post
    You need to edit /boot/grub/menu.lst and /etc/fstab. Ubuntu uses UUIDs wherever possible in both those files. Because you've moved the installation from one hard drive to another, all the UUIDs (for swap, / and whatever else you might have) will have changed.

    Either edit those files to use /dev/sda1 type references or run 'sudo blkid' from a live CD to get the new UUIDs and substitute these UUIDs into the two files. If you go for the former option be aware that in menu.lst, instead of a root line, you have something like this:

    Code:
    uuid        blahblahblah
    You'll need to change that to

    Code:
    root    (hd0,1)
    ... or whatever the appropriate (hdx,y) number is.
    Yeah... I've done that but it still inundates me with errors on boot-up

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •