[root@Redhat8 ~]# fdisk /dev/sda Welcome to fdisk (util-linux 2.32.1). Changes will remain in memory only, until you decide to write them. Be careful before using the write command. Command (m for help): p#查看当前分区表 Disk /dev/sda: 110 GiB, 118111600640 bytes, 230686720 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type: gpt Disk identifier: B24B4DC5-ADAB-4ABD-85F9-65D31507AFC7 DeviceStartEndSectorsSize Type /dev/sda1204812308471228800600M EFI System /dev/sda21230848332799920971521G Linux filesystem /dev/sda33328000 209713151 206385152 98.4G Linux LVM Command (m for help): n#创建新分区 Partition number (4-128, default 4): 4# 分区号,直接回车使用默认值 First sector (209713152-230686686, default 209713152):# 起始扇区,直接回车使用默认 Last sector, +sectors or +size{K,M,G,T,P} (209713152-230686686, default 230686686): # 结束扇区,直接回车使用整个硬盘 Created a new partition 4 of type 'Linux filesystem' and of size 10 GiB. Command (m for help): t#更改分区类型 Partition number (1-4, default 4): 4 Partition type (type L to list all types): 31设置LVM分区类型 Changed type of partition 'Linux filesystem' to 'Linux LVM'. Command (m for help): p# 验证分区表 Disk /dev/sda: 110 GiB, 118111600640 bytes, 230686720 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type: gpt Disk identifier: B24B4DC5-ADAB-4ABD-85F9-65D31507AFC7 DeviceStartEndSectorsSize Type /dev/sda1204812308471228800600M EFI System /dev/sda21230848332799920971521G Linux filesystem /dev/sda33328000 209713151 206385152 98.4G Linux LVM /dev/sda4209713152 2306866862097353510G Linux LVM Command (m for help): w#保存并退出 The partition table has been altered. Syncing disks. [root@Redhat8 ~]# |