Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

what's the best way to get an ISO "burned" to a USB stick on a Mac? Restoring using Disk Utility does not work.

The ISO is ubuntu mini.iso. It is the minimalist install ISO for installing ubuntu. It needs to be bootable on a PC. I am trying to install ubuntu on a PC that has no CD-ROM. The only other computer I have around is a macbook.

share|improve this question
1  
Can you please be a bit more descriptive in what you are trying to accomplish. I think I have an idea of what the problem is but your question is vague –  ricbax Oct 31 '09 at 19:18
    
I'm trying to "burn" a bootable ISO of the ubuntu mini.iso onto a USB stick for use on a PC. The PC in question does not have a CD-ROM. I don't have any other linux or win machines around. –  Jason Marcell Oct 31 '09 at 19:28
add comment

7 Answers 7

Directly from the Ubuntu download page (my formatting):

  1. Download the desired file
  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 (e.g., hdiutil convert -format UDRW -o ~/path/to/target.img ~/path/to/ubuntu.iso)
  4. Note: OS X tends to put the .dmg ending on the output file automatically. Remove the .dmg extension as necessary, mv ~/path/to/target.img{.dmg,}
  5. Run diskutil list to get the current list of devices
  6. Insert your flash media
  7. Run diskutil list again and determine the device node assigned to your flash media (e.g. /dev/disk2)
  8. Run diskutil unmountDisk /dev/diskN (replace N with the disk number from the last command; in the previous example, N would be 2)
  9. Execute sudo dd if=/path/to/downloaded.img of=/dev/rdiskN bs=1m (replace /path/to/downloaded.img with the path where the image file is located; for example, ./ubuntu.img or ./ubuntu.dmg).
  10. 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.
  11. Run diskutil eject /dev/diskN and remove your flash media when the command completes
  12. Restart your Mac and hold down Alt while the Mac is restarting to choose the USB stick

Note: On newer Macs you might have to install an EFI boot manager to boot from USB.

share|improve this answer
9  
Maybe people were not "blindly" up voting this. Maybe ... like me, they googled how to burn an ISO to a USB drive on MacOS, ya know THE TITLE OF THIS QUESTION ... found this ... and it worked. Geez. +1 –  Justin Jenkins Jan 12 '12 at 7:36
7  
I'm not sure what all the uproar is about. The answer is 100% on topic, works perfectly, and the resulting drive isn't any more platform-specific than the ISO you burned to it. I've used these instructions to burn OS installer ISO's (Ubuntu, WinXP, etc.) to a flash drive and the result worked perfectly on a PC. –  spaaarky21 Feb 15 '12 at 3:08
    
Nope, I just failed to boot on a PC with the USB key created this method on my MacMini. The problem seems to be it lacks the ability to be booted on by the BIOS. –  Nicocube Apr 16 '12 at 16:11
    
If you want to see progress, ensure you have pv installed, and run pv /path/to/downloaded.img | sudo dd of=/dev/rdiskN bs=1m instead of sudo dd if=/path/to/downloaded.img of=/dev/rdiskN bs=1m. –  jvatic May 19 at 18:46
add comment

I had a very similar problem that none of these answered.

It's worth checking out UNetbootin. It will create a bootable USB disk on a Mac for a PC.

share|improve this answer
    
Once done, unetbootin said that I had to boot it on a PC and that it won't boot on a Mac. Trying the command line suggestion now. –  balupton Mar 27 '13 at 14:17
    
For a Chrome Pixel, the UNetbootin method worked, command line didn't. –  mjibson May 24 '13 at 21:49
    
It is to my understanding that UNetbootin doesn't work on Mountain Lion. –  2rs2ts May 30 '13 at 3:09
add comment
  1. Ensure the USB Key is properly formatted (Master Boot Record, FAT32 - if necessary NTFS using NTFS-3G)
  2. You can try using the Restore feature in Disk Utility by clicking on the USB key's volume, then clicking on the Restore tab and choosing the ISO to restore onto it.
  3. If step 2 fails, you can do this manually by running ditto or cp -r; eg. ditto /Volumes/NAME_OF_MOUNTED_ISO /Volumes/NAME_OF_USB_KEY or cp -r /Volumes/NAME_OF_MOUNTED_ISO /Volumes/NAME_OF_USB_KEY to manually copy all the files (including hidden ones)
share|improve this answer
    
@Chealion thanks for your response. I was actually trying to get an Ubuntu ISO onto my USB, so I eventually just used the Ubuntu install disc to run it in Live Mode on my Macbook. From there I had access to the USB-Creator utility. –  Jason Marcell Nov 24 '09 at 14:19
1  
Also @Chealion I won't have time to verify your answer as correct anytime soon as I won't be near my Mac for a while (but I do know that Disk Utility was not working for me) If someone else verify's and upvotes, I'll mark as correct. –  Jason Marcell Nov 24 '09 at 14:19
add comment

I've user SuperDuper for this task before. It does the job and not much else. Like a good program should :-) The full version is not free ($30) but you get what you need for free:

You can download SuperDuper! v2.6.2 right now and back up and clone your drives for free— forever!

share|improve this answer
    
Thanks. I own SuperDuper. I'll give that a try. –  Jason Marcell Dec 3 '09 at 14:08
    
Thanks too. Great software. –  Laurent Etiemble Dec 17 '09 at 8:40
4  
Super Duper! doesn't support partitions that aren't formatted as HFS, so it's useless here. –  rspeed Apr 28 '11 at 20:31
add comment

The way to do this using DiskUtility is to first format the drive using Diskutility and then copy over the files from the mounted iso to the newly formated drive using cp -R. Ex: cp -R /Volumes/mounted_iso/* /Volumes/formated_drive/

When formatting be sure to pick the ntfs file system and make the disk bootable by picking the correct option from the Options menu in the erase tab.

share|improve this answer
add comment

You do need the boot sectors, copying like this will work with some apps but not with a Windows ISO essential files cannot be copied, the image needs converting. ISO and IMG are different animals.

share|improve this answer
add comment

There is no need to convert the ISO to an IMG. I wasn't willing to convert an image first. This has easier steps, outlined below.

Start by listing the current disks and volumes:

diskutil list

Now unmount the current volume for the disk you are about to overwrite. (X = Drive number, in my case was 1):

diskutil unmountDisk /dev/diskX

Now dd the iso directly to the usb:

sudo dd if=/pathto/mini.iso of=/dev/disk1 bs=1m

Done!

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.