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

How to expand the partition capacity of Linux system

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

Share

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

This article mainly explains "how to expand the partition capacity of the Linux system". The content of the explanation in the article is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn how to expand the partition capacity of the Linux system.

Fedoa also used for such a long time, more and more feel that windows is slow, although the use of server, in fact, I know the main reason is caused by garbage Jinshan, but still feel that windows is slow.

However, the fedora is also relatively bloated. Compared with the previous redhat9, I have already used a 6G hard drive. At the beginning, the 7G is obviously not enough. OK, let's expand the capacity. To tell you the truth, it is really inconvenient for me to expand the capacity of only / and / swap partition, and there is not much information on the Internet. It is all achieved by hanging / usr or / home or other directories on the new partition, and then modifying the fstab content. For me, a piece of cake that doesn't know much about the linux file system won't work. It won't work. Then we have to study the methods of capacity expansion on our own.

Of course, before the expansion, I backed up linux first. At that time, after installing hundreds of update packages, I updated them in segments (the network speed was not optimistic). If I didn't back up, I would be depressed. Here I use image for win backup, forgive me, I did not use tar backup, I think it is too troublesome, and not intuitive, anyway, I am the coexistence of dual systems, I will directly back up under windows, software download address: http://yizusong.uubox.net/ to tools directory download, there are other software, you can try if you like

The software is easy to use. Study it yourself. Ignore this step.

After the backup, we began to take a substantial step to divide the disk space. My previous main partitions are as follows

/ dev/sda1 C disk NTFS

/ dev/sda5 SWAP

/ dev/sda6 / ext3

/ dev/sda7 F disk NTFS this is the WINDOWS2003 system disk (common practice so that the system disk is never on disk C, but this is good, easy to repair)

I divided the 3G space from disk D and formatted it into ext3, but because it is not adjacent to the main partition of linux, I can't merge it. Well, copy it to the adjacent location. Here I use the software that acronis disk director is very powerful and dangerous, and there is something wrong because it is dangerous. I copied the 3G space to the place adjacent to the partition, but in fact, disk director created another ext3 partition in the adjacent place, so my partition became like this. Experienced people know at a glance: the partition location of the sample windows has changed, but the boot information has not changed, so it is obvious that my windows cannot be started. Fortunately, a small problem, find a 2003 system disk, use the console to repair the boot on it, repair process: enter the repair console, enter bootcfg / rebuild or bootcfg / add, the former is to rebuild, the latter is to add, the effect is the same (basically the same). After the repair, there will be something that will upset all the readers, because I haven't done the next thing yet.

Rest assured, not eunuch, recently quite busy, no time to toss about my system, so later will definitely make up, after all, home or to use fedora, interested and can not wait for Baidu message me, can tell you in advance the solution, in addition, the above operation did not damage the fedora system, fedora startup everything is normal.

The most crucial step was finally carried out yesterday, and it was really unskilled.

I deleted the / partition of linux, then moved a 6G free disk to / adjacent (how to use disk director), and then merged the 6G free disk into the space of the / partition (this is too much.) So the partition of linux goes to 13g, well, okay, and then my grub naturally dies.

Go on, grub is not bad, it's just that I lost the data of / partition when I used disk director, and the idea of expanding capacity without damage failed, but the recovery still has to continue. First, boot windows with grub.

Rootnoverify (hd0,0)

Chainloader + 1

Boot

Start windows and restore the fedora backup to / partition with image for win, well, it will take a while

I am a sad spliter

First, I must say sorry to the one who read the passage,I am so sorry that my method had failed and I lost all my data of fedora (data of windows is ok), so here I wana warn the one who wana expand his / patition being very very carefull to operate,otherwise,you will lose you linux like me.I am so sad that I had destroyed my MBR,and more sadly I don't have a tool disk even.Though,I have to install a ubuntu on my harddisk (I have only a ubuntu), so I get a grub again,but I don't even have an Inpu method That is reason why I wrote this sector in English.Iam sorry and Iam sad, so sad,I will reinstall my fedora later.

PS:ubuntu is so hard to operate, I am still like fedora,oh yeah

Thank you for reading, the above is the content of "how to expand the partition capacity of Linux system". After the study of this article, I believe you have a deeper understanding of how to expand the partition capacity of Linux system, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!

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