linux 格式化大于2T的硬盘
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> 2T以下的硬盘,分区类型多为MBR,但MBR的最大容量大约是2.15T,超过3T的硬盘必须用GPT格式。 1 选择要格式化的硬盘 [root@quanzidian /]# parted /dev/sdb GNU Parted 2.1 Using /dev/sdb Welcome to GNU Parted! Type 'help' to view a list of commands. (parted) 2 选择GPT类型 (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? 3 然后输入yes (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 (parted) 4 将硬盘分成一个分区