linuxsystemext4ext3ext2

Space needed for reserved blocks on a partition


By default, the ext2/3/4 fs reserves 5% of its capacity to be able to keep running when diskspace is getting low.

I also believe it has something to do with allowing "fragmentation between files" or something like this (I haven't been able to find concrete information about this, and I'm kinda newbie in this domain).

My question is: when do we need to keep these 5%, when can we reduce it to something like 1-2%, or when can we remove it totally ?

The elements that I'm considering atm are the following:

I've only seen more and more articles on the web telling about how to reduce the reserved blocks so I believe that it may not be a bad idea 100% of the time, but I've not really been able to have articles explaining deeply the concrete application of "when it can / cannot be used", and "what it exactly does and implies".

So if some of you could provide comprehensive information (as well as a simple answer to the question I exposed above) I would be very thankful.


Solution

  • Those 5% are really kept for root user to be able to login and do some operations in case of full filesystem. And yes, you can decrease the amount (I did this in the past) to 1-2% (depend of the disk size). But be aware for most filesystems this should be defined when you create it and its hard (if possible at all) to change it after.

    About zero it - yes, that's also possible. But will be wise to keep some space for root in the /, /root (or whatever is the home of root user), /tmp and eventually /var/tmp