如何使用parted划分磁盘
1、用fdisk -l命令查看有一块8T大小的磁盘/dev/sda

2、使用fdisk /dev/sda的时候报错了,因为单块磁盘的大小超过了2T

3、使用parted /dev/sdb对8T的磁盘进行分区

4、(parted) mklabel gpt
Warning: The existing disk label on /dev/sdb will be destroyed and all data on this disk will be
lost. Do you want to continue?
Yes/No? yes

5、加粗部分是要输入的命令,分区的大小可以根据实际情况来定
(parted) mkpart primary 0 1100GB
Warning: The resulting partition is not properly aligned for best performance.
Ignore/Cancel? Ignore
(parted) mkpart primary 1100GB 1600GB
(parted) mkpart primary 1600GB 2700GB
(parted) mkpart primary 2700GB 4200GB
6、不需要按回车和保存,步骤5一执行完就已经分区好了,使用print命令打印分区的结果,然后输入quit 退出即可
(parted) print
Model: VMware, VMware Virtual S (scsi)
Disk /dev/sdb: 8693GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Number Start End Size File system Name Flags
1 17.4kB 1100GB 1100GB primary
2 1100GB 1600GB 500GB primary
3 1600GB 2700GB 1100GB primary
4 2700GB 4200GB 1500GB primary
(parted) quit
Information: You may need to update /etc/fstab.

7、对刚才分好的磁盘进行格式化后就能够使用了