Home > Article > Operation and Maintenance > Graphical tutorial on resizing partitions under Centos/Linux
This article mainly introduces how to adjust the partition size under Centos/Linux (taking home and root partitions as examples). It has certain participation value. Students in need can learn about it. Let's take a look
When installing a new system, sometimes the partition size cannot be estimated or the partition size is divided incorrectly, which often causes great inconvenience in our subsequent operations, such as a certain If the partitions are too small, when the software is installed, it will report that there is insufficient installation space, which is very troublesome. Here I will record the entire process of adjusting the storage space size of the home and root partitions after the wrong partition!
1. Check the existing partition status of our machine
Pay attention to the red box Information, this is the partition path we will change later. From the above we can find that the root partition and the home partition are extremely unreasonable. The home partition is too large, so here we will reduce the storage space of the home partition and add the compressed storage space to the root.
2. Uninstall our home partition and compress the size of our home partition
3. At this time, we reload our home directory and you can see the running results When we compress the home partition to 20G
, the compression and reloading of home is completed, as shown below:
4. Our above three steps have processed the home block, but our free hard disk has not been added to root, so the following steps are Add the compressed disk space to root:
This reloading and mounting process will take a while, but we can also During this period of time, we will continue to check the size of the drive letter. At this time, we will find that the size of the root drive letter will increase little by little, as shown below:
From the final result in the picture above, we can see that we compressed the free drive letter in home to 812G and added it to root, so that our root space increased instantly. In this way our goal is achieved.
The above is the detailed content of Graphical tutorial on resizing partitions under Centos/Linux. For more information, please follow other related articles on the PHP Chinese website!