Help Center
Adjusting reserved space on Linux disks
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.
Related articles
- Screen command in CentOs: more efficient sessions
- Solution: 'Service Unavailable' on CloudLinux servers
- Database export via command line
- Protect your data: configure RAID notifications with S.M.A.R.T.
- List CronJobs for all cPanel users
- Delete unnecessary files from the /tmp partition
- Change reserved disk space in CentOS
- Know your hardware: get accurate information on CentOS 7
- Basic SSH commands
- Optimize accounts with manual rearrange
- IP blocking in CSF via command line
- Clear DNS cache: solution to resolution problems
- Change file permissions via command line
- How to open and close ports using CSF in WHM?
- How to Modify the Hosts File in Windows, Linux, and macOS
- How to Use Telnet to Test SMTP Connectivity on Port 25
- Adjusting reconstruction speed in RAID on Linux
- Where are NGINX logs stored?
- Configuring RAID failure notifications with mdadm
- Differences between Legacy VPS and Cloud VPS
- Install cPanel in your server or VPS
- How to send emails via SSH?