Home > gentoo, hardware > clone discs over the network

clone discs over the network

its easy if you know how:
A is the computer we want to clone, B is the target.
1) download and burn two gentoo installation CDs and boot them on both systems.
2) give the root user a password and start sshd:

1
2
passwd
/etc/init.d/sshd start

3) clone discs via dd and ssh: (execute this on A)

1
dd if=/dev/hda bs=512 | ssh root@<IP of B> "dd of=/dev/hda"

4) thats all. You can view the status of the operation via:

1
kill -SIGUSR1 `ps | grep dd | awk '{ print $1 }'`

EDIT: better solution (with compression over the network):
on B:

1
netcat -l -p 11000 | bzip2 -d | dd of=/dev/sda

on A:

1
bzip2 -c /dev/sda | netcat <IP of B> 11000
Categories: gentoo, hardware Tags:
  1. No comments yet.
  1. No trackbacks yet.


8 − eight =