In addition to Weibo, there is also WeChat
Please pay attention

WeChat public account
Shulou
2025-11-09 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Yesterday, I installed a system for people who forgot to skip the automatic partition. The size of the automatic partition is very speechless and not suitable for daily use.
Execute command: df-h
You can see that the system automatically allocates all the remaining space under the home partition, but we generally use the space under the root partition, so we have to move more space under the home to the root.
First you need to back up the contents of the home folder, execute the command: cp-r / home/ homebak/ (if the new system does not create another account, you do not have to back up)
Uninstall home: umount / home (if there is a process in home, use fuser-m-v-I-k / home to terminate the process under home, and finally use umount / home to uninstall / home)
Delete home sector: lvremove / dev/mapper/centos-home
Add 100g to the sector where the root is located: lvextend-L + 100G / dev/mapper/centos-root
Extended root file system: xfs_growfs / dev/mapper/centos-root
Re-create home lv: lvcreate-L 64g-n home centos (64g here is the original minus the removed space, not randomly filled)
Create a file system: mkfs.xfs / dev/centos/home
Mount home: mount / dev/centos/home / home
Cp the backup back to home and delete the backup.
The above is the whole content of this article, I hope it will be helpful to your study, and I also hope that you will support it.
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.

The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope





About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.