PDA

View Full Version : [ubuntu] Move an install to another partition (Hardy)...



Moozillaaa
November 16th, 2011, 03:46 AM
Anybody know which files are necessary to move a Hardy install to another partition, on another disk?

I COULD do it if the new partition was BIGGER - cp /dev/oldinstall /dev/newinstall - but it ain't bigger...

Help?


(of course, feel free to ask me why I use Hardy, to tell me also about the distro that you use, what it does, what you had for breakfast, your favorite color, and other stuff that doesn't matter to anyone, all with out answering the question :lolflag: :lolflag: :lolflag: )

darkod
November 16th, 2011, 12:14 PM
Are you talking about moving an image to a smaller partition? Because if you want to simply move to another partition using the same computer/hardware, that's possible.

Take a look at FSArchiver. It creates a backup of your partition which can be restored to another partition as long as the destination is bigger than the data size (but it doesn't have to be bigger than the source partition).

It can be installed as stand alone program but because the partition you're backing up need to be unmounted during backup, you can't use it from your running system. In that case you can download and use the System Rescue CD, it includes fsarchiver.

http://www.fsarchiver.org/Main_Page

Moozillaaa
November 16th, 2011, 11:59 PM
Thanks - that's exactly what I was looking for...

darkod
November 17th, 2011, 12:29 AM
One thing I forgot to point out: I believe grub is looking for the boot files in a particular physical location. The restore will not put them on the exact physical location.
In case you are planning to restore to the same disk, and it doesn't boor straight away, reinstall grub to the MBR first and it should be fine.
If you are restoring to another disk you will probably need to reinstall grub anyway.

Moozillaaa
November 17th, 2011, 11:30 PM
One thing I forgot to point out: I believe grub is looking for the boot files in a particular physical location. The restore will not put them on the exact physical location.
In case you are planning to restore to the same disk, and it doesn't boor straight away, reinstall grub to the MBR first and it should be fine.
If you are restoring to another disk you will probably need to reinstall grub anyway.


GRUB2 probably IS looking for a particular location, but I think legacy GRUB/Hardy 8.04 might not...

I got the re-location done (multiboot), and GRUB behaved well. Of course, XP was unhappy loading from a different disk, and different channel SATA -> IDE slave...

Thanks again there...