Help Center

Change reserved disk space in CentOS

Reserved disk space is a portion of the total space that is set aside for the operating system and is used to ensure its functionality even when disk space runs low. However, in some cases, you may want to adjust this reserved space according to your specific needs.

Modifying reserved disk space is a task that should only be done if absolutely necessary and if you have advanced knowledge of system administration. This adjustment can have a significant impact on system performance and stability.

Before proceeding with this tutorial, it's important to carefully assess whether it's necessary to change the reserved disk space on your CentOS server. Remember that improper adjustment can negatively affect the overall system performance and potentially lead to stability issues.

If you have determined that it's necessary to change the reserved disk space, follow the instructions below with caution and make sure you fully understand the potential effects and associated risks.

  1. Open a terminal on your CentOS server.
  2. Use the following command to check the current reserved space:
    > tune2fs -l /dev/partition | grep "Reserved block count"
  3. To change the reserved space, execute the following command:
    > tune2fs -m2 /dev/partition

* Replace "partition" with the drive to be manipulated
* Replace "-m2" with the desired percentage for reserved space. The number 2 indicates a reservation of 2%, and you can change it to 1 for 1%.
* Verify the change by running the command from step 2 again.


Remember that reserved disk space is useful to prevent the system from running out of free space in case of full disk usage. However, you can adjust this space according to your needs and preferences. Make sure to choose an appropriate percentage to maintain a balance between reserved space and available space for the system and users.

Whenever possible, perform complete backups of your data before making any changes to the system configuration.

Last updated: 25 de abril de 2024

Estimated reading time: 3 minutes

Did this article help you?
Let's Do It!

Start TODAY for only $2.45/month

Includes a web builder, 30GB of cloud storage, +200 Apps, and professional email.

Sign Up Now