A, Linux the hard disk partition: root partition (/) swap (/ the swap) and / boot partition

1.1 Description Partition

1.1.1 root partition

The root partition is the root partition, everything in this sub-region

1.1.2 / swap partition

/ Swap partition swap partition, the disk space is constant (partitions or files), the data memory part for changing down to free up memory space for other requirements. In one system, physical memory is used up quickly, the operating system uses the swap. When the system memory is tight, the operating system based on a certain algorithm rules to save a part of recently not used pages of memory to the swap partition, so as to require memory-intensive programs leave enough memory space; memory page in the swap is being accessed when, the system will be re-loaded into physical memory to run.

1.1.3 / boot partition

It contains the operating system kernel and boot the system in the course of the use to the file, built this partition is necessary because most of the current pc confidential restricted BIOS, and moreover if they have a separate / boot boot partition, root partition immediate major problems, the computer is still able to start. The partition size is between about 60MB-120MB.

1.1.4 / usr partition

Linux is a place to store software, if possible, should be the biggest space given to him.

1.1.5 / home partition

Is the user's home directory location, the size of this partition depends on how many users, if it is multi-users to share the same computer, this partition is absolutely necessary, besides the root user can also control common good using the computer, such as imposing hard limits on the use of users or user groups to restrict ordinary users access to those documents.

1.1.6 / var / log partition

The system is logging partition, if set up this separate partition, so that even if the log file system, there is a problem, they do not affect the primary partition of the operating system.

1.1.7 / tmp partition

Used to store temporary files, which for multi-user systems or network server is necessary, so that even generate a lot of temporary files, or the user when the program is run on the operating system is wrong, the other part of the file system is still safe because this part of the file system still suffered under the read and write operations, so it usually happens faster than the rest of the problem.

1.2 partition size

/ Boot partition sizes between 60MB-120MB it

/ Swap partition size:

  1. Physical memory, swap set within 2 times the memory is 4GB
  2. 4-8G physical memory, swap memory size is equal to
  3. Physical memory, swap 8G is set 8-64G
  4. 64-256G physical memory, swap to 32G

Guess you like

Origin blog.51cto.com/13131277/2483865