CentOS System three sets of hard disk partition scheme

Source: Internet
Author: User
Keywords Hard disk partitions CentOS
Tags boot loader button centos click computer create data default

Installing a Linux system on your computer, partitioning your hard disk is a very important step, and here are several partitioning scenarios.

(1) Programme 1
/: Recommended size above 5GB.
Swap: Swap partition, recommended size is 1~2 times of physical memory.

(2) Programme 2
Boot: used to store programs related to Linux system startup, such as boot loader, and so on, the recommended size is 100MB.
/: The Linux system root directory, all the directories are hanging under this directory, the recommended size of more than 5GB.
FileSystem: For ordinary users of the data, is the normal user's host directory, the recommended size for the remaining space.
Swap: Implements virtual memory, the recommended size is 1~2 times of physical memory.

(3) Programme 3
Boot: used to store programs related to Linux system startup, such as boot loader, and so on, the recommended size is 100MB.
/usr: used to store applications in the Linux system, with more data and recommendations than 3GB.
var: used to store frequently changing data and log files for Linux systems, more than 1GB is recommended.
FileSystem: For ordinary users of the data, is the normal user's host directory, the recommended size for the remaining space.
/: The Linux system root directory, all the directories are hanging under this directory, the recommended size of more than 5GB.
/tmp: The temporary disk is in a separate partition to avoid the system's stability when the file system is stuffed. The recommended size is above 500MB.
Swap: Implements virtual memory, the recommended size is 1~2 times of physical memory.

Disk partition configuration

If the new hard drive, the following error message may occur, this message only prompts you, the installer can not find the partition table, do not need to worry. At this point, you can press the Yes button directly, as shown in the following figure.

(1) partition mode

As mentioned earlier, disk partitioning is the most important part of the entire installation process. The CentOS preset gives us four partitioning modes:

<1> Delete all partitions on the selected disk and create a default partition structure:
If you choose this mode, your hard drive will be the entire use of Linux, and the hard drive inside the partition is removed, to install the default way to re-establish the partition structure, the use of special attention!

<2> remove the Linux partition from the selected driver and create the default partition structure:
Within this hard drive, only the Linux partition is removed, and then the partition is reset in the default mode of Setup.

<3> Use the free space in the selected drive and create the default partition structure:
If you have an undivided disk space on your hard drive (note that it is not being split, not the data in the partition). Then, after using this item, he will not change the original partition, and will only set up the preset partitions for the remaining undivided chunks.

<4> establish a custom partition structure:
That's what we're going to use! Do not use the preset segmentation of the installer and use the segmentation method we need to process.

(2) Default partition mode

As shown in the following illustration, for the Disk Partition Setup dialog box, select Default (Remove the Linux partition on the selected driver and create the default partition structure). Click the Next button, and then click the Yes button, and then click the "Next" button to see the system default disk settings as shown in the following illustration.

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.