0

I've ran out of space and decided to free memory by deleting virtual machine files holding 3.8G. After that I see strange df output:

$ df -h | grep 'sda2\|Use'
Filesystem      Size  Used Avail Use% Mounted on
/dev/sda2       110G  107G     0 100% /

Where are these available gigabytes that I've freed? System is unusable but it should be at least few gigabytes of space.

Tried to reboot, checked free inodes, tried to look at sudo lsof +L1 output - nothing.

Could anybody help?

UPD for @Katu:

$ df -h
Filesystem      Size  Used Avail Use% Mounted on
udev            3.9G     0  3.9G   0% /dev
tmpfs           795M   34M  762M   5% /run
/dev/sda2       110G  106G     0 100% /
tmpfs           3.9G   96K  3.9G   1% /dev/shm
tmpfs           5.0M     0  5.0M   0% /run/lock
tmpfs           3.9G     0  3.9G   0% /sys/fs/cgroup
/dev/sda1       464M  451M     0 100% /boot
tmpfs           795M   12K  795M   1% /run/user/123
tmpfs           795M     0  795M   0% /run/user/1000
  • 3.8 G? 5G? You're not talking about the reserved space on ext4 filesystems, right? – muru Oct 17 '18 at 13:40
  • @muru, could not get what you mean, explain please – Dmitriy Vinokurov Oct 17 '18 at 14:11
  • ext4 reserves some fraction of total space for use only by root. That's why it's shown as 100% used here, but actual usage is 107G and not 110G. Is that what you're asking about here? Or did you expect the free space to become 107-3.8 =~ 103G? – muru Oct 17 '18 at 14:14
  • 2
    ext4 reserves space for root. This reserved space is not shown in available space. – muru Oct 17 '18 at 14:23
  • 3
1

If you haven't delete your virtual machine from command line, you have to empty the trash to see change in df -h.

You could also check the biggest files in your system to delete or backup.

find . -type f -size +100M

Or whatever size you want.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.