Linux system reinstallation and restoration

Source: Internet
Author: User
When I first installed the ubuntu system, I didn't know much about the structure of the file system, so the partition for home was very small during partitioning, resulting in no software installation in the later stage.

When I first installed the ubuntu system, I didn't know much about the structure of the file system, so the partition for home was very small during partitioning, so I couldn't install the software later, saying that the disk was full. So I want to repartition the system.

I found information online and said that GParted is a good tool, but I found that all my partitions have been mounted and there are no idle partitions, so I cannot re-allocate the size, so it also fails.

So I decided to reinstall the system and re-partition it when installing the system. To avoid re-installing the system and re-configuring the system, I decided to copy the system, and then overwrite and restore the system (ps: this is a great convenience for linux systems compared to windows systems. you do not need to use restoration software to directly overwrite the original system ). So I searched the internet for system reinstallation and restoration. this post is a good method to introduce some backup recovery commands:

Http://blog.csdn.net/sunnylgz/article/details/8055315

However, when you press the paste method to execute the command, the file of the boot partition and the correct partition table cannot be found when the machine is restarted. The reason is that the linux boot file boot is modified, and the fstab File (partition Mount file) under/etc is also modified.

Therefore, after reinstalling the system, remember to first copy the/boot directory,/etc/fstab file, and vimlinuz, initrd. copy the imgfile to the USB flash drive or other system partitions that will not be overwritten, and then use the paste method to restore the previously backed up system. Finally, overwrite the/boot directory,/etc/fstab file, and vimlinuz, initrd. img again.

Although clumsy, the process is simple and easy to understand, and you do not need to rewrite Lilo and Grub boot programs. it is suitable for beginners.

If you have a better method, please leave a message to discuss it, because I am also a newbie who uses brute force methods and has no technical skills. hope you can give me some advice ~~

Related Article

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.