Re: Automatic Clone of Ubuntu systems



Hi John!

I've been trying to solve a similar problem and I'll be happy to share what I've found. FYI, the problem I've been trying to solve is that of an OEM selling PCs, so I have to install Ubuntu from bare metal.

My suggestions:
---------------
* I think that your best bet is partimage:

http://www.partimage.org/Main_Page

There is a server and client version. You make a partition image, and the server sends it to all the clients. The problem I had with partimage is that it only does an impage of a *partition*. In particular, it doesn't touch the MBR. So it's no good for my situation.

* Though this doesn't directly address your question, you'll want to bookmark this page: http://www.sysresccd.org/Main_Page

SystemRescueCD is a neat live CD with tools like qparted, partimage, and the like. It includes instructions for making your own custom CD or DVD. So, for example, you could make a DVD that contains the very same disk image that you want to install. This could be very useful for doing a bare metal installation.

* An alternative to Partimage is SystemImager.

http://www.systemimager.org/

From what I can see, it's the same sort of cost-benefit trade-off of Partimage.

* Another alternative is dd

http://www.inference.phy.cam.ac.uk/saw27/notes/backup-hard-disk-partitions.html

dd does a byte-by-byte copy of either a partition or a disk. The benefit is that it does include the MBR, so it works for a bare-metal installation. The drawback is that the two disks must be identical, up to the disk geometry level. If they have different disk geometry, dd won't work and you'll have to sfdisk to make the drive usable again.

Another drawback of dd is that it is really slow because it also copies all the 0 bits at the end of the drive. Partimage uses the filesystem so it only copies actual content. dd will take *hours*.

* What solution did I pick in the end?

Well, I don't have a solution yet. I want a bare-metal solution that is fast, so none of the above do it for me. I'm currently going for a custom script. I made an Ubuntu installation and did this:

tar -zcf disk_files.tgz /

My script does the following:

1. sfdisk to partition the new disk properly.
2. mkfs.ext2
3. mount the ext2 partition.
4. Untars the files.

For the final part (MBR) I plan to 'sudo chroot' and then run 'sudo grub install'. I don't know if that will work and I haven't had time to test it.

I would be interested to hear what solution you end up choosing. Maybe you can help me find a good solution for my problem also.

Cheers,
Daniel.

John Schofield wrote:
I'm looking for a tool that lets me clone and restore an entire disk image from an Ubuntu box, a la Norton's Ghost. (But from what I understand, Ghost isn't all that great with Linux volumes.)

The idea is that for servers, I would set them up once correctly, clone that image, and then simply do a bare-metal restore from the cloned image if necessary due to hardware failure or OS corruption.

If there's a tool you've used for this with success, I'd love to hear your stories.

Thanks a bunch!


John Schofield




--
/\/`) http://opendocumentfellowship.org
/\/_/
/\/_/ A life? Sounds great!
\/_/ Do you know where I could download one?
/

--
ubuntu-users mailing list
ubuntu-users@xxxxxxxxxxxxxxxx
https://lists.ubuntu.com/mailman/listinfo/ubuntu-users



Relevant Pages

  • Windows on Mac - how to.
    ... No-nonsense instructions for those "in the know". ... A custom slipstreamed CD is required to install XP on a Mac. ... This procedure WILL WIPE YOUR iMAC DISK CLEAN. ... Partition the disk in two using the OSX CD: ...
    (uk.comp.sys.mac)
  • Re: xp on intel Mac from usb stick?
    ... Would it be possible to run windows xp native from a usb stick? ... A custom slipstreamed CD is required to install XP on a Mac. ... partition managers but if you're feeling adventurous you may ... This procedure WILL WIPE YOUR iMAC DISK CLEAN. ...
    (comp.sys.mac.apps)
  • Re: Dual Boot 98SE and XP on two hard drives with PartitionMagic
    ... >> I have never used the boot manager tools of Partition Magic ... >> on a slave disk. ... > 6) Install XOSL via a bootable floppy ... Primary master disk, primary partition 1, hidden: ...
    (microsoft.public.windowsxp.setup_deployment)
  • Re: quickly partition disk, copy an image, install grub
    ... } drives all wiped clean. ... do a workstation install of ubuntu on one drive and get ... You can find the smallest disk you will have to install on. ... You will have some partition (/home? ...
    (Debian-User)
  • Re: Using partimage and virtualbox
    ... I've used the RescueCD bootable disk with partimage on it to make the ... does not like plain old DVD +R disks and insists on DVD +RW, ... My question is -- should I be breaking the WinXP partition up into DVD ... It seems that virtualboxOSE will only install an OS from either a DVD, ...
    (alt.os.linux.suse)