创建GPT磁盘分区
]# parted /dev/sdb
输入help,查看操作命令:
(parted) help
第一步:选择磁盘标签类型:
(parted) mklabel
输入:gpt
输入:yes:确认更改卷标;
错误: Partition(s) 5, 6, 7 on /dev/sdb have been written, but we have been unable to inform the
kernel of the change, probably because it/they are in use. As a result, the old partition(s)
will remain in use. You should reboot now before making further changes.
忽略/Ignore/放弃/Cancel? i
(parted) print
Model: VMware, VMware Virtual S (scsi)
Disk /dev/sdb: 21.5GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:
Number Start End Size File system Name 标志
第二步:创建磁盘分区:
(parted) mkpart
分区名称? []? sdb1
第三步:创建磁盘分区文件系统类型:
文件系统类型? [ext2]?ext4
第四步:指定分区空间的起始点,以字节为单位:
起始点? 513
结束点?2513
创建磁盘分区完成,创建第二个磁盘分区,重复前2步即可。
最后,quit保存退出。