Saturday, 28 December 2013

How to reduce the system reserved space in linux

Hi All,

 In linux system OS will reserve some space for a partition by default .That is about 5 % of disk space is reserved for the privileged process. So some times after the most of the disk space is used up, the disk space will be shown as full,  though there is some 6-7 Gb of free space.

Use the command df -h to check the current status of disk space.

So most of the process will get stopped, omce disk space is filled up

Especially in the case of large partitions, it is safe to set the reserved space to the minimum, which is one percent or even to 0 percent.

Best way to make the system reserved space to 0 % is by using tune2fs command, because we already partitioned the device and need to change the partition settings.

Suppose you want to make the reserved space to 0 % on /dev/sda1. We can use  the below command

#tune2fs -m 0 /dev/sda1

This will make the reserved space to 0 %

At the time of file system formatting, we can set the system reserved space to desired % by using the below command.

# mkfs.ext4 -m 1 /dev/sda1

No comments:

Post a Comment