Hard disk partitioning recommendations for CentOS installation system
I use CentOS for a long time, but there is always a time after the use of the system partition is not very reasonable, here is to summarize for themselves, but also to share with you.
I. Description of common mount points
In general, there are at least two mount points in the Linux system, namely/(root directory) and swap (swap partition), in which,/is required;
See below for details:
When installing the system, select Creat custom layout to customize the partition
Recommended list of directories to mount:
/root directory, storing system commands and user data, etc.
/boot boot loader static link file for Linux boot-related programs
/home User directory, storing data for ordinary users
/tmp temp file
/usr is where the Red Hat Linux system holds the software and, if possible, the maximum space should be allocated to it
/usr/local the self-installed program is installed here
/var constantly changing data, some server services are placed below.
/OPT Additional Application Packages
In general, we need at least two partitions, a swap partition, and a "/" partition, but it is easy to manage by dividing some common and important mount points into other partitions. General one/partition, one/usr partition, one/home partition, and one/var partition. All of these can be changed according to your own needs.
Two. Recommended system partitioning Scheme
/swap Directory 8G # #内存小于4G的为内存的2倍 memory is greater than 4G and memory size consistent
/boot Directory 100M
/root directory 30g-50g # #较大一些 Force primary partition
/var directory 30g-50g # #存放各种日志文件最好较大一些
/usr directory 50g-100g # #用于个人配置应用程序, especially to install some of the more prone to log larger programs if Wowza tomcat, etc., it is best to divide the larger
/Home 10G
/opt 10G
/tmp 10G
Other remaining space can be divided into business applications, can be assigned according to their own needs
If the installation database can be partitioned/data for storing database files
The installation Web service can be divided into/webroot for storing web pages and so on
Hard disk partitioning recommendations for CentOS installation system