in tech

Make big disks short in space grow

Title is stupid.

What I mean is that when you create an ext2/3/4 partition, by default 5% of the disk is allocated as reserved system space.

So things like this happen:

df -h shows 443G total, 420G used, but only 941M available space. Where did the 22G go?

Bad accounting: df -h output showing missing space allocation

 

If I have a size 443G disk and I used 420G, I should have 23G unused space, no?

So, imagine my surprise when this started to pop-up every so often:

the volume home has only 986.3 MB disk space remaining

Whut? Only 986.3 MB remaining, when I should have around 23G free space!

To make sense of what’s happening, this gibberish from some redhat geek provides some psychological comfort for what most tutorials instruct on what to do next.

What you do is alter the percentage of the aforementioned reserved system space  to something more reasonable for a large disk, like 1%, by issuing this command:

 $ sudo tune2fs -m 1 /dev/sda7

Take note that doing this is advisable for non-root partitions, since the reserved system space is reserved for a reason. This is one upside of having a partition for all them data separate from the OS, I think.


Btw, I blame youtube-dl for all that disk usage, because I download Youtube now, because adaptive streaming don’t cache videos anymore, and I don’t want to download the same data repeatedly when I watch instructional stuff and music videos, because I am billed by the amount of data I consume*, because I live on some island where internet access is only available wirelessly.

Plus, www [dot] skytorrents [dot] in. No ads, no popups. Hope it stays that way.

* Sort of, and yes, for most, but for me, not exactly.

Write a Comment

Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.