Centos partition / disk than the 2T

centos partitions larger than 2TB

with parted partitioning tool to partition


fdisk -l to view the sub-district (I am here is / dev / vdb)


parted / dev / vdb # to enter the / dev / vdb partition

mktable # partition (piece)

New Disk label ? type gpt # selected partition format gpt

 warning: at the existing Disk label oN / dev / VDB by Will bE Destroyed and All the Data oN
 .? the this Disk by Will bE Lost the Do you want to the Continue # this is a warning, saying that if this side of the partition, the data will be overwritten and data will be lost, ask you whether to continue?

 Yes / No? Y # Enter "y", denotes determined, the next step

 (parted) mkpart # partition command on the command line output

 Partition name? []? Primary # partition type primary partition, which is a name to a partition, you can custom parameters I can not write here, there is no extended partition, he said it is a primary partition.

File system type? [Ext2]? Ext2 # Set the file system to the performance of ext2

Start? 0 # set the starting dispensing position

End? 2G # Set the end of the dispensing position

(parted) print # View
(parted) mkpart # continue partition
 Partition name? []? Primary # own custom name
File system type? [Ext2]? Ext2 # Set the file system to the performance of ext2
Start? 5G # Set the label starting position
End? 100% # input 100%, the remaining All capacity at both assigned to the partition.
(parted) the p-result # print the partition


 (parted) quit # exit partition mode, do not need to enter the save button, it will automatically quit to save the partition table information.



After the launch with blkid view but we can not see sub-district, if I partition divided four each for the 1T, then the default will be / dev / vdb1 / dev / vdb2 / dev / vdb3 / dev / vdb4 partition, we can only see / dev / vdb1 such a. In fact, it is not formatted, let's format.

 -t ext4 the mkfs / dev / vdb1
 the mkfs -t ext4 / dev / vdb2
 the mkfs -t ext4 / dev / vdb3
 the mkfs -t ext4 / dev / vdb4

Guess you like

Origin www.cnblogs.com/guarderming/p/10984097.html