Linux partition (mount point)

Source: Internet
Author: User

First, there is no partition under Linux, only mount points, and mount points are similar to the partitions under Windows.

Before you plan the mount point and its size, understand the role of the following major directories:

/

(root directory)

there must be a mount point! If you only want to divide a mount point, it is "/". This mount point theoretically 5G is enough to install the system, but in order to use the day, the proposal is divided 10~20g it.

Swap

(Swap space)

Equivalent to virtual memory under Windows. If the physical memory is less than 1G, the swap space is preferably twice times the memory, if the physical memory is more than 2G, the daily application basically does not need to swap space, will only be used during hibernation. So simple, no matter when, divide 2G enough.

/hom e

(Home directory)

Usually you create your own files are saved here, so it is best to separate a mount point, so that when the system is re-installed, the/home directory will not be affected. The size is generally the maximum remaining space or the space with/usr.

/usr

( application directory)

Most of the software is installed here, if you plan to install a lot of software, it is recommended to assign it a partition, and/home split the remaining space.

/var

(Variable Data Catalog)

If you want to do some server-side applications, consider assigning it a larger partition. This partition generally contains the data to be changed when the system is running, usually the size of the directory in which the data resides is constantly changing or expanding. In the original/var directory, some of the content is in/usr, but in order to maintain the relative stability of the/USR directory, the directories that need to change frequently are placed in/var.

/boot

(Startup directory)

The static file that is used by the boot loader. If your hard drive does not support LBA mode (unlikely), you might want to mount it, and if you mount it, it is best to mount it on the first partition of the hard disk. 100M enough

In summary, take my computer as an example, 100G to Linux, partition as follows:

Mount point

Device

Description

/

/dev/sda9

20G

Swap

/dev/hda5

2G

/boot

/dev/hda6

100M

/home

/dev/hda7

39G

/usr

/dev/hda8

39G

Linux partition (mount point)

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.