方案一:
系统自带磁盘工具(很少有用)
方案二:
使用diskutil命令
使用 diskutil list 查看磁盘列表
使用 diskutil partitionDisk /dev/disk0 MBR FAT32 UNTITLED 0b 格式化磁盘, 其中 /dev/disk0 是上一步查看到的要格式化的磁盘名.
方案三:
使用fdisk命令
首先使用sudo fdisk -e /dev/disk0
然后进入交互式命令
使用erase抹除磁盘, w保存, auto dos自动创建dos格式分区,quit退出
fdisk: 1> erase
fdisk:*1> w
Writing MBR at offset 0.
fdisk: 1> auto
usage: auto <style>
where style is one of:
boothfs 8Mb boot plus HFS+ root partition (default)
hfs Entire disk as one HFS+ partition
dos Entire disk as one DOS partition
raid Entire disk as one 0xAC partition
fdisk: 1> auto dos
fdisk:*1> w
Writing MBR at offset 0.
fdisk: 1> quit
使用官方教程制作macOS启动盘(需要首先把镜像安装到Application中)