Free ext4 reserved blocks with tune2fs

19 sec read

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% /

Reset root password on CentOS 7

Edit boot menu on-the-go 0. reboot the CentOS 7 and press ESC when GRUB menu show up on the screen and press “e”1. find...
Sysadmin.ID
18 sec read

Leave a Reply

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