Linux Disk partitioning optimization

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.