Getting the Linux Image
Convert iso to img
hdiutil convert -format UDRW -o ubuntu-16.04-server-amd64.img ubuntu-16.04-server-amd64.iso
man hdiutil for detail about the command
Create a bootable USB drive
- plug the USB drive into your computer and find out which mount point it is mounted to.
This will show the list of all drives mounted to your system right now. The description of which drive is a UBS drive should be quite clear.
– Unmount the disk before we proceed to write a bootable image on it.
# unmount it diskutil unmount /dev/disk2
- copy the disk image to your usb drive.
sudo dd if=ubuntu-16.04-server-amd64.img.dmg of=/dev/rdisk2 bs=1m
/dev/rdisk2 instead of
/dev/disk2, you are writing the raw data to the USB drive which will be several folds faster than writing through the buffered
Eject the USB drive
- After writing the image, a diaglog box will alert you that the disk is not readable. Simple eject the disk.
- Alternatively, at the command
diskutil eject /dev/disk2