Partition for a new install

From HostThyself

Jump to: navigation, search

This article describes how to setup the partition for a new Linux install.

If you do not install Linux often, you may be faced with the question of how to partition your harddisk.

Harddisk nowadays are very large and more then able to accommodate any partition configuration.

How you partition the harddisk depends on how you are planning to use the system and your previous experience.

Here is one setup I use for a hosting machine.

(root) /: 10G
swap    : 1G
/var    : 20G
/home   : remainder

Typically the root partition is does not need much space, 10G should be more than sufficient. If you are planning to install some large installation into /usr, setting up /usr on a different partition maybe a good idea.

I like to put /var on a separate partition as log file can sometime become very large and fill up the partition. So putting it on a separate partition gives an early warning.

It is also a good idea to put /tmp on a separate partition so that the partition can be set as nosuid noexec. (How)

All my other files go into /home so I leave the remainder of the space to it.

What other strategy do you use?

[edit] References

Personal tools