parted /dev/sda
查看剩余空间
print free
Model: VMware, VMware Virtual S (scsi)
Disk /dev/sda: 129GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:
Number Start End Size Type File system Flags
32.3kB 1049kB 1016kB Free Space
1 1049kB 20.0GB 20.0GB primary ext4 boot
20.0GB 20.0GB 1048kB Free Space
2 20.0GB 70.0GB 50.0GB extended
5 20.0GB 70.0GB 50.0GB logical ext4
70.0GB 129GB 58.8GB Free Space
使用剩余空间
unit GB mkpart primary ext2 70 129
查看分区号
p
Model: VMware, VMware Virtual S (scsi)
Disk /dev/sda: 129GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:
Number Start End Size Type File system Flags
1 0.00GB 20.0GB 20.0GB primary ext4 boot
2 20.0GB 70.0GB 50.0GB extended
5 20.0GB 70.0GB 50.0GB logical ext4
3 70.0GB 129GB 58.8GB primary ext2 lba
4 70.0GB 129GB 58.8GB primary ext2 lba
设置为lvm格式
set 4 lvm on
或者
parted -s /dev/sda set 4 lvm on
阅读(2799) | 评论(0) | 转发(0) |