linux对4T硬盘进行分区

使用parted工具:

yum install parted
parted /dev/sdb //选择硬盘

GNUParted 2.3Using /dev/sdbWelcome to GNU Parted! Type 'help' to view a lis ofcommands。
(parted) mklabel gpt //类型GPT

Warning: The existing disk label on /dev/sdb will be destroyedand all data on this disk will be lost. Do you want to continue?
Yes/No? y //确定
(parted) mkpart prinmary 1 -1 //将硬盘分成一个分区 
(parted) print //查看
(parted) quit //退出Information: You may need to update /etc/fstab.
mkfs.ext4 /dev/sdb1 //格式化文件系统为ext4

 

转载于:https://www.cnblogs.com/xzlive/p/10130062.html

你可能感兴趣的:(linux对4T硬盘进行分区)