Ubuntu Mobile partition, modify directory hang at point

Source: Internet
Author: User
Tags gparted

Because the/tmp directory space is a bit small, causing the installation of a large software when the/TMP space is insufficient, finally by creating a new partition, and the new partition to/TMP, the/TMP space to expand.

Installing GParted

Enter the following command:

sudo apt-get install gparted

Then open the software:

sudo gparted

After opening, the interface is as follows:

You can see that the/dev/sda8 is mounted in the/tmp directory, and the space is approximately 5G. At the end of the 12.88G space is not allocated, we can create a new 10G partition above, and then mount to the/tmp directory.

New Partition
    • 1, the most at the end of the blank disk right-click New;
    • 2, in the pop-up interface to enter the size of the new partition (for example, I filled out here is 10240M, that is, 10G), file system selected Ext4, then click Add;
    • 3. Click Edit-apply All operations in the menu bar to create the partition successfully.
    • 4, after we can see in the software more than a/DEV/SDA11 partition. Then we right-click on the/dev/sda8 to delete it.
Mount Partition to/tmp

Since there are already/dev/sda8 mounted in the/tmp directory, you need to uninstall the/DEV/SDA8 first. Need to enter in terminal:

sudo umount -l /tmp

When you are done, enter:

df -h

You can see that there is no/tmp in the file directory that is displayed. below to see the UUID of the new partition, enter the following command:

sudo blkid

Find/dev/sda11 's UUID and copy it down. sudo gedit /etc/fstab, open fstab, you can see the following line:

UUID=XXXXXXX /tmp            ext4    defaults        0       2

Here xxxxxxx is the UUID of/dev/sda8, change it to/dev/sda11 uuid, save can. Then execute the command to mount the new partition to/tmp:

sudo mount /dev/sda11 /tmp

At this time df -h , you can see that the/DEV/SDA11 is already mounted in the/tmp directory:

Ubuntu Mobile partition, modify directory hang at point

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.