Installing a Linux system on a computer, partitioning the hard disk is a very important step, and here are a few of the partitioning schemes.
Scenario 1
- /: Recommended size is above 5GB.
- Swap: Swap partition, the recommended size is one or more times of physical memory.
Scenario 2
- /boot: Used to store the Linux system boot-related programs, such as boot loader, etc., the recommended size is 100MB.
- /: The root directory of the Linux system, all directories are hung under this directory, the recommended size is more than 5GB.
- /home: The data for ordinary users is the host directory of ordinary users, the recommended size is the remaining space.
- Swap: Implements virtual memory, the recommended size is one or more times of physical memory.
Scenario 3
- /boot: Used to store the Linux system boot-related programs, such as boot loader, etc., the recommended size is 100MB.
- /usr: used to store applications in Linux systems, with more relevant data, more than 3GB is recommended.
- /var: used to store frequently changing data and log files in Linux systems, more than 1GB is recommended.
- /home: The data for ordinary users is the host directory of ordinary users, the recommended size is the remaining space.
- /: The root directory of the Linux system, all directories are hung under this directory, the recommended size is more than 5GB.
- /tmp: The temporary disk in a separate partition, you can avoid the system when the file system is full of stability affected. The recommended size is above 500MB.
- Swap: Implements virtual memory, the recommended size is one or more times of physical memory.
The above content is reproduced from: http://www.5icool.org/a/201205/a1360.html
Linux (CentOS 6.4) Install custom partitioning scheme (reprint)