我正在尝试以最基本的方式使用 parted:将外部 USB 硬盘格式化为 ext2(理想情况下是 ext4,但似乎不是一个选项)。它是 3TB,卸载在 /dev/sdd
sudo parted /dev/sdd
mklabel
[type gpt]
[type yes to agree that everything on that hard drive will be lost]
mkpart
[type myDefaultPartitionName]
[type what for Start? prompt]
当我能解决这一问题之后,我怎么知道结束时要输入什么?
谢谢
答案1
特别感谢 Darael 帮助我发现 gdisk。下面是我成功分区外部硬盘的步骤。将下面的 x 替换为您的驱动器名称。
sudo apt-get install gdisk
sudo parted -l # inspect your drive's name and make sure it is the external one!
sudo umount /dev/sdx1 # ensure that drive is NOT mounted
sudo gdisk /dev/sdx1 # launch gdisk on the drive of interest
? # explore the features gdisk offers
n # create a [n]ew partition
[enter] # choose default first sector
[enter] # choose default last sector
a502 # choose FreeBSD
v # [v]erify
c # [c]hange the name of the partition, e.g. MY_1TB_BACKUP
p # [p]rint to ensure the renaming is to your liking
w # [w]rite the changes to disk
sudo mkfs -t ext4 /dev/sdx1 # create the filesystem as type ext4