parted 挂载大于2T的硬盘

接入硬盘,查看信息,确认目标硬盘

fdisk -l
磁盘 /dev/sdc:8001.6 GB, 8001563222016 字节,15628053168 个扇区
Units = 扇区 of 1 * 512 = 512 bytes
扇区大小(逻辑/物理):512 字节 / 4096 字节
I/O 大小(最小/最佳):4096 字节 / 4096 字节
磁盘标签类型:gpt
Disk identifier: A3B0B630-2DB2-4028-9FDA-E12B8A75C999


#         Start          End    Size  Type            Name

开始分区 /dev/sdc

[root@localhost ~]# parted /dev/sdc
GNU Parted 3.1
使用 /dev/sdc
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted)      

设置分区表

(parted) mklabel                                                          
新的磁盘标签类型? gpt                                                    
警告: The existing disk label on /dev/sdc will be destroyed and all data on this disk will be lost. Do you want to continue?
是/Yes/否/No? yes              

查看信息

(parted) print                                                            
Model: ATA ST8000NM000A-2KE (scsi)
Disk /dev/sdc: 8002GB
Sector size (logical/physical): 512B/4096B
Partition Table: gpt
Disk Flags: 

Number  Start  End  Size  File system  Name  标志

创建分区

(parted) mkpart
分区名称?  []? data                                                      
文件系统类型?  [ext2]? ext4                                              
起始点? 0                                                                
结束点? 100%
警告: The resulting partition is not properly aligned for best performance.
忽略/Ignore/放弃/Cancel? Ignore