Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Spontida

macrumors regular
Original poster
Aug 7, 2011
201
4
Hello, I am trying to convert a ISO Ubtunu file to a Image file following the instructions on how to make a bootable thumb drive. When I do the hdiutil convert -format UDRW -o ~/path/to/target.img ~/path/to/ubuntu.iso I get cannot execute binary file. Please help!
 
Hello, I am trying to convert a ISO Ubtunu file to a Image file following the instructions on how to make a bootable thumb drive. When I do the hdiutil convert -format UDRW -o ~/path/to/target.img ~/path/to/ubuntu.iso I get cannot execute binary file. Please help!

What do you mean you 'cannot execute binary file?'

Copy/paste your terminal output.

Also, are you correctly replacing your paths? Or did you use that command verbatim?
 
What do you mean you 'cannot execute binary file?'

Copy/paste your terminal output.

Also, are you correctly replacing your paths? Or did you use that command verbatim?
Last login: Thu Feb 23 19:14:39 on ttys000
184-214-172-2:~ Name$ /Users/Name/ubuntu-11.10-desktop-amd64\ copy.iso hdiutil convert -format UDRW -o ~/path/to/target.img ~/path/to/ubuntu.iso
-bash: /Users/Name/ubuntu-11.10-desktop-amd64 copy.iso: cannot execute binary file
184-214-172-2:~ Name'

*Name is the my really user account blocked.
 
Last login: Thu Feb 23 19:14:39 on ttys000
184-214-172-2:~ Name$ /Users/Name/ubuntu-11.10-desktop-amd64\ copy.iso hdiutil convert -format UDRW -o ~/path/to/target.img ~/path/to/ubuntu.iso
-bash: /Users/Name/ubuntu-11.10-desktop-amd64 copy.iso: cannot execute binary file
184-214-172-2:~ Name'

*Name is the my really user account blocked.

You didn't specify a path...

replace ~/path/to/ubuntu.iso with the path to your iso, and replace ~/path/to/target.img with your target location

so if that path you have specified up there is correct it would be something along the lines of:
Code:
hdiutil convert -format UDRW -o /Users/Name/ubuntu.img /Users/Name/ubuntu-11.10-desktop-amd64\ copy.iso

I'm not familiar with specifically what you are trying to do, but do you see what I mean? It should solve your problem (if there are no additional steps).
 
You didn't specify a path...

replace ~/path/to/ubuntu.iso with the path to your iso, and replace ~/path/to/target.img with your target location

so if that path you have specified up there is correct it would be something along the lines of:
Code:
hdiutil convert -format UDRW -o /Users/Name/ubuntu.img /Users/Name/ubuntu-11.10-desktop-amd64\ copy.iso

I'm not familiar with specifically what you are trying to do, but do you see what I mean? It should solve your problem (if there are no additional steps).

Target location as in were it ISO is located?

EDIT: Now it worked TY!!!!!!!!
 
Target location as in were it ISO is located?

EDIT: Now it worked TY!!!!!!!!

Welcome!

Just remember for future usage: when you see a path like that in instructions ,you have to substitute the correct paths on your system. You can not use the snippets verbatim as they appear in the instructions.
 
Welcome!

Just remember for future usage: when you see a path like that in instructions ,you have to substitute the correct paths on your system. You can not use the snippets verbatim as they appear in the instructions.

New Problem. I need to put this: 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).
If the img is on the User, Below Airdrop how would I put it?
 
New Problem. I need to put this: 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).
If the img is on the User, Below Airdrop how would I put it?

easiest way to do it is follow this procedure:

1. type 'sudo dd if=' (without quotes) into the terminal
2. drag your image file into the terminal window (you'll see the path typed in automatically)
3. type out the rest of the command

----------

Also, if you are installing ubuntu, i strongly recommend you familiarize yourself with how terminal works.

This would be a rather useful starting point http://code.google.com/edu/tools101/linux/basics.html
 
easiest way to do it is follow this procedure:

1. type 'sudo dd if=' (without quotes) into the terminal
2. drag your image file into the terminal window (you'll see the path typed in automatically)
3. type out the rest of the command

----------

Also, if you are installing ubuntu, i strongly recommend you familiarize yourself with how terminal works.

This would be a rather useful starting point http://code.google.com/edu/tools101/linux/basics.html
Works but it says: dd: /dev/rdiskN: Operation not supported
 
Works but it says: dd: /dev/rdiskN: Operation not supported

N has to be replaced with the disk you are using...

use 'diskutil list' to see your currently mounted disks.
you'll see a column of /dev/*** with numbers under it. Use that number

----------

Where are you getting these instructions?
 
New Problem

How to I copy a disk image to root?
Directions:Mount Syslinux partition- did this
Copy DOS disk image (e.g. AN-SD25.ima) to root
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.