Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I'm trying to put Ubuntu on a USB hard drive so I can run the OS off it. I am going off the instructions on this site.

https://help.ubuntu.com/community/How%20to%20install%20Ubuntu%20on%20MacBook%20using%20USB%20Stick

Heres what i put into terminal at step 3:

hdiutil convert /Ti's MacBook Pro/Macintosh HD/ubuntu-13.04-desktop-amd64.iso -format UDRW -o /Ti's MacBook Pro/Macintosh HD/Macintosh HD/ubuntu-13.04-desktop-amd64.img

And then i tried this:

hdiutil convert /Ti's MacBook Pro/Macintosh HD/ubuntu-13.04-desktop-amd64.iso -format UDRW -o /Ti's MacBook Pro/Macintosh HD/Macintosh HD/.img

Which came out with this:

Usage:  hdiutil convert -format <format> -o <outfile> [options] <image>
hdiutil convert -help

In other news. Once, you said:

I think there are problems handling the spaces within your command. These must be escaped or otherwise the method will guess the path as several parameters. Put the paths in double quotes and try again like so: hdiutil convert "/Ti's MacBook Pro/Macintosh HD/ubuntu-13.04-desktop-amd64.iso" -format UDRW -o "/Ti's MacBook Pro/Macintosh HD/Macintosh HD/ubuntu-13.04-desktop-amd64.img". I am not experienced with MacOS but your path also looks quite odd. You may want to verify that it is correct. – onse 19 hours ago

I tried that and it didn't like it. You were right about the file path was wrong and after messing around with the command i ended up with this(on another mac):

Last login: Thu Aug 15 16:04:35 on console
PowerBook:~ jbarker$   hdiutil convert /Users/jbarker/Desktop/ubuntu-13.04-desktop-amd64.iso  -format UDRW -o .img
Reading Driver Descriptor Map (DDM : 0)…
Reading Ubuntu 13.04 amd64               (Apple_ISO : 1)…
Reading Apple (Apple_partition_map : 2)…
Reading Ubuntu 13.04 amd64               (Apple_ISO : 3)…
..............................................................................
Reading EFI (Apple_HFS : 4)…
..............................................................................
Reading Ubuntu 13.04 amd64               (Apple_ISO : 5)…
..............................................................................
Elapsed Time: 42.263s
Speed: 18.6Mbytes/sec
Savings: 0.0%
created: /Users/jbarker/.img.dmg
PowerBook:~ jbarker$ 

I then searched in '/Users/jbarker/.img.dmg' and then in spot light for the file and i couldn't find it. Now that's confusing.

Deviating from the guide a little, Would it perhaps be posible to just rename the .iso with an .img?

I also have a disk copy of Ubuntu 13.04, perhaps could i just burn it to a bootable USB hard drive instead?

Thanks for the help :-)

Ps, I'm not very good at terminal .

share|improve this question
    
I think there are problems handling the spaces within your command. These must be escaped or otherwise the method will guess the path as several parameters. Put the paths in double quotes and try again like so: hdiutil convert "/Ti's MacBook Pro/Macintosh HD/ubuntu-13.04-desktop-amd64.iso" -format UDRW -o "/Ti's MacBook Pro/Macintosh HD/Macintosh HD/ubuntu-13.04-desktop-amd64.img". I am not experienced with MacOS but your path also looks quite odd. You may want to verify that it is correct. –  onse Aug 21 '13 at 12:38

Your Answer

 
discard

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

Browse other questions tagged or ask your own question.