What are the common partitions in Linux?

  When installing Linux, there are two ways to partition: you can choose to configure the partition automatically, or manually configure the partition, but many people don’t know much about this partition, so what partitions are needed when installing the Linux system? Here is a brief introduction for you.

  During the Linux installation process, common partitions include the following:

  1. Root partition (/)

  This is the root directory of the Linux system, including the core files of the operating system and system configuration. It usually requires a primary partition.

  2. Exchange partition (swap)

  The swap partition is used for auxiliary memory management, and part of the data is transferred to the hard disk when the physical memory is insufficient. It is recommended that the size of the allocated swap partition be twice the size of the physical memory, but for capacity memory, the swap partition can be appropriately reduced or not set. The swap partition can be a separate partition, or a swap file can be used instead.

  3. /boot partition

  In some cases, especially when using a bootloader, the /boot partition is used to store bootloader related files. This partition is usually relatively small, usually no more than 500MB.

  4. /home partition

  The optional /home partition is used to store the user's personal files and data, so that user data can be preserved without affecting other partitions when the system is reinstalled. If the /home partition is not set, user data will be stored under the root partition.

  Also, consider creating additional custom partitions, such as assigning separate partitions for specific applications, data storage, etc.

  Note that the exact partitioning scheme depends on system requirements and personal preference.

Guess you like

Origin blog.csdn.net/oldboyedu1/article/details/131899971