使用parted创建gpt大分区例子

时间:2023-03-10 03:32:47
使用parted创建gpt大分区例子
[root@VM000000518 ~]# parted /dev/xvde
GNU Parted 2.1
Using /dev/xvde
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) p
Error: /dev/xvde: unrecognised disk label
(parted) mklabel gpt
(parted) print
Model: Xen Virtual Block Device (xvd)
Disk /dev/xvde: .1TB
Sector size (logical/physical): 512B/512B
Partition Table: gpt Number Start End Size File system Name Flags (parted) mkpart primary 15T
Warning: The resulting partition is not properly aligned for best performance.
Ignore/Cancel? I
(parted) mkpart primary 15T 30T
(parted) mkpart primary 30T 45T
(parted) mkpart primary 45T 60T
(parted) mkpart primary 60T -
(parted) p
Model: Xen Virtual Block Device (xvd)
Disk /dev/xvde: .1TB
Sector size (logical/physical): 512B/512B
Partition Table: gpt Number Start End Size File system Name Flags
.4kB .0TB .0TB primary
.0TB .0TB .0TB primary
.0TB .0TB .0TB primary
.0TB .0TB .0TB primary
.0TB .1TB 6142GB primary (parted) quit
Information: You may need to update /etc/fstab. [root@VM000000518 ~]# blkid