1.找到的分区id:diskutil list
# diskutil list
/dev/disk0
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *251.0 GB disk0
1: EFI EFI 209.7 MB disk0s1
2: Apple_HFS Macintosh HD 62.5 GB disk0s2
3: Apple_Boot Recovery HD 650.0 MB disk0s3
4: Apple_HFS d 62.5 GB disk0s4
5: Apple_HFS f 65.6 GB disk0s5
6: Apple_HFS g 59.1 GB disk0s6
/dev/disk1
#: TYPE NAME SIZE IDENTIFIER
0: Apple_partition_scheme *10.7 GB disk1
1: Apple_partition_map 32.3 KB disk1s1
2: Apple_HFS Unity Download Assis... 10.7 GB disk1s2
删除分区
# diskutil eraseVolume HFS+ Blank /dev/disk0s3
跟主分区合并
# diskutil mergePartitions HFS+ "Macintosh HD" disk0s2 disk0s3
好了, 现在就可以到磁盘工具调整大小了