Terminal Problems

Discussion in 'Mac OS X Lion (10.7)' started by Spontida, Feb 23, 2012.

  1. Spontida macrumors regular

    Joined:
    Aug 7, 2011
    #1
    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!
     
  2. Spontida thread starter macrumors regular

    Joined:
    Aug 7, 2011
  3. itsmrjon macrumors regular

    Joined:
    Jun 11, 2011
    Location:
    Chicago
    #3
    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?
     
  4. Spontida thread starter macrumors regular

    Joined:
    Aug 7, 2011
    #4
    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.
     
  5. itsmrjon macrumors regular

    Joined:
    Jun 11, 2011
    Location:
    Chicago
    #5
    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).
     
  6. Spontida thread starter macrumors regular

    Joined:
    Aug 7, 2011
    #6
    Target location as in were it ISO is located?

    EDIT: Now it worked TY!!!!!!!!
     
  7. itsmrjon macrumors regular

    Joined:
    Jun 11, 2011
    Location:
    Chicago
    #7
    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.
     
  8. Mac-Michael macrumors regular

    Joined:
    Jan 13, 2010
  9. Spontida thread starter macrumors regular

    Joined:
    Aug 7, 2011
    #9
    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?
     
  10. itsmrjon macrumors regular

    Joined:
    Jun 11, 2011
    Location:
    Chicago
    #10
    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
     
  11. Spontida thread starter macrumors regular

    Joined:
    Aug 7, 2011
    #11
    Works but it says: dd: /dev/rdiskN: Operation not supported
     
  12. itsmrjon macrumors regular

    Joined:
    Jun 11, 2011
    Location:
    Chicago
    #12
    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?
     
  13. Spontida thread starter macrumors regular

    Joined:
    Aug 7, 2011
    #13
    http://www.ubuntu.com/download/ubuntu/download
     
  14. Spontida thread starter macrumors regular

    Joined:
    Aug 7, 2011
    #14
    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
     

Share This Page