Meaning of each partition in Linux hard disk partition: Although Linux can be installed in a single large partition according to the partition principle we have mentioned, it is better to separate it. Considering the simplicity of a single partition and the flexibility of multiple partitions, we recommend the following configuration. Note: If you want to install all Linux software packages, you must use the larger partition size specified here. In fact, you may increase the recommended size so that you do not have to repartition during future upgrades.
Meaning of each partition in Linux hard disk partition:
Although Linux can be installed in a single large partition according to the partition principle we have mentioned, a better idea is to separate it. Considering the simplicity of a single partition and the flexibility of multiple partitions, we recommend the following configuration. Note:
If you want to install all the Linux software packages, you must use the larger partition size shown here. In fact, you may increase the recommended size so that you do not have to re-partition during future upgrades.
1) one swap partition. Swap partitions are used to support virtual memory. If your computer memory is less than 16 MB, you must create swap partitions. Swap partitions are recommended even if you have more memory. The minimum size of the swap partition is your memory size, or 16 MB (the two are larger ). A swap partition can reach a maximum of 1 2 7 m B, so creating a larger swap partition is a waste of space. Note that you can create and use more than one swap partition (although this is usually installed on a large server ).
2) one root partition. The root partition is the "/" (root directory) location (not/root ). It only needs the files and system configuration files required to start the system. For most systems, the root partition of 50 MB to 100 mb B can work well.
3) One/usr partition. /Usr is the place where many software in Linux systems are located. Based on the number of packages you switch and install, the partition should be between MB and MB. If possible, use the maximum space for the/usr partition. Any RPM-based package you will install in the future will use more/usr space than other partitions.
4) One/home partition. This is the location of the user's home directory; its size depends on the number of users in your Linux system and how much data these users will store. If the system is used as the E-mail service, each user will be reserved about 5 MB space. if the personal homepage storage space will be provided, at least 20 MB space should be reserved for each user.
For website builders, please note that the content of your Web service and anonymous Ftp/home/ftp server is also here!
In addition, your environment may require you to create one or more of the following partitions:
1) One/usr/local partition. Generally,/user/local is used to store software different from other Linux systems, such as software that is not an RPM package. The size of the software depends on the number of software you are about to store.
2) One/usr/src partition. In a Linux system,/usr/src usually stores two things:
Linux kernel source program. All the source programs of the kernel are stored here, and the new kernel is also created here. Currently, the kernel source program is about 30 MB. Remember, you may need more space to create the kernel or save several different versions of the kernel.
RPM Package source program. If the source program of the package is installed, the file will be stored here. Note: Unless otherwise specified,
Create a package also uses the 'create directory' here '.
Similarly, the size of the partition depends on the number of software you will install here.
3) One/tmp partition. Like its name, the/tmp partition is used to store temporary files. It is a good idea to create a/tmp partition for a large, multi-user system or network server. For a single-user workstation, you do not have to create a dedicated/tmp partition.
4) One/var partition. Your Linux system will write logs in/var/log. The print queue files are usually written in/var/spool. This is just two examples written in/var. Unless otherwise configured,/var will be part of the root file system and usually does not occupy much space. If your system has many prints, emails, or logs, consider creating a/var partition.
Generally, only multiple users or servers need dedicated/var partitions.
5) One/boot partition. Most of the partitions mentioned here are for large systems. this partition is useful for systems with very little space. In the above section, we discussed some restrictions on the BIOS of the standard PC and how these restrictions affect the startup of LILO. All the files required for starting LILO are in the/boot directory. Therefore, the best way is to divide the root file into a single partition with a maximum size of 64 MB. it is best to divide the partition first and then/usr.