====== Ubuntu - Filesystem - Reduce the space reserved for root on an ext2, ext3 or ext4 filesystem ====== To reduce the amount of space reserved for use by root on an ext2, ext3 or ext4 filesystem. By default, ext2 and its successors reserve 5% of the capacity of each filesystem for use by the root user. This reduces fragmentation, and makes it less likely that the administator or any root-owned daemons will be left with no space to work in. Whether these considerations justify the loss of capacity depends on what the filesystem is used for. Reserved space is least useful on large filesystems with static content that are not critical to the basic functionality of the operating system. In such cases it is quite reasonable to reduce the reservation to zero. Filesystems that may be better left with the default 5% include those containing the directories /, /root, /var, /tmp, and (preferably) /home. The reservation can be changed using the **-m** option of the **tune2fs** command: tune2fs -m 0 /dev/sda1 The number is the required percentage (without a percentage sign). If successful, tune2fs should report the new reservation with a message of the form: tune2fs 1.41.12 (17-May-2010) Setting reserved blocks percentage to 0% (0 blocks) The **-m** option can also be used as an argument to **mke2fs* when creating a new ext2, ext3 or ext4 filesystem. ---- ===== See also ===== Increase the size of an ext2, ext3 or ext4 filesystem Reduce the size of an ext2, ext3 or ext4 filesystem ---- ===== Further reading ===== * [[http://manpages.ubuntu.com/manpages/precise/man8/tune2fs.8.html|tune2fs(8) (ubuntu manpage)]] * Theodore Tso, [[http://www.redhat.com/archives/ext3-users/2009-January/msg00026.html|Reserved block count for Large Filesystem]], EXT3 Users Mailing List, 23rd January 2009