View Full Version : [ubuntu] New Server

June 14th, 2010, 09:15 PM
I'm currently running Lucid Server of an old machine with a few extra HDDs in as a file/media server... I have managed to procure a faster machine (as my current one is only a 2.0GHz with 256MB RAM) is there any easy way to save all my settings/software/configuration and move it all to the new machine?

I will be using a fresh install on the new machine and my current plan to ensure I have the right packages is:

- make an a list of installed packages:

dpkg --get-selections > installed-software
- then this command use on the new box

dpkg --set-selections < installed-software

But I'm not really sure where to start for software configurations... I was thinking of copying/pasting the contents of /etc/ but I'm not sure how well this will work?

Any help suggestions on easier/better ways to do this would be much appreciated.

June 14th, 2010, 09:22 PM
have a look at clonezilla
it's a livecd designed to clone a system across different hardware

I've not used it personally,
but I'm sure others here have

June 14th, 2010, 10:02 PM
I've looked at the Clonezilla website, and it appears (correct me if I'm wrong) that Clonezilla is for backup/restoration... I don't think this will work in my case as I am changing machine and all the hardware will be different.

June 15th, 2010, 12:25 AM
different hardware shouldn't matter
(all drivers are in linux anyways)

You can make it easier by re-using your existing disk drive(s), in which case just put the old disks in the new case and boot off of them
but I'm guessing you want to use new drives

You just need to clone your partition,
then restore the disk image on a new drive

I'd advise putting your old disk in the new machine (as well as your new disk)
then booting to clonezilla, and cloning old disk to new disk

As I said, I've never actually done this myself
but I don't see any reason for it not to work

You may have to let grub know about the change
but that's about the only config change you should need to make

June 15th, 2010, 12:26 AM
see here

June 15th, 2010, 12:48 PM
You can make it easier by re-using your existing disk drive(s)


Thanks very much for your help, I presumed that moving the HDD would cause problems... Clearly ubuntu = win.

June 15th, 2010, 01:16 PM
you may need to reinstall grub
but the OS itself will move between different hardware no issues

June 15th, 2010, 03:09 PM
I've moved the HDD with ubuntu on it to the new machine and have an interesting problem...

When I boot from cold I receive the following error:


However if I go into the BIOS and restart (without making any changes) grub loads correctly and the system boots. I have tried reinstalling/updating grub with no success :(

June 15th, 2010, 04:04 PM
This should solve it

this will show you how to reinstall grub
(the "9.10 and beyond" bit)

June 16th, 2010, 10:47 AM
I've tried everything suggested to reinstall grub with no luck. I think it's a bios problem since it appears the HDD isn't being detected... Although as soon as I manually tell the BIOS to detect the HDD it finds it!

June 16th, 2010, 01:16 PM
I've sorted the problem now. I THINK that it was because I was using an IDE cable with two plugs and only 1 HDD, by adding the second drive the bios found both drives and it booted properly...