Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

The method of reinstalling system in linux

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/03 Report--

This article will explain in detail the method of reinstalling the linux system for you, the content of the article is of high quality, so share it with you for reference. I hope you can get something after reading this article.

The original partition / data of the Linux system has data, so reinstall the system without formatting / data partition

Need to prepare a virtual machine with / data partition

Then load ISO to start reloading and keep the / data partition

Load directly into the partition interface

Know from the beginning that the / data partition is 2048MB, so choose to keep this partition directly.

Then delete the other partitions and then re-partition

Then wait for the system to be reinstalled as usual.

After the system is reinstalled, check the / data partition file and prove that it has been successful.

Add a disk to the system and use LVM management to expand the existing volume group

Enter the system and view the partition df-h

You can see the two partitions using LVM when installing the system: /, / var

View volume group name and volume group usage vgdisplay

View the space status of the current logical volume, as shown in the following figure:

. Now I feel that / var 8G is not enough. I want to expand it to 28G.

Insert a new 20g hard drive; view it with 'fdisk-1'

Format partition operation 'fsdisk / dev/sdb'

Set the newly added disk to LVM mode

Confirm the partition

Create the newly added partition / dev/sdb1 as a physical volume

Expand the volume group centos. Extend physical volume / dev/sdb1 to centos

At this time, centos has 20g of free space, so extend / dev/sdb1 to / var.

At this time, although the 20g disk has been extended to / var but not written to the file system, enter / etc/fstab to confirm

Write to the file system to make its expansion effective

After reading this article, have you learned how to reinstall the system on linux? If you want to learn more skills or want to know more about it, you are welcome to follow the industry information channel. Thank you for reading.

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.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report