Subscribe to News

How to clone computers using the network

Author : Aperell

From TechnologicalWiki

Jump to: navigation, search

Connect both computers by a crossover cable or make sure that both computers have connectivity.

Contents

[edit] Destination Computer Configuration

You must configure destination computer first.

[edit] Network

Configure the network like this:

IP: 192.168.0.2

NetMask: 255.255.255.0

[edit] Filesystems

Then, open a root terminal in the destination computer and unmount all filesystems:

 umount -a 

Next type this:

nc -l -p 8000 > /dev/destination_device

The destination device depends on your hardware configuration. If you got IDE drives, you will have hd* but if you have sata drives, you will got sd* in your /dev directory.

This computer are now ready for receiving data from tcp port 8000.

[edit] Origin Computer Configuration

[edit] Network

Configure the network like this:

IP: 192.168.0.1

NetMask: 255.255.255.0

[edit] Filesystems

Unmount all filesystems, you cannot run this with any filesystem mounted. You can do it typing in a root console:

 umount -a 

[edit] Making the Copy

This process may take a very long time, depending the size of the origin device. In the origin computer, in a root terminal, type this:

 dd if=/dev/origin_device | nc 192.168.0.2 8000 

Wait until the copy has ended. Please, note that this method can only work with linux distros. Other OS (such as MS Windows) maybe does not work properly in the destination computer.

Main Collaborators