1

I have a nicely configured Ubuntu 9.10 machine, with crossover linux (from Codeweavers) installed. I have the Nvidia drivers installed. Everything is just as I want it.

Now I want to move to a new machine with different hardware: different sized hard drive, different size RAM, different video card, etc. I tried the technique suggested on Ubuntu forums, "Howto: Backup and restore your system!". The results:

  • New system complains about swap not being found
  • New system complains about not finding Nvidia hardware, and I can't open the System->Administration->Hardware Drivers application (i.e., /usr/bin/jockey-gtk) to fix the problem.
  • As result of nvidia, X-Windows is throwing errors, and the on screen process for fixing X-Windows isn't working.

How do I restore a backup of my old system, including my Crossover Linux installation, to a new machine with different hardware installed?

quack quixote
  • 43,504
pcapademic
  • 3,821

6 Answers6

2

If you install a fresh install, then setup your hardware you can just copy your home directory over. With your home directory you'll be able to keep all settings for programs and desktop environment as well as your files. Isn't setting up your hardware on Ubuntu just a couple of extra minutes compared to the install time anyway?

Chris
  • 240
2

I agree with Chris that it would probably be safer to do a fresh install and copy over your home directory, but would add that you can save a list of installed packages with the command dpkg --get-selections > ~/packages and then restore it with sudo dpkg --set-selections < ~/packages && apt-get dselect-upgrade.

Neal
  • 8,838
0

New system complains about swap not being found

When you partitioned the new drive you either didn't make a swap partition, or never ran mkswap on it. Edit /etc/fstab, fix(or just comment out) the swap line.

New system complains about not finding Nvidia hardware, and I can't open the System->Administration->Hardware Drivers application (i.e., /usr/bin/jockey-gtk) to fix the problem.

Why can't you?

newer versions of X don't need a config file.

try

cd /etc/X11
mv xorg.conf xorg.conf.disabled

As result of nvidia, X-Windows is throwing errors, and the on screen process for fixing X-Windows isn't working.

What errors?

FYI, there is no such thing as X-Windows.

user23307
  • 7,127
0

You should not expect this kind of image file system over to different HW would work at all. If you like to keep a identical image, you should use the Virtual Machine such as vmWare where the vmdk file can be easily migrate to different HW.

0

If you're brave, you could try rsync to make an exact mirror on a hard disk that can be installed into the dest system. Otherwise, here is how I would do that exact task with my debian systems - should be almost if not identical to ubuntu.

Source System

1) dpkg -l | awk '{print $2}' > installed_packages.txt
2) tar -czf etc.tar.gz /etc
3) tar -czf home.tar.gz /home
4) tar -czf root.tar.gz /root

Destination System:

1) apt-get install `cat installed_packages.txt`
2) untar the the 3 gz file where they belong
3) reboot
0

I wouldn't migrate a system running blob drivers such as Nvidia. I have no clue what Nvidia's setup process entails (it might be very specific) and write hardware-specific information to a config file.

The FLOSS drivers all migrated cleanly (as one would expect them to) as you haven't had any other errors. :)

The swap issue is solved by other answers; but to reiterate you probably just need to change the UUID of the swap partition in the /etc/fstab file.

Broam
  • 4,084