I didnt catch the begining of the thread so forgive me if Im way off, but
I do the below to clone gentoo, below mine there is another way to do it
using rsync.
-------------------------------------------
cloning disks over the network
I needed to clone a number of notebook hdd's for a small rollout. I'm a
lazy bastard so I thought the easiest way to do this was over the LAN.

Contributed by: Merritt Krakowitzer
Comments on this hack: 0
[05/19/03 | Discuss | Link to this hack]

First boot up the target machine, you need have an sshd daemon running on
the target machine with a network interface. In my case I used the gentoo
linux bootable cd.

start the sshd daemon with
#/etc/init/sshd start
you will also need to change the root passwd
#passwd
If you need more info RTFM.

next bootup the machine you are going to clone, login as root and type the
following

#dd if=/dev/hda bs=10k | ssh $TARGET_IPADDRESS
\ dd of=/dev/hda bs=10k

Wait a couple of hours and your done.

Note: The drive geometry needs to be exactly the same. There are probably
better ways to do this.

See also: man ssh man dd

---------------------------------------------------------------------------
Contributed by: Peter Schillerwein
This clones a running linux-system (really):

rsync -v -r -p -o -g -D -t -S -l -H \
--exclude /mnt/   \
--exclude /proc/ \
--exclude /tmp/ \
--exclude /home/ / /mnt/fireball/

The target-disk is /mnt/fireball in my case. We assume the target-disk is
empty at the first time. My home is on a another disk, so i skip it . The
options are:

--verbose
--recursive
--perms
--owner
--group
--devices
--times
--sparse
--links
--hard-links
# next time(s):
--delete

If you want to see first what happens, add:

--dry-run

Boot from a CD-ROM and mount the target-disk. Fix fstab and lilo.conf.
Create /mnt and /proc and set the right permissions (for this
directories). Then run lilo and reboot. Next time you run rsync, add these
option to the command-line:

--exclude /etc/fstab \
--exclude /etc/lilo.conf \
--delete

Be carefull. This procedure works with a full-blown woody (~70,000 files).


> Try "ghost for Unix", or g4u:
>
> http://www.feyer.de/g4u/
>
> I'm curious to hear if it actaully works myself ;-)
>
> |<eppy
>
>
> --
> [EMAIL PROTECTED] mailing list
>
>


-- 
Merritt Krakowitzer


-----------------------------------------
Disclaimer Legal Notice:
By having opened and read this electronic mail, you are
deemed to have understood and accepted all disclaimers and
conditions pertaining to electronic mail emanating from and
received by the Private Security Industry Regulatory Authority,
further detail of which may be viewed at the following link:
http://www.sira-sa.co.za/disclaimer.htm

--
[EMAIL PROTECTED] mailing list

Reply via email to