Remove unused reserved blocks from non-system partitions

Remove unused reserved blocks from non-system partitions

- By default 5% of a filesystem will be flagged as reserved for root user. For modern high-capacity disks, this is much higher than necessary - particularly if the partition is not being used for system files. It is generally safe to reduce the percentage of reserved blocks to free up disk space when the partition is either very
large (for example >50 G) not being used for system files
- Use the tune2fs utility to do this. The command below would set the percentage of reserved blocks on the partition /dev/sdXY to 1.0%:

$ sudo tune2fs -m 1.0 /dev/sdXY

If you need to find your drive's device name, issue the following command:

$ df -T | awk '{print $1,$2,$NF}' | grep "^/dev" 

For our example we are going to assume we identified the partition in our drive as /dev/sdb1. Run the following command to eliminate the reserved space:

$ sudo tune2fs -m 0 /dev/sdb1


0 comments:

Post a Comment