建立類似以下的分割區
Device Boot Start End Sectors Size Id Type
/dev/sdj1 * 2048 908398591 908396544 433.2G 83 Linux
/dev/sdj2 908398592 976773119 68374528 32.6G 5 Extended
/dev/sdj5 908400640 976773119 68372480 32.6G 82 Linux swap / Solaris
sudo mount /dev/sda1 /mnt
rsync -aAXv --exclude={/dev/*,/proc/*,/sys/*,/tmp/*,/run/*,/mnt/*,/media/*,/lost+found} root@120.115.4.160:/ /mnt/
cd /mnt
mkdir dev proc sys tmp run mnt media
grub-install --root-directory=/mnt /dev/sda
blkid /dev/sda1
blkid /dev/sda5
#置換/mnt/boot/grub.cfg的 uuid
#置換/mnt/etc/fstab的/與swap uuid