In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)05/31 Report--
This article mainly introduces "how to resize partitions under Centos/Linux". In daily operation, I believe many people have doubts about how to resize partitions under Centos/Linux. The editor consulted all kinds of data and sorted out simple and easy-to-use methods of operation. I hope it will be helpful to answer the doubts of "how to resize partitions under Centos/Linux". Next, please follow the editor to study!
1. Check the existing partition status of our machine
Notice the information in the red box, which is the partition path we are going to change later. From the above we can find that the root partition and the home partition cause great irrationality. The home partition is too large, so here we will reduce the storage space for the home partition and add the compressed storage space to the root.
two。 Uninstall our home partition and compress our home partition size
3. At this point, we reload our home directory, and we can see that we have compressed the home partition to 20g.
This completes the compression and reloading of the home, as shown below:
4. The above three steps have processed the blocks of home, but our idle hard disk has not been added to the root, so the following step is to add the compressed disk space to the root:
This process of reloading and mounting takes some time, but we can also check the size of the drive letter constantly during this period. 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 of the figure above, we can see that we compressed the free drive letter in home and added 812g to the root, so that our root space increased instantly. In this way, we have achieved our goal.
At this point, the study on "how to resize the partition under Centos/Linux" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.