Using dd I'm getting a Resource Busy error

Discussion in 'OS X' started by JoshFink, Nov 10, 2007.

  1. JoshFink
    Expand Collapse
    macrumors regular

    Joined:
    Aug 3, 2007
    Location:
    Atlanta, GA
    #1
    Hello, I'm trying to restore an old Hard Drive image OS.dmg to a usb hard drive that I have.

    I'm using the command:

    dd if=/Users/Shared/OS.dmg of=/dev/disk5 bs=1m

    And I'm getting

    dd: /dev/disk5: Resource busy

    What would cause this error? I'm not sure why it's "busy"

    Thanks

    Josh

    PS.. I get the exact same thing when i try to do it in DiskUtility
     
  2. mikehardy
    Expand Collapse
    macrumors newbie

    Joined:
    Nov 10, 2007
    #2
    I just did this - what I did may work for you

    In order to overwrite all the information on the disk, you have to make sure the mac OS isn't using it first

    Open the DiskUtility.app, and on your USB hard drive, unmount any of it's partitions. Do not eject the USB hard drive.

    Right click on the hard drive in the DiskUtility and get it's Identifier from the Information tab.

    Now take your image, and the identifier, and put it all together with something like this, on the command line in terminal:
    dd if=<your image file> of=/dev/<disk identifier>

    That worked for me putting the diskboot.img bootable Linux image file onto a USB hard drive that had the identifier disk1 by doing dd if=/Users/mike/diskboot.img of=/dev/disk1

    good luck
     
  3. Ryan813
    Expand Collapse
    macrumors newbie

    Joined:
    Feb 8, 2008
  4. DrewKlassen
    Expand Collapse
    macrumors newbie

    Joined:
    Feb 8, 2015
  5. sbohonos
    Expand Collapse
    macrumors newbie

    Joined:
    Sep 3, 2015
    Location:
    Los Angeles
  6. Sarthak Varshney
    Expand Collapse
    macrumors newbie

    Sarthak Varshney

    Joined:
    Sep 27, 2015
    #6
    thank you so much!
    it helped!!
     
  7. sem49
    Expand Collapse
    macrumors newbie

    Joined:
    Nov 30, 2015
    #7
    Well done. This just did the trick for me as well!
     

Share This Page