enter image description here

It says no such file or directory.where did I go wrong?

  • In the past; I'm pretty sure all that I needed to do was change the filename extension, via mv, for instance. – voices Feb 17 '16 at 8:48

Your path, by the looks of it, ought to be
~/Downloads/ or ~/Desktop/ rather than

~/ is already the shortcut to /Users/Yourname/

You can also use the file command to check that the file you are converting already exists. Copy the path and paste it after file at the shell. You can also shorten the directories, by changing to the folder

cd ~/Downloads
mv file ~/Desktop
cd ~/Desktop
ls ubuntu*iso
hdiutil convert -o ubuntu.img -format UDRW ubuntu*iso

The ls command makes sure there is only one file starting with ubuntu and ending in iso on your desktop - you can put the whole file path instead of using the * that I used for brevity if you have more ISO files that match on the desktop.

  • 2
    I have to disagree with "~/ is already the shortcut to /Volumes/Macintosh HD/Users/Yourname/" since in this reference ~ is actually the value of $HOME which under OS X is typically e.g. /Users/username not /Volumes/Macintosh HD/Users/username. – user3439894 Feb 14 '16 at 16:57
  • 1
    semantics… it still arrives at that point, bootdrive/users/me/ – Tetsujin Feb 14 '16 at 17:33

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .