The volume "Filesystem Root" has only 533.9 MB disk space remaining
You can use the "Disk Usage Analyser" to see what is using all of your drive space.
- Open "Disk Usage Analyser" by searching for it in the Dash.
- Click on your root (
/
) drive. - Wait for the graph at the right to stop displaying loading dots (it may take a while).
- You can now review which files are taking up the most space (You can just close the 'Permission denied' error if it appears).
- Hover your mouse over a sector to get the name of that folder and its size.
To delete the largest files/folders
After performing the above steps and with the file path to a larger file/folder which you want to delete, you can do the following:
- Only if the file is in your Home directory, you could just move it to an external hard drive (or delete it altogether if it's unimportant)
- If the file is not in your Home folder, you can take a guess at which package it belongs to and try
apt-get uninstall
to remove that package (if you don't need it) - Anything else, please edit your question with the path to the file/folder which you'd like to delete. You should not randomly delete files which are not in your Home folder.
Mounting a separate partition on /usr
This would be my suggestion. Use the following instructions:
Install GParted using this command in a terminal:
sudo apt-get install gparted
- Open GParted by searching for it in the dash.
- Locate a large partition (>100GB, I'd suggest
sda5
) of which is mostly unused (<50% used) - Shrink this partition by 10GB (or 10000MB)
- Create a new logical
ext4
partition taking up all of the free space. Open a root Nautilus window (be careful with this)
sudo -H nautilus
- Copy the contents of the
/usr
folder (contents, not the folder itself) into the root of your newext4
partition created above. Execute this command in a terminal, replacing
/dev/sda1
with the partition identifier of your new partition created above:sudo blkid | grep '/dev/sda1' | grep -Po 'UUID="[^"]+"'
- Copy the complete output of this command (should be similar to this:
UUID="X7X2X1X3-X573-4929-97XX-XX1514X31X7X"
)
- Copy the complete output of this command (should be similar to this:
Open the
/etc/fstab
file with this command:sudo -H gedit /etc/fstab
Paste in it the following on it's own line, substituting your copied text in where necessary:
<PASTE_HERE> /usr ext4 errors=remount-ro 0 1
- Reboot
The below steps are optional, but will delete redundant copies of the /usr
folder still on your original /
drive, freeing up space.
- Boot into a LiveCD/USB.
- Mount your original
/
drive in Nautilus, and take a note of where it's mounted to. Open a root Nautilus window (be careful with this)
sudo -H nautilus
- Navigate to your original
/
drive (which you noted above) - Delete the contents of the
/usr
folder, not the folder itself but everything inside it. - Reboot.
Replies
Can the files outside the home directory not be copied to an external drive?
No, they can not. You should not manually delete (or move away) any files outside of your Home folder unless you (you yourself, not apt-get
or similar) put them there.
Is having two mount point at the same logical partition possible?
No, that is not possible.
To free up some space you may want to clean /var/log
I had once a error loop in a php app, and the apache log folder had a few GB.