标签:com using type 磁盘分区 分区 命令 lag help log
1、 parted 磁盘分区 (parted) mkpart primary 101 201
(parted) mkpart logical ext4 202 302
(parted) p
Model: VMware, VMware Virtual S (scsi)
Disk /dev/sdb: 1074MB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Number Start End Size File system Name Flags
1 17.4kB 100MB 100MB primary
2 101MB 201MB 101MB primary
3 202MB 302MB 99.6MB logical
(parted) rm 3 ##删除分区3
###命令批量执行创建分区###
[root@Tim ~]# parted /dev/sdb mklabel gpt Yes
parted /dev/sdb mkpart primary 0 10 Ignore
parted /dev/sdb mkpart primary linux-swap 11 21 Ignore
parted /dev/sdb mkpart logical ext4 22 32 Ignore
parted /dev/sdb p
标签:com using type 磁盘分区 分区 命令 lag help log
原文地址:http://blog.51cto.com/11956937/2065225