Get the App
SLTechnology News&Howtos  ›  Servers  › 

How to manage centOS 7 disk

Shulou Source: shulou.com Published: 2022-06-01 02:36:19 11月14日 Update

In this issue, the editor will bring you about how to manage centOS 7 disks. The article is rich in content and analyzed and described from a professional point of view. I hope you can get something after reading this article.

I. disk management commands and the role of each field

1. Disk management command

2.fdisk-l the meaning of each field

First field: device ID or name

The second field: boot indicates the boot partition or boot partition, * Boot the system from the current partition

The third field: the beginning of the disk cylinder

Fourth field: disk cylinder end position

Fifth field: the size of the partition

Sixth field: partition ID 83 identifies the xfs or ext4 file system, 82 is the swap partition, and 8e is the lvm volume

Seventh field: the identification information is using the Linux system

The role and common options of the 3.fdisk command

Partition establishment, partition deletion, partition system conversion

M help

N create partition type: P primary partition, e extended partition, l logical partition, t convert partition format, p display disk information, w save exit, Q do not save exit, d delete partition

4. Considerations for creating points

Up to 4 primary partitions are available; extended partitions can only have 1; logical partitions must be created on top of extended partitions

5. Simple creation

6. Expand swap partition SPAC

1) convert disk partition type to swap

Mount the file system and configure the file system to mount automatically

1. Mount the computer partition

1) Mount the xfs file system sdb1 to the current

2) Mount the sdb2 file system to the current location sdb2

3) View the mounted file system

4) unmount the mounted file system

5) configure auto-mount partition

Esc exit,: X save, restart the computer

The above is the editor for you to share how to carry out centOS 7 disk management, if you happen to have similar doubts, you might as well refer to the above analysis to understand. If you want to know more about it, you are welcome to follow the industry information channel.

Tags: System field disk file management identity command location function information content type computer logic analysis configuration three professional small and medium matters Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Xiaomi macOS vpn Microsoft Shulou Tech Info