Several important directories, these several directories in the Ubuntu installation of hard disk partitions, can be selectively selected for special partitions to be mounted.
/ usr file system generally does not change the files, such as libraries, programs.
the/var file system contains files that will change.
the/Home file system contains all of the actual data on the system, including the user House directory.
/ tmp temp file.
/usr/local This is the/USR directory provided to the general user, which is most suitable for installing the software.
/srv After some services are started, the required data is put here.
/opt Some large programs, installed here, easy to manage.
/root directory, nothing to say.
from the point of view of disk fragmentation,/tmp,/Var, and/home are the most active partitions, and if we put them directly in the root directory will inevitably cause the problem of processing, then there is disk fragmentation affects the performance of the entire disk.
Therefore, I recommend that all of the above directories be partitioned separately and mounted separately.
in the
partitioning is also a certain ingenuity, according to the characteristics of the disk, we know that the more the cylinder outside the disk, the faster the rotation, and each rotation, the disk read and write head can cover more areas, it means that by
The external cylinder can get better performance. Therefore, when partitioning, we should consider the high frequency of access to the system can affect the relatively large partition on the disk by the external points. The best solution from the outside to the inside should be
are:
/boot->swap->/home->/var->/tmp->/srv->/opt->/usr->/usr/local->/
of course, there is absolutely no need to stick to this rule and make large-scale changes to the hard disk, can be adjusted according to the existing partition.
after dividing the above areas, do not use all the space, you should leave a few empty partitions for backup
This article is from the "I am a Little bird" blog, please make sure to keep this source http://2242558.blog.51cto.com/2232558/1545319
Linux Disk partitioning optimization