čtvrtek 11. prosince 2008

Jak se dá taky kopirovat cely OS :-)

## remote shell na LiveCD SystemRescueCD
ssh root@192.168.0.42


## Vytvoreni parcely a fs

root@ubuntu:~# fdisk -l

Disk /dev/cciss/c0d0: 146.7 GB, 146778685440 bytes

255 heads, 32 sectors/track, 35132 cylinders

Units = cylinders of 8160 * 512 = 4177920 bytes

Device Boot Start End Blocks Id System

/dev/cciss/c0d0p1 1 33132 135178544 83 Linux

/dev/cciss/c0d0p2 33133 35132 8160000 82 Linux swap / Solaris


## Format disk

mkfs.ext3 -m 1 /dev/cciss/c0d0p1

mke2fs 1.40-WIP (14-Nov-2006) # verze libext


mkdir /mnt/disk_os

mount -t ext3 /dev/cciss/c0d0p1 /mnt/disk_os

#export RSYNC_RSH='ssh -c arcfour'

rsync -avx -e "ssh -c arcfour" / root@192.168.0.42:/mnt/disk_os

building file list ...

...

wrote 79643564403 bytes read 11658020 bytes 7454515.22 bytes/sec

total size is 79497824257 speedup is 1.00


Dale lilo.conf nebo grub swap a jine drobnosti :-)

Žádné komentáře: