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 waste of space, especially on additional disks where the need for space may take priority over the root user's ability to log in.
To adjust the amount of reserved space, you can use the command:
For example, to reserve only 2% of the total disk space, you can run:
- sudo tune2fs -m 2 /dev/partition
The parameter
indicates that the reserved space will be 2%. You can adjust this value according to your needs, using values such as:
* will reserve 1%
- -m 0
* will not reserve any space at all
Please note that reducing the reserved space on the operating system disk is not recommended, as it may affect system stability and performance. However, on additional disks where space may be more critical, this modification can be done without any issues.
It is always recommended to carefully evaluate the system's needs before making changes to the storage configuration.
Related Articles
Adjust RAID Rebuild Speed in Linux
When a disk within a RAID array fails, manual rebuilding becomes a crucial process to restore the integrity and redundancy of the system. However, this task can be notoriously slow, resulting in prolonged periods of downtime and decreased system ...
Clean /tmp on Linux: remove old temporary files with tmpwatch
The /tmp partition on a Linux server is used to temporarily store files while various tasks are running. It is important to ensure that this partition does not become full, as it can affect system performance and cause unexpected issues. In this ...
How to change File Permissions and Ownership via Command Line
Files and folders with incorrect permissions or ownership can be vulnerable to unauthorized access, potentially compromising the integrity of your data and the security of your website. Additionally, these issues can cause read, write, or execution ...
Using Screen on Linux: create, resume, and close terminal sessions
Screen is a command-line tool on Linux that allows you to manage multiple, persistent terminal sessions. With screen, you can run programs in the background, detach from a session without closing it, and resume it later. This is useful for ...
How to Get Server Hardware Information on AlmaLinux
Knowing the hardware specifications of your dedicated server or VPS is essential for making informed decisions about resource sizing, diagnosing performance issues, and planning future upgrades. In this article, you will learn how to obtain detailed ...