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.

link|improve this question

20% accept rate
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 M Oct 31 '09 at 19:28
feedback

6 Answers

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 press Alt while the Mac is restarting to choose the USB stick
link|improve this answer
1  
These instructions are for creating a bootable USB key which works on Macs. The question was how to create one that works with PCs. – rspeed Apr 28 '11 at 20:32
1  
rspeed is correct. These instructions, while painstakingly detailed and thorough, and probably useful to a lot of people, do not answer the question. It's unfortunate that so many people blindly up-voted without realizing this. FWIW, I think I was trying to get this to work on a fit-PC. If anyone can verify that steps 1-11 work for a fit-PC (or any other PC for that matter), I'll accept this post. Otherwise, step 12 is wrong (based upon the question I asked) – Jason M Dec 17 '11 at 9:17
1  
I have a fit-PC that I've used as a server for a few years, and it also runs Ubuntu, so yes, it'll work there as well. – l0b0 Dec 18 '11 at 22:14
2  
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 at 7:36
3  
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 at 3:08
show 1 more comment
feedback

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.

link|improve this answer
feedback

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!

link|improve this answer
Thanks. I own SuperDuper. I'll give that a try. – Jason M Dec 3 '09 at 14:08
Thanks too. Great software. – Laurent Etiemble Dec 17 '09 at 8:40
2  
Super Duper! doesn't support partitions that aren't formatted as HFS, so it's useless here. – rspeed Apr 28 '11 at 20:31
feedback
  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)
link|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 M 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 M Nov 24 '09 at 14:19
feedback

Technically it's just a disk image. Format the USB drive, open the ISO and copy all the files over.

link|improve this answer
Well to be more specific, the iso is an ubuntu mini install iso. I want it to be bootable on a PC. Can I still just copy everything over manually like that? What more do I need to do? – Jason M Oct 31 '09 at 19:26
You can copy everything over and it should work just fine. The problem would be getting your computer to boot from it. Some computers allow a "Boot from USB" option others don't. – Josh K Nov 1 '09 at 3:36
5  
I am not positive but I do not believe you can just copy your files over. I believe you need some bootsectors. This was the case anyway when I made a Win XP usb install stick. – CT. Nov 11 '09 at 16:31
That may be a windows specific thing, I'm not sure. I've dumped a SLAX distro right onto a usb key and had no problems booting from it. – Josh K Nov 11 '09 at 22:46
It's not related to the OS. – Matthieu Cartier Dec 27 '10 at 12:32
feedback

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.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

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