parted分区

((parted)mklabel ----创建磁盘标签
New disk labeltype? gpt ---输入磁盘表情名
(parted) p ----再次列出磁盘分区

(parted) mkpart
Partition name? []? dc1
File system type? [ext2]? ext4
Start?
Start? 0
End? 8000G
Warning: The resulting partition is not properly aligned for best performance.
Ignore/Cancel? Ignore
(parted) p
Model: LSI MR9271-8i (scsi)
Disk /dev/sdc: 8000GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:

Number Start End Size File system Name Flags
1 17.4kB 8000GB 8000GB dc1

(parted) quit
Information: You may need to update /etc/fstab.

[root@node5 ~]# mkfs -t ext4 /dev/sdc1           #格式化

posted @ 2016-12-05 14:17  (KeeP)  阅读(129)  评论(0编辑  收藏  举报