I have been using linux for a long time, but I always feel that the system partition is not very reasonable after using it for a period of time. I would like to share it with you even if I summarize it for myself.
I. Descriptions of Common mount points
In general, there are at least two mount points in the linux system:/(root directory) and swap (swap partition), where,/is required;
For details, see the following:
Select the creat custom layout custom partition when installing the system
We recommend that you mount the following directories:
/Root directory to store system commands and user data
/Boot loader static link file to store programs related to Linux Startup
/Home user directory, where data of common users is stored/tmp temporary files/usr is where the software is stored in Red Hat Linux, if possible, allocate the maximum space to/usr/local self-installed programs and install the variable data in/var. Some server services should be placed below. /Opt Additional Application Software Package
In general, we need at least two partitions, one SWAP partition and one "/" partition, but some common and important mount points are assigned to other partitions, which facilitates management. Generally, one/partition, one/usr partition, one/home partition, and one/var partition. All of these can be allocated and modified according to your own needs.
Ii. Recommended System Partition Scheme
/Swap directory 8 GB # memory less than 4 GB is twice the memory size greater than 4 GB is the same as the memory size.
/Boot directory 100 M
/Root directory 30G-50G # larger forced primary Partition
/Var directory 30G-50G # It is better to store a variety of log files larger
/Usr category 50G-100G # used for Personal Configuration applications, especially when installing programs that are easy to generate large logs. If wowza tomcat is used, it is better to divide them into larger ones.
/Home 10G
/Opt 10G
/Tmp 10G
Other remaining space can be divided into a part for business applications, which can be allocated according to their own needs.
If you install a database, you can divide/data to store database files.
You can install the web service by dividing/using webroot to store webpage files, etc.