My 500GB harddrive on my DELL XPS13 kept running out of space very quickly - and the problem kept occurring every few months, despite my best efforts to clean up my system (see below). I guess somehow my home directory was/is not being properly mounted, resulting in extra space being used up on my harddrive that I could not always see, depending on the tool used.
Rebooting in secure boot allowed me to see the superfluous data. Because this has happened from the start with this computer I am going to reinstall my Ubuntu completely (Ubuntu came pre-installed by DELL)...
Second version of post
It seems I am having another problem than I thought (initial post below)...
I have an SSD harddrive with 500GB available.
tells me I am using 327GB of the 500 in my home directory (encrypted) relevant output:
Filesystem Size Used Avail Use% Mounted on /home/gugy/.Private 435G 327G 87G 80% /home/gugy
But nautilus tells me I am only using 224.6 GB in my home/gugy directory.
Any ideas where the ca 100GB went that I am not seeing in Nautilus, how to get the two tools to agree/delete the 100GB that I do not know what they are?
I have run
apt-get clean apt-get update apt-get upgrade apt-get dist-upgrade
to save a few GB here and there, but cannot find the culprit :/
More info baobab tells me /home and /home/gugy directories are using 244 GB (not each, but on both levels)
ls -lsha /home/ total 36K 4.0K drwxr-xr-x 4 root root 4.0K Mar 21 2017 . 4.0K drwxr-xr-x 25 root root 4.0K May 9 08:55 .. 4.0K drwxr-xr-x 3 root root 4.0K Mar 21 2017 .ecryptfs 24K drwx------ 70 gugy gugy 20K May 9 11:00 gugy
First version of post
I have an encrypted home directory on my Ubuntu 16.04, my built in SSD harddrive has 500 GB of space totally available. I have been running out of space faster than expected (466.7 GB used, all of it in /home, but when I check my /home/USER directory, its only 224.6 GB big) and now I have finally figured out what is going wrong: ncdu (version 1.11) is showing me this as the output for my /home directory:
--- /home ---------------------------------------------------------------------- . 227.4 GiB [##########] /.ecryptfs . 227.4 GiB [######### ] /USER
I would now very much like to delete something, my data are all backed up but I am not sure how to proceed. I would like to keep my home directory encrypted, but I do not just want to delete stuff without understanding how this situation came to be. Did not properly unmounting the encrypted home directory cause this somehow (I have no clue how this could have happened...)? I have a virtual machine with windows on it and shared folders between the guest and host, could this have cause such an issue? Any tips, hints, ideas, suggestions are very welcome.
more info: as requested by comments:
df -h Filesystem Size Used Avail Use% Mounted on udev 7.8G 0 7.8G 0% /dev tmpfs 1.6G 26M 1.6G 2% /run /dev/nvme0n1p3 435G 327G 87G 80% / tmpfs 7.8G 65M 7.8G 1% /dev/shm tmpfs 5.0M 4.0K 5.0M 1% /run/lock tmpfs 7.8G 0 7.8G 0% /sys/fs/cgroup /dev/loop2 87M 87M 0 100% /snap/core/4407 /dev/loop1 87M 87M 0 100% /snap/core/4571 /dev/loop0 87M 87M 0 100% /snap/core/4486 /dev/loop3 60M 60M 0 100% /snap/notes/4 /dev/nvme0n1p1 496M 28M 469M 6% /boot/efi tmpfs 1.6G 100K 1.6G 1% /run/user/1001 /home/gugy/.Private 435G 327G 87G 80% /home/gugy tmpfs 1.6G 0 1.6G 0% /run/user/0
PS: gugy is my user...
du -h /home/
runs over too many pages to print