0

My /dev/sda6 says I only have 4.7G available but still use% is 99? It does not make sense.

Can someone help me with this?

waybackdrm@dolansroadbike:~$ df -h
Filesystem      Size  Used Avail Use% Mounted on
udev            3.8G     0  3.8G   0% /dev
tmpfs           784M  2.5M  781M   1% /run
/dev/sda6       260G  242G  4.7G  99% /

I try the following:

sudo apt-get autoremove
sudo apt-get clean

doesn't seem to do anything?

Any feedback? also let me know if I need more screenshots?

phuclv
  • 760

1 Answers1

1

Because some of the space is reserved. You can check it by running

tune2fs -l /dev/sda6 | grep 'Reserved'

By default 5% will be reserved for the root, which is 260G * 0.05 = 13G. That means the available space to you is only ~247G. ext4 itself also needs some space for its metadata, so you're already almost full

To reduce the reserved space run tune2fs -m$PERCENT $PARTITION. For example to reduce it to 1% in your case run

tune2fs -m1 /dev/sda6

But it's only a temporary solution. Having a full disk is not a good idea anyway since there isn't enough space for a contiguous region for new files or to move old files around, so fragmentation will increase significantly. You should consider cleaning up your disk and/or upgrade disk space

See

phuclv
  • 760