Linux system Backup Restore tool 1 (DD) (application instance)

Source: Internet
Author: User
Tags uuid

DD Use Tutorial: http://www.cnblogs.com/EasonJim/p/7442223.html

The following instances have not been extensively tested and may not be effective on some machines.

It is generally set around the following points:

1, DD After the adjustment of the official size of the partition

# umount/dev/sdb1 # Uninstall all mounts before Operation # e2fsck-f/dev/sdb1# resize2fs/dev/sdb1

2, if it is dd whole hard disk, need to modify the UUID of the new hard disk, in the following file, but pay attention to mount the location of the new hard disk partition

/etc/fstab

Query uuid Method: http://www.cnblogs.com/EasonJim/p/7471681.html

3, update grub, if you install the new hard disk can normally start the system, run the following command update

sudo update-grub

or fix it with Boot-repair (no use)

sudo add-apt-repository ppa: Yannubuntu/bootboot-repair

4, if the system does not start properly, then you need to go into the live CD, then mount the new hard disk partition, and then update the grub, such as the following actions

#/dev/sdb1/mnt#/dev/mnt//proc/mnt//sys/mnt/sys# Finally switch root root directory to//mnt# execute update-grub to update boot sudo update-grub

Tip: If the hardware drivers are different, be careful about uninstalling (not practiced).

or install and update grub directly (not practiced):

grub2-install/dev//boot/grub2/grub.cfg

Remember to uninstall when you're done with it

#/mnt//mnt//mnt//mnt

Reference:

https://www.v2ex.com/t/342283

Http://www.linuxidc.com/Linux/2015-04/116451.htm (replace motherboard)

https://www.ibm.com/developerworks/cn/linux/l-cn-linux-br1/index.html (Migrating Linux)

HTTP://WWW.JIANSHU.COM/P/82B413FFC40C (migrating to another hard drive)

HTTP://WWW.LINUXFLY.ORG/POST/493/(Migrating the system to a virtual machine)

https://www.v2ex.com/t/183310 (copy to new hard drive)

Https://linux.cn/article-3087-1.html (Grub Repair Tool)

https://www.findhao.net/easycoding/2070 (migrating to a new hard drive)

Http://www.cnblogs.com/platero/p/4069020.html

https://www.kafan.cn/edu/2198281.html (fix grub)

http://blog.chinaunix.net/uid-20548989-id-1667405.html (Unload Drive)

https://askubuntu.com/questions/206283/how-can-i-uninstall-a-nvidia-driver-completely (Unload Drive)

Linux system Backup Restore tool 1 (DD) (application instance)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.