Linux reload system, how to save the contents of the hard drive

Source: Internet
Author: User

There was no previous focus on how the reload system retains the contents of the hard drive. But recently there are some files that need to be retained after reloading the system, so it took some time to understand what the disk partition is about.

Reference

http://blog.csdn.net/openn/article/details/9856451

What I want to do is, in the/home directory, I want to be able to keep it after reloading the system.

First of all, if you do not do special processing, the/home directory should be mounted on the SDA1 partition, and the general reload system will be installed to this partition, so every time after the system is loaded, its files do not exist.

So the first step is to create a partition and then mount the partition in this directory.

I follow the above link, created the SDB1 this partition, and then perform mount/dev/sdb1/home to mount the SBD1 in the/home directory, after the mount, access to/home is equal to the access SDB1.

When I just mounted, home/home Only "lost+found" this stuff. This is because there is no content at this time dev/sdb1, after the execution of UMOUNT/DEV/SDB1, the solution is mounted, home/home files are still there. Copy the file from/home to a different location, and then mount it to//and copy the file back at this time. So these files really exist under the SDB1 partition. After reloading the system, select the installed disk as SDA is available.

Linux reload system, how to save the contents of the hard drive

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.