1. 程式人生 > >linux對4T硬碟進行分割槽

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