How to change the reserved percentage for root directory in linux
The GNU/Linux reserve 5% of the the storage of a partition for the root directory, so for example if you got a apartition of 500 GB , this mean that your root directory will got 25 Go !!! Very much for a root directory .
Well, lets see approximatively how much space the root partition need.
/tmp : So for example for temporary files they get deleted every once in a while to save space.
/usr : Requires a few gigabytes of space for installing applications. It will of course grow over time as you install more applications.
/var : May require some space, depending on what you use the machine for. For example, database software often stores databases there, and various other applications keep persistent data there so it may require some space and grow over time.
/srv : might need some space and grow over time if you’re hosting web services or FTP services, otherwise chances are your /srv will never take up much space.
Some third party software sometimes installs into /opt. If you’re installing anything like that you may need some space there, otherwise it will hardly take up any space.
/etc : May grow a bit over time since it contains configuration files for just about everything you install, but those files don’t take up that much space so it will never get too big.
With the obvious exception of /home, the rest of the toplevel directories in / hardly need much space (some like /dev /proc and /sys don’t take up any disk space) and are unlikely to grow much with time.
So depending on how you use your machine and what you install you can even get away with as little as 5GB to 10 GB max for your / partition (and that’s including /usr).
Now if you we take the example above of a partition of 500 Go, then 1% will be enough for the root directory, type the command bellow to change the procentage to 1% :
tune2fs -m1 /dev/partition
This way the system will reserve 1% for the root directory.
Like us on Facebook
This week Top Posts
- Top Things To Do After Installing Ubuntu 13.10 'Saucy Salamander' : Ubuntu 13.10 Saucy Salamander will be released on coming October 17th with many new salient featur...0 comments |
- OpenLDAP Installation and Configuration in Ubuntu 12.10/13.04/13.10 And Debian 6/7 : OpenLDAP is a free open source Light Weight Directory Access protocol developed by the OpenLDAP proj...0 comments |
- Configure Your Browser To Use Tor On Ubuntu/Debian/Linux Mint : Tor, The Onion Router, is a network of Virtual Tunnels that allows users to communicate securely and...1 comment |
- How To Upgrade From Ubuntu 13.04 Raring To Ubuntu 13.10 Saucy Salamander : Ubuntu 13.10 Saucy will be released on October 17th. Hope it will come with lot of improvements and ...0 comments |
- Install lamp with 1 command in Ubuntu 12.10, 13.04 Raring Ringtail & LinuxMint13 : Updated: 10/09/2012 :LAMP (Linux, Apache, MySQL and PHP) is an open source Web development platform ...0 comments |
- Setup A Full Featured ITIL Management System Using Integria IMS On CentOS 6 : Integria IMS is a fully featured ITIL management system, featuring a ticketing system, inventory/C...2 comments |
- OpenLDAP Installation and Configuration in Ubuntu 12.10/13.04/13.10 And Debian 6/7
- Configure Your Browser To Use Tor On Ubuntu/Debian/Linux Mint
- Setup A Full Featured ITIL Management System Using Integria IMS On CentOS 6
- Install LibreOffice 4.1.3 in Elementary OS ‘Luna’
- How To Install Simple Scan in Crunchbang ‘Waldorf’
- Selene Media Encoder: Convert Audio, Video Files To Most Popular Formats
- Linux Kernel 3.12.2 Is Available For Download! Install / Upgrade Instructions
- CentOS 6.5 Has Been Officially Released!
- Format Junkie: Convert Media Files To All Popular Formats
- Setup Squid Proxy Server On openSUSE 13.1
This work by unixmen.com is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License.
Copyright © 2008-2013 Unixmen.com .