Linux system reloading and restoring

  
        

When the ubuntu system was installed for the first time, the composition of the file system was not well understood, so the partition of the home was particularly small when partitioning, which caused the later software to fail to install, saying that the disk was full. So I want to repartition the system.

I found the information on the Internet and said that the GParted tool is good, but I found that my partitions have been mounted, there are no free partitions, I can't reassign the size, so I also failed.

So I decided to reinstall the system and repartition when I installed the system. In order to avoid re-installing the system and reconfiguring the system a lot, I decided to copy the system and then perform the overwrite restore after the installation (ps: This is a big convenience for the Linux system compared to windows, without using the recovery software, directly Covering the original system is fine). So the Internet search system reloading and restoration, this post is a good way to introduce some backup and restore commands:

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

However, when you press the paste method, you will not be able to find the boot partition file and the correct partition table when you restart the machine. The reason is that the Linux boot file boot has been modified. In addition, the fstab file (partition mount file) under /etc has also been modified, so the above situation will occur.

So after reinstalling the system, remember to copy the /boot directory, /etc/fstab file, and vimlinuz, initrd.img files from the system to the u disk or other system partitions that will not be overwritten. Then, use the posted method to restore the previously backed up system. Finally, the /boot directory, /etc/fstab file, and vimlinuz, initrd.img are overwritten again.

Although it is awkward, but the process is simple and easy to understand, you don't need to rewrite Lilo, Grub bootloader, suitable for novices.

If you have a better way to welcome a message, because I am also a violent method for novices, no technical content, I hope the big cows give pointers ~~

Copyright © Windows knowledge All Rights Reserved