About Ubuntu18.4 prompted insufficient root directory space solutions

  Woke up this morning, as usual, turn on the computer, played a rare early, ready to write two algorithms questions clear his head, the result just turn on the computer, the system will notify the lack of space under my root directory, only the 600 MB.

This gave me all of a sudden out of the muddled look of force, how to do it? Can not reinstall the system, this is the last resort, so I searched the Internet in a number of ways, the ultimate solution is to use Gparted disk expansion tools under the Linux platform. Now let's look at the whole process of it:

  1. First you need to install the disk management software on your current system, lay the following commands directly from the command line you can:

    

sudo apt-get install gparted

  2. Then you have to have a system disk Ubuntu18.04, and when you installed above the disk management software, restart the computer, enter the bios of the computer program according to their own situation, choose U disk;

  3. Go to the U disk interface later, chose to enter the attempt to use that option, "Try Ubuntu";

  4. After entering the system, the "Display Applications" input look "GParted", and click Open;

  5. Locate the drive letter where you want to own the expansion of the partition, this option in the upper right corner of the software;    

 

  6. At this swap will find swap shows a small key, if you are in the process of expansion partitions need to go through the swap partition, which means the expansion of the partition you want to you want to separate the portion of the space between the partition contains a swap partition, then you need to get rid of this little key, otherwise you can not operate the swap partition;

  7. Right swap partition, select swapoff, then you can see the small key icon disappears, indicating that the operation can, of course, the middle if an error occurs, you can select the top rotten bent arrow symbol undo this operation.

  8. Then the focus here, the nature of the partition expansion procedure is equivalent to you in a sequence space, the spare part or portion of a partition sequence forward or backward translation of the order process. Because they are in a disk, you can not direct a partition free space directly out to another partition, as shown below:

  He is, for example, you want to move sda1 free space to sda4, then you must try sda2, specifically, how does it work?

  You first select a partition to separate the free space, right-click "Resize / Move" option, you will see the way shown below:

  

  If your partition expansion in the left of the current partition, then you choose the partition from free space left to draw, you can pull the space you want to separate the left directly at the green edge of the box; if your current partition expansion the right side of the partition, then the selected partition from the free space set aside to the right, from the right edge to the left to pull the green box section make free space. Then immediately adjust the volume reduction in the volume reduction and in turn partition size of a partition between the partition and the partition expansion, the above operation is repeated until you free space shifted to this part of the expansion in the partition you want to date. Finally, click on the checkmark top bar of the application in the system implementation.

  Of course do not forget, for the swap partition recovery operation, namely right-swap select "swapoff" option. Finally, reboot the system, remember to unplug the U disk. After the restart will find that the expansion work has been completed.

  Still have to remind, expansion, they must be step by step translation, that is, from one partition to the target partition, partition might go through a lot, but not out of thin air in the free space from one partition to get directly to another partition.

Guess you like

Origin www.cnblogs.com/yxym2016/p/12617676.html