Hard disk partitioning recommendations for CentOS installation system

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.