Mac OS制作Ubuntu的U盘启动盘

1. 下载Ubuntu的iso镜像文件

地址为:https://ubuntu.com/download/desktop

2. 把iso镜像文件转换成dmg文件

bash 复制代码
cd Downloads/
hdiutil convert -format UDRW -o ubuntu.iso ubuntu-18.04.2-desktop-amd64.iso

-format为生成文件的权限;UDRW :表示转换成有read/write的权限的镜像。

终端里面出现以下的成功信息:

复制代码
Reading Protective Master Boot Record (MBR : 0)...
Reading GPT Header (Primary GPT Header : 1)...
Reading GPT Partition Data (Primary GPT Table : 2)...
Reading ISO9660 (DOS_FAT : 3)...
...............................................................................
Reading Appended2 (C12A7328-F81F-11D2-BA4B-00A0C93EC93B : 4)...
...............................................................................
Reading Gap1 (DOS_FAT : 5)...
...............................................................................
Reading Ubuntu 22.04.2 LTS amd64         (Apple_ISO : 6)...
...............................................................................
Reading GPT Partition Data (Backup GPT Table : 7)...
...............................................................................
Reading GPT Header (Backup GPT Header : 8)...
...............................................................................
Elapsed Time: 10.566s
Speed: 444.7MB/s
Savings: 0.0%
created: /Users/wangyifan/Desktop/ubuntu.iso.dmg
  1. 插入U盘,并用命令行卸载U盘
    注意找到U盘的路径,使用命令
bash 复制代码
diskutil list

找到U盘的路径为/dev/disk4,并使用命令行卸载U盘:

bash 复制代码
diskutil unmountDisk /dev/disk4

显示信息为:

复制代码
Unmount of all volumes on disk4 was successful。
  1. 把iso文件写入U盘
bash 复制代码
mv ubuntu.iso.dmg ubuntu.iso
sudo dd if=./ubuntu.iso of=/dev/disk4 bs=1m

显示信息为:

复制代码
4699+1 records in
4699+1 records out
4927586304 bytes transferred in 300.753285 secs (16384148 bytes/sec) 
  1. 弹出U盘
bash 复制代码
sudo eject /dev/disk4
相关推荐
Jooolin30 分钟前
【Linux】虚拟机、服务器、双系统,谁才是 Ubuntu 的最佳方案?
linux·ubuntu·ai编程
K·Herbert6 小时前
最新CentOS 7 yum源失效的解决方案(2025年6月)
linux·运维·centos
别骂我h6 小时前
部署KVM虚拟化平台
linux·运维·服务器
繢鴻6 小时前
紧急救援!Ubuntu崩溃修复大赛
linux·服务器·ubuntu
hujun86101 天前
Ubuntu安装无线网卡
linux
Johny_Zhao1 天前
CentOS Stream 8 高可用 Kuboard 部署方案
linux·网络·python·网络安全·docker·信息安全·kubernetes·云计算·shell·yum源·系统运维·kuboard
卖猪肉的痴汉1 天前
1.1 Linux 编译FFmpeg 4.4.1
linux·ffmpeg
十五年专注C++开发1 天前
Qt .pro配置gcc相关命令(三):-W1、-L、-rpath和-rpath-link
linux·运维·c++·qt·cmake·跨平台编译
qq_628515761 天前
Centos与RockLinux设置静态ip
linux·运维·centos
程序猿小D1 天前
第27节 Node.js Buffer
linux·开发语言·vscode·node.js·c#·编辑器·vim