使用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

 

相关文章:

  • 2021-11-30
  • 2021-11-30
  • 2021-06-03
  • 2022-12-23
  • 2021-12-24
  • 2021-10-31
猜你喜欢
  • 2022-12-23
  • 2021-10-04
  • 2021-04-06
  • 2021-11-30
  • 2021-12-07
  • 2021-08-14
  • 2022-01-06
相关资源
相似解决方案