[ubuntu-nz] Cloning an ubuntu install.
Steve Holdoway
steve at greengecko.co.nz
Thu Jan 24 22:07:42 GMT 2008
1. Boot off a live CD, with the new hard disk installed as well as the old one.
2. Partition up your new disk, and make the new file systems.
3. for each pair of partitions ( not swap ones ), mount old and new, and copy the contents:
cd /old
tar cf - . | ( cd /new ; tar xpf - )
is a good way.
5. format the new swap space
mkswap /dev/sd1..
4. Replace the bootstrap.
grub
grub> root (hd1,0) [or whichever the new one is]
grub> setup (hd1)
grub> quit
The new disk should then boot in your new server. This will allow you the freedom to resize any partitions with the wisdom of hindsight. If you want to change the number/location of paritions, then you'll need to reflect this in the new /etc/fstab.
The only thing I'm not too sure about is the disk label stuff that ubuntu uses... whether you'll need new ones or not as I avoid them at the moment. Maybe someone who's suffered can comment.
Steve
On Fri, 25 Jan 2008 10:28:01 +1300
"Tim Uckun" <timuckun at gmail.com> wrote:
> I have an ubuntu 7.10 server set up. The server is having some
> hardware issues and I would like to transfer the OS to a new server.
> What is the best way to do such a thing?
>
> I should point out that I installed asterisk on it so it created at
> least one device (ztdummy). I recognize that I might have to recompile
> asterisk and zaptel.
>
> Thanks.
>
> --
> ubuntu-nz mailing list
> ubuntu-nz at lists.ubuntu.com
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-nz
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/ubuntu-nz/attachments/20080125/50278660/attachment.pgp
More information about the ubuntu-nz
mailing list