Linux partitioning method, different people have different methods, anyway, there is no uniform method. In terms of zoning, I think it is best to score according to my own actual situation. I have been playing Linux for several years, and I have some experience in zoning.
First, personal use
If it is personal use, there is no need to divide so many areas, divided into one area, or two districts on the line.
Divided into one area, you need a root partition on the line/, my multiple systems inside the Linux is a partition.
Divided into two districts, one/boot partition, one root partition/
Second, the server with
About the server partition, do not divide too much, suitable for their own line, there are two kinds of better methods, suitable for two different kinds of people
1, people like to use software management tools, Pacman,yum,apt-get and so on.
This kind of people like to use software with the software to install the Web server, MySQL server, mail server and so on.
The code is as follows:
/boot partition 100M, absolutely enough.
/home hard disk size *4% According to the number of user data, to increase or decrease
/USER hard disk size *6% like to use administrative tools, but there are always things to compile and install yourself.
/swap Intrinsic size *2
/var hard disk size *70% The default installed packages are basically here, as well as Web services, MySQL services, and so on, so this partition should be large enough
/tmp hard disk size *10% as a server, log files will be a lot, so take out alone. If scheduled cleanup can be reduced appropriately.
/The rest is for the root partition.
Second, like to compile their own installation of the people
Manual Build installation Flexibility is relatively high, but if you upgrade your system, it may cause manual installations to be unavailable.
The code is as follows:
/boot partition 100M, absolutely enough.
/home hard disk size *60% For example: I want to build a Web server, build a Nginx user group and users, and then, of course, first download the source code, and then put it under the Nginx user's root directory, the installed directory under/usr/local, The code directory is also placed under the root directory of the Nginx user, not under/var, and the resulting log may also be placed under the Nginx user's root directory. So the server-related things, are placed under the user's directory, such users of this directory is very large.
/USER hard disk size *20% where the user is installed, put it under/usr/local, so this directory also needs to be a bit larger.
/swap Intrinsic size *2
/var hard disk size *10% A lot of system files are placed under/var, separate partitions, can improve the performance of the server
/The rest is for the root partition.