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