1. Use Hdiutil to transfer ISO to DMG
#路径
Hdiutil Convert-format udrw-o ubuntukylin-15.04-desktop-amd64.img ubuntukylin-15.04-desktop-amd64.iso
This time we got a. DMG hard drive image file.
Now we insert the USB drive with Df-h to view the USB flash drive.
wangsmacbook:downloads supermap$ df -hfilesystem size used avail capacity iused ifree %iused Mounted on/dev/disk1 465Gi 439Gi 26gi 95% 115139240 6698358 95% /devfs 191Ki 191Ki 0Bi 100% 662 0 100% /devmap -hosts 0Bi 0Bi 0Bi 100% 0 0 100% /netmap auto_home 0bi 0bi 0bi 100% 0 0 100% /home/ dev/disk3s2 9.7gi 2.6gi 7.0gi 28% 690349 1847111 27% /Volumes/ESPTools/dev/disk2s1 15Gi 1.0Mi 15Gi 1% 0 0 100% /volumes/untitled
2. Unmount USB Stick photographed image
Diskutil Unmountdisk/dev/disk2
This place directly with disk tool, uninstall also can, but note is uninstall do not exit or pop-up and so on. Do not do this, the back of the DD in the time will appear without permission, the disk is being used a class of hints.
And now I'll cuff photographed like.
sudo dd if=ubuntukylin-15.04-desktop-amd64.img.dmg of=/dev/disk2 bs=1m
This process is a bit slow, and there is no progress hint, you need to wait patiently. After the end, you will be prompted automatically, select "Eject".
This disk is not recognized because the format of the USB flash drive is incompatible with the Mac. Don't worry, pull out. Just the next time if you redo the startup disk, you need to format it again.
Now you can set the BIOS to the machine to boot, insert a USB flash drive, follow the CD to start the same operation is OK.
Make Ubuntu startup USB drive under Mac