Using GParted, I resized two Ext4 partitions on my external HDD, making them smaller.
But now the OS says there is no space available on both of them.
This is the outptut of df -H
for those partitions.
Filesystem Size Used Avail Use%
/dev/sdb5 782G 744G 0 100%
/dev/sdb6 635G 616G 0 100%
The very output above makes no sense at all, how can it say there are 0 bytes available when almost 40 gigabytes are not used e.g. in /dev/sdb5
?
I tried executing both the following commands automatically via GParted
(I show them just for /dev/sdb5
but I tried them on both partitions).
e2fsck -f -y -v -C 0 /dev/sdb5
resize2fs -p /dev/sdb5
but nothing changed.
I can modify existing files in those two partitions, and in particular I can delete files , but even if I delete a big file the OS still says there are 0 bytes available.
What is going on here?
PS: It still says 0 bytes available even if I am root.
tune2fs
if I want e.g. to reserve 0% of the space instead of 5% and use all the unused space? ? – GeekInDisguise Apr 16 '21 at 21:11-m
option rather than-r
simplifies things as it allows to specify a percentage instead of an absolute value. Anyway, at this point I will trust the default 5% reservation and I will verify all of this by deleting some stuff to go beyond 5% of unused space, to make the "0 bytes free" message change :-) – GeekInDisguise Apr 16 '21 at 21:24