Post by Pepps on Dec 7, 2014 21:34:38 GMT -5
First of all this is a disclaimer. I myself do not own an apple computer so this guide may not be accurate. However post in the comments if you know a better method I will update the guide accordingly.
It is encouraged Mac users to install a linux by burning a CD. But if you prefer to use a USB stick, please follow the instructions below.
This procedure requires that you create an .img file from the .iso file you download. It will also change the filesystem that is on the USB stick to make it bootable, so backup all data before continuing.
1. Download your preferred distribution.
2. Open the Terminal (in /Applications/Utilities/ or query Terminal in Spotlight).
3. Convert the .iso file to .img using the convert option of hdiutil. Keep in mind OS X tends to put the .dmg ending on the output file automatically.
hdiutil convert -format UDRW -o ~/path/to/target.img ~/path/to/ubuntu.iso
4. Run the next command to get the current list of devices
diskutil list
5. Insert your USB stick
6. Run this script again and determine the device node assigned to your flash media (e.g. /dev/disk2).
diskutil list
7. Now Run (replace X with the device node)
diskutil unmountDisk /dev/diskX
8. Execute dd
sudo dd if=/path/to/downloaded.img of=/dev/rdiskX bs=1m
(replace /path/to/downloaded.img with the path where the image file is located; for example, ./linux.img or ./linux.dmg).
Using /dev/rdisk instead of /dev/disk may be faster
If you see the error dd: Invalid number '1m', you are using GNU dd. Use the same command but replace bs=1m with bs=1M
If you see the error dd: /dev/diskN: Resource busy, make sure the disk is not in use. Start the 'Disk Utility.app' and unmount (don't eject) the drive
9. Run and remove your flash media when the command completes.
diskutil eject /dev/diskN
10. Restart your Mac and press alt/option key while the Mac is restarting to choose the USB stick.