Thursday, July 31, 2008

Copying disk partitions

1. Boot into the other partition or using a cd
2. dd if=/dev/sda2 bs=4k | gzip -c > /local/admin/hawkins053b/labf08.img.gz
3. cat labf08.img.gz | nc -q 1 137.142.101.ABC 3333
3a. Substitute 101, 102, 104-123, 125-140 for ABC
4. Log in as root, to each of the machines, nc -l -p 3333 | gunzip | dd of=/dev/sda2 bs=4k
5. change grub for default
6. change network identity

No comments: