assume that you are installing your new Linux server to a new hard drive, with no other existing file system or operating system previously
installed. A good partition strategy is to create a separate partition for each major file system. This enhances security and prevents accidental
denial of service or exploit of SUID
Creating multiple partitions offers you the following advantages:
Protection against denial of service attack.
Protection against SUID programs.
Easy backup and upgrade management.
Ability for better control of mounted file system.
Limit each file system's ability to grow.
If previous file system or operating system exist on the hard drive and computer where you
want to install your Linux system, we highly recommend, that you make a backup of your current
system before proceeding with the disk partitioning.
We have made two more special partitions:
The /chroot partition can be used for DNS server chrooted, Apache server chrooted and other chrooted future programs.
The /cache partition can be used for a Squid Proxy server.
If you are not intending to install Squid Proxy server you don't need to create the /cache
Keeping /tmp and /home on separate partitions is pretty much mandatory if users have shell access
to the server- protection against SUID programs; splitting these off into separate partitions also
prevent users from filling up any critical file system -denial of service attack.
The same applies to /var, and /usr on separate partitions is also a very good idea. By isolating the /var partition, you protect
your root partition from overfilling -denial of service attack.
In our partition configuration we'll reserve 256 MB of disk space for chrooted programs like Apache,
DNS and other software. This is necessary because Apache DocumentRoot files and other binaries, programs
related to Apache will be installed in this partition if you decide to run Apache web server in a chrooted
Take note that the size of the Apache chrooted directory on the chrooted partition is proportional
to the size of your DocumentRoot files. If you're not intending to install and use Apache on your server,
you can reduce the size of this partition to something like 10 MB for DNS server that you always need in
a chrooted jail environment for security reasons.
Minimum size of partitions:
For information purposes only, this is the minimum size in megabytes, which a Linux installation must have to function properly. The sizes of partitions
listed below are really small. This configuration can fit into a very old hard disk of 512MB in size that you might find in old x486 computers. We show
you this partition just to get an idea of the minimum requirements.