[Linux] dd command displays the progress of the migration and manual systems

dd command displays the progress

1. The first dd command execution window
2. The open another window, the pkill -USR1. 5 -n perform the -X-Watch dd
3. dd performed to show the progress in the first window dd command execution until the task is completed

Disk cloning dd network

dd if=/dev/sda |ssh xxx.xxx.xxx.xxx “dd of=/dev/sda bs=4M”

linux manual migration method

1. In the target machine hangs live CD, and can be configured through an IP address, open the ssh server, set the root password. 2. In the original machine to perform IF = dd / dev / sda | SSH xxx.xxx.xxx.xxx "dd of = / dev / sda bs = 4M"
3. The second step will be completed before the target live CD boot system where partition is mounted up, the install execution --root-Directory-grub = / mnt / boot / dev / SDA
4. reboot target
enter the grub 5. start>
6.ls see boot District, for example, found in the query (hd0, msdos1). Executive: SET = the root (hd0, msdos1); SET = prefix (hd0, msdos1) / grub2; the insmod Normal; Normal
7. The above are performed to enter the system
8. The system performs the install-grub2 / dev / SDA
. 9. reboot the target machine to complete the migration.

Guess you like

Origin www.cnblogs.com/grumpyhippo/p/11260161.html