Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I cant access the desktop because my harddrive is corrupted. Therefore I want to make a bootable USB stick so i can transfer all of my important files to my External HD. Problem is that Im stuck on Step 3 ---> .

Im not sure of what i should change this to:

hdiutil convert -format UDRW -o ~/path/to/target.img ~/path/to/ubuntu.iso

It says convert failed - No such file or directory. Obviously the problem is that i dont know the path to the USB, maybe you know how to find out?

Please help me. Thanks.


Ive downloaded the ubuntu desktop amd64+mac.

share|improve this question

Now, Mr. Nick, first of all why did you get a .RAR format download? Please go to to download the amd64+mac ISO. Then open a terminal and type

 hdiutil convert -format UDRW -o ~/Downloads/ubuntu-12.04.1-desktop-amd64+mac.img ~/Downloads/ubuntu-12.04.1-desktop-amd64+mac.iso

Then run diskutil to get the current list of devices, close it, plug in your USB, and run diskutil again. Note down the device node assigned to the USB (e.g./dev/disk2). Then unmount it: diskutil unmountDisk /dev/disk2 Then enter the command:

sudo dd if=~/Downloads/ubuntu-12.04.1-desktop-amd64+mac.img of=/dev/rdisk2 bs=1m

Then eject the USB using diskutil eject /dev/disk2, then remove the USB. Finally reboot and press alt/option key to boot from USB when it is restarting.

share|improve this answer

Im not sure of what i should change this to:

hdiutil convert -format UDRW -o ~/path/to/target.img ~/path/to/ubuntu.iso

If the directory where the ubuntu.iso was downloaded is called Downloads.

Then you would change it as follows :

hdiutil convert -format UDRW -o ~/Downloads/ubuntu.img ~/Downloads/ubuntu.iso    
share|improve this answer

Your Answer


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.