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 200MB.
/: 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 200MB.
/usr : Used to store applications on Linux systems, with more relevant data, more than 3GB is recommended.
/var  : For storing frequently changing data and log files in Linux systems, it is recommended that more than 1GB.
/home : 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 5GB or more.
/tmp : The temporary disk is in a separate partition to avoid affecting the stability of the system when the file system is plugged in. The recommended size is above 500MB.
Swap : Implements virtual memory, the recommended size is one or more times of physical memory.
Scenario 4 (20G space allocation scheme)
/boot:200m32m-100m (boot partition up to 100M or so)
swap:2g
/: 2g1g-2g (Minimum 150–250MB)
/home:1g2g-10g (about 100M per user, specific custom. User directory. )
/tmp:1g40m-1000m (maximum can be set to about 1G, if the load ISO image file is set to 4G or so, generally not so much)
/OPT:2G100M-1G (add-on application)
/var:2g>2g– hard disk All the rest of the space (minimum 300m-500m, general 2-3g, server words to the rest of the above
/DATA:2G>=2G, for placing personal data (this partition alternative)
/USR:7G3G-10G (the most space-consuming part.) At least about 500M, generally loose server to be divided into 4-6g)
Linux system hard disk partitioning scheme recommended