Home>Article>Operation and Maintenance> What does linux root partition mean?

What does linux root partition mean?

WBOY
WBOY Original
2022-07-11 16:36:45 5619browse

The Linux root partition means the system partition. Everything in the system is stored in the root partition, also called the root partition; Linux is a tree file system, and the root partition is its root node. Any directory files will be hung below the root node, and Linux has only one root. No matter how many partitions the hard disk is divided into, these partitions must be mounted under the root directory before they can be used.

What does linux root partition mean?

#The operating environment of this tutorial: linux7.3 system, Dell G3 computer.

What does the Linux root partition mean?

The so-called root partition, to put it bluntly, is the system partition, the root partition, and everything is placed in it.

Linux is a tree file system, the root partition is its root node, and any directory files will be hung below the root node. Linux has only one root. You can partition your hard disk, but the partition device must be mounted to a specified location under the Linux root directory, such as /usr, /var, /home, etc. If you want to operate on a partition, you can only operate in the directory where the partition is mounted. Therefore, no matter how many partitions the hard disk is divided into, these partitions must be mounted to the root directory before they can be used.

Knowledge Expansion

The two terms root partition and primary partition are not related.

Let’s briefly talk about the partition types of the Linux platform.

/boot partition, which contains the kernel of the operating system and files used in the process of booting the system. It is necessary to build this partition because most current PCs are restricted by the BIOS. Moreover, if there is a separate /boot boot partition, even if there is a problem with the main root partition, the computer can still start. The size of this partition is approximately between 60MB and 120MB.

/usr partition is where the Linux system stores software. If possible, the maximum space should be allocated to it.

/home partition is where the user's home directory is located. The size of this partition depends on how many users there are. If multiple users share a computer, this partition is completely necessary. Moreover, the root user can also well control the use of the computer by ordinary users, such as limiting the use of hard disks for users or user groups, and restricting which files ordinary users can access. wait.

/var/log partition is the system log recording partition. If this separate partition is set up, even if there are problems with the system log files, they will not affect the main partition of the operating system.

/tmp partition, used to store temporary files. This is necessary for multi-user systems or network servers. In this way, even if a large number of temporary files are generated when the program is running, or the user performs incorrect operations on the system, other parts of the file system are still safe. Because this part of the file system is still undergoing read and write operations, it usually fails faster than other parts.

/bin partition stores standard system utilities.

The above introduces several commonly used partitions, but remember to have at least two partitions, one SWAP partition and one /root partition.

Partition size

/boot partition size is between 60MB-120MB

/swap partition size:

For physical memory within 4GB, swap is set to 2 times the memory.

For physical memory of 4-8G, swap is equal to the memory size. For physical memory of

8-64G, swap is set to 8G

64-256G physical memory, swap is set to 32G

Recommended learning:Linux video tutorial

The above is the detailed content of What does linux root partition mean?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn