1. 在终端下,将ISO镜像转换为DMG格式:
wwj-mac:~ wwj$ hdiutil convert -format UDRW -o ./0000.img Desktop/iso/Fedora-Server-DVD-x86_64-22.iso正在读取Driver Descriptor Map(DDM:0)…正在读取Fedora-22-x86_64 (Apple_ISO:1)…正在读取Apple(Apple_partition_map:2)…正在读取Fedora-22-x86_64 (Apple_ISO:3)…正在读取EFI(Apple_HFS:4)…正在读取EFI(Apple_HFS:5)….正在读取Fedora-22-x86_64 (Apple_ISO:6)…...............................................................................................................................................................................经过时间:11.437s速度:184.9M 字节/秒节省:0.0%created: /Users/wwj/0000.img.dmg2. 插入USB盘,然后在终端下,查找该盘的设备名:
wwj-mac:~ wwj$ diskutil list/dev/disk0 #: TYPE NAME SIZE IDENTIFIER 0: GUID_partition_scheme *121.3 GB disk0 1: EFI EFI 209.7 MB disk0s1 2: Apple_CoreStorage 120.5 GB disk0s2 3: Apple_Boot Recovery HD 650.0 MB disk0s3/dev/disk1 #: TYPE NAME SIZE IDENTIFIER 0: Apple_HFS Macintosh HD *120.1 GB disk1 Logical Volume on disk0s2 F620E004-804F-4287-BC59-77F5F483D349 Unencrypted/dev/disk2 #: TYPE NAME SIZE IDENTIFIER 0: *8.0 GB disk2
以上显示该盘的设备名是: /dev/disk2
3. 卸载USB盘(插入时已经自动挂载了),但是不要推出。在终端下:
wwj-mac:~ wwj$diskutil umountDisk /dev/disk2 Unmount of all volumes on disk1 was successful
4. 镜像上面生成的DMG内容到USB盘,在终端下:
wwj-mac:~ wwj$ pv ./0000.img.dmg | sudo dd of=/dev/rdisk2 bs=1m2.06GiB 0:08:32 [4.12MiB/s] [========================================>] 100%0+33828 records in0+33828 records out2216890368 bytes transferred in 512.927531 secs (4322034 bytes/sec)
5. 推出USB盘。
wwj-mac:~ wwj$ diskutil eject /dev/disk1
转载于:
http://borgstrom.ca/2010/10/14/os-x-bootable-usb.html