Command action
a toggle a bootable flag
b edit bsd disklabel
c toggle the dos compatibility flag
d delete a partition
l list known partition types
m print this menu
n add a new partition
o create a new empty DOS partition table
p print the partition table
q quit without saving changes
s create a new empty Sun disklabel
t change a partition's system id
u change display/entry units
v verify the partition table
w write table to disk and exit
x extra functionality (experts only)
Command action
e extended
p primary partition (1-4)
然后选择p主分区,要不然不能挂载到系统里。然后一直回车就行,注意途中要求输入是第几个分区,输入1,即sdb1 。然后要输入分区大小,从哪块到哪块。默认的话就是从1到最后,即划分全部硬盘空间做一个分区。
文件系统 容量 已用 可用 已用% 挂载点
/dev/sda3 27G 3.5G 23G 14% /
/dev/sda1 145M 12M 126M 9% /boot
tmpfs 506M 0 506M 0% /dev/shm
/dev/sdb1 1004M 18M 936M 2% /app