The Linux operating system reserves a percentage of disk space when mounting a partition, this is done to allow the root user to log in even when the disk is full.
This reservation, while useful, may seem like a loss of space, especially on additional disks where the need for space may take precedence over the root user's login capacity.
To adjust the amount of reserved space, you can use the tune2fs
command. For example, to reserve only 2% of the total disk space, you can execute:
sudo tune2fs -m 2 /dev/partition
The -m 2
parameter indicates that the reserved space will be 2%. You can adjust this value according to your needs, using values such as:
-m 1
-> will reserve 1%-m 0
-> will not reserve anything at all
It is important to note that reducing the reserved space on the operating system disk is not recommended as it may affect the stability and performance of the system. However, on additional disks where space may be more critical, this modification can be made without issues.
It is always advisable to carefully evaluate the system's needs before making changes to storage settings.