cancel
Showing results for 
Search instead for 
Did you mean: 
Trevor
Commander Commander
Commander
  • 80 Views

Filesystem Reserved Space

The default percentage of reserved space, for the root user, on new ext4 filesystems is 5% of the total space on the filesystem.

How can I go about reducing this percentage to 3%?

Trevor "Red Hat Evangelist" Chandler
Labels (3)
2 Replies
Ad_astra
Flight Engineer Flight Engineer
Flight Engineer
  • 34 Views

Hi

When using an ext4 file system, the following command can adust the reseved space for the root user on a given partition:

sudo tune2fs -m 3 /dev/sda1

Where 3 is the percentage of reserved disk space on /dev/sda1.

It is important to note that this only works on ext2/ext3/ext4 file systems. 

The XFS file system reserves about 5% of its blocks internally but it is not advisable to adjust this.

Thanks 

AA

0 Kudos
Chetan_Tiwary_
Community Manager
Community Manager
  • 26 Views

@Trevor  Reducing it to 3% wont help for longer as you will still be at 97% occupancy - you need to add storage anyways! But yes your answer is tune2fs.

Chetan_Tiwary__0-1765825108856.png

https://man7.org/linux/man-pages/man8/tune2fs.8.html 

0 Kudos
Join the discussion
You must log in to join this conversation.