Centos hard disk partitioning Solution

Source: Internet
Author: User

Hard Disk partitioning scheme

Installing Linux on a computer is an important step in partitioning a hard disk. The following describes several partitioning schemes.

(1) solution 1
/: The recommended size is 5 Gb or above.
Swap: swap partition. the recommended size is 1 ~ of the physical memory ~ 2 times.

(2) solution 2
/Boot: used to storeProgramFor example, to start the boot loader, the recommended size is 100 MB.
/: Linux root directory. All directories are mounted under this directory. the recommended size is 5 Gb or above.
/Home: stores the data of common users, which is the home directory of common users. The recommended size is the remaining space.
Swap: Implements virtual memory. The recommended size is 1 ~ of physical memory ~ 2 times.

(3) solution 3
/Boot: used to store programs related to Linux Startup, such as boot loader. the recommended size is 100 MB.
/Usr: used to store applications in the Linux system. The related data is large. It is recommended that the data size be greater than 3 GB.
/Var: used to store frequently-changing data and log files in Linux. It is recommended that the value be larger than 1 GB.
/Home: stores the data of common users, which is the home directory of common users. The recommended size is the remaining space.
/: Linux root directory. All directories are mounted under this directory. the recommended size is 5 Gb or above.
/Tmp: place the temporary disk in an independent partition to avoid affecting the system stability when the file system is full. The recommended size is more than MB.
Swap: Implements virtual memory. The recommended size is 1 ~ of physical memory ~ 2 times.

Bytes -------------------------------------------------------------------------------------------------------------------------------

 

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.