MacOS下制作Linux系统安装盘(烧录iso文件到U盘)

1. 查看U盘位置

打开Terminal,输入以下命令

$ diskutil list

查出来我的U盘位置是/dev/disk2

2. 将U盘格式化为FAT32格式

$ sudo diskutil eraseDisk FAT32 CAM_STORE MBRFormat /dev/disk2

Password:
Started erase on disk2
Unmounting disk
Creating the partition map
Waiting for partitions to activate
Formatting disk2s1 as MS-DOS (FAT32) with name CAM_STORE
512 bytes per physical sector
/dev/rdisk2s1: 60523616 sectors in 1891363 FAT32 clusters (16384 bytes/cluster)
bps=512 spc=32 res=32 nft=2 mid=0xf8 spt=32 hds=255 hid=2048 drv=0x80 bsec=60553216 bspf=14777 rdcl=2 infs=1 bkbs=6
Mounting disk
Finished erase on disk2

这条命令加了sudo,因此需要先输入管理员密码

3. 取消挂载U盘

$ diskutil umountdisk /dev/disk2

Unmount of all volumes on disk2 was successful

4. 烧录

其中,参数if需要填入下载好的系统iso文件的路径

$ sudo dd if=/Users/wooson/Downloads/ubuntu-20.04.2-live-server-amd64.iso of=/dev/disk2 bs=1m; sync

1158+1 records in
1158+1 records out
1215168512 bytes transferred in 380.706347 secs (3191879 bytes/sec)

这个过程需要等待一段时间

5. 弹出U盘

$ diskutil eject /dev/disk2
  • 3
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值