Linux

Free ext4 reserved blocks with tune2fs

Freeing ext4 reserved blocks with tune2fs in Linux

Check disk usage

df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/vda1        95G   82G  7.9G  92% /

Check size of Reserved block count

tune2fs -l /dev/vda1 | grep '^Reserved block count'
Reserved block count:     262143

Change Reserved block count to 0%

tune2fs -m 0 /dev/vda1
tune2fs 1.42.12 (29-Aug-2014)
Setting reserved blocks percentage to 0% (0 blocks)

tune2fs -l /dev/vda1 | grep '^Reserved block count'
Reserved block count:     0

Check disk usage

df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/vda1        95G   82G   13G  87% /

If you’re curious about the technical aspects of file systems, you might want to explore more about the **ext4** file system itself. Speaking of file systems, you might be interested in learning about the Ext4 file system and its features. Additionally, understanding how disk usage works can enhance your knowledge; check out this informative article on Disk Usage. Finally, if you’re interested in the underlying principles of how operating systems manage storage, you might find the article on File Systems quite enlightening.

Hi, I’m Sysadmin.ID

Leave a Reply

Your email address will not be published. Required fields are marked *