For details about linux hard disk partitioning, refer to general Linux technology-Linux technology and application information. Original: Czech fast
Note the following when partitioning a hard disk:
There are several reasonable distribution methods for linux hard disks.
First, we need to put the frequently accessed parts on the edge of the hard disk as much as possible. What does that mean? For example, the/boot partition that must be used during linux Startup is usually divided into hard disks, which is about 100 mb. Why, in this case, the system first detects this part of the file during startup, and does not need to look back. This speeds up the system startup, it also indirectly prolongs the service life of the hard disk.
The second is to separate frequently used partitions into one partition, such as/boot,/,/home,/usr. if you need to use your linux machine as a personal server, separate/opt,/tmp, and/usr directories into separate spaces, these three directories are frequently accessed during server running. At the same time, you need to leave some space for linux backup.
The third is to pay attention to the size of the space required by each partition. Generally,/boot is 100 M, and/usr,/opt, after/tmp is separately divided, 2 GB is enough (otherwise, it is necessary to divide/into 5 GB space to fully carry/usr), and/usr should use 4 GB at least, /opt is about 1G,/tmp is about 1G,/home2G, and swap is about twice the memory. (I believe everyone's machines will not be so poor now, 80 GB hard disks are everywhere now !)
For more information about how to install a linux system on a single hard disk (80 GB memory and 1 GB memory), see: