mount -t /dev/hdxx_old /source (舊硬碟)
mount -t /dev/hdxx_new /dest (新硬碟)
cd /source
tar -cvBpf – *|(cd /dest;tar -xvBpf -)
或用rsync -ax /source /dest
—————-植入開機檔(grub_1)
1.grub
2.root (hd0,0)
3.setup (hd0)
4.quit
—————-植入開機檔(grub_2)
grub-install-root-directory=/ /dev/sdb-recheck
grub-mkdevicemap
update-grub2
剩下修正fast uuid
ls /dev/disk/by-uuid
——————