Using dd I'm getting a Resource Busy error

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

  1. 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. 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. macrumors newbie

    Joined:
    Feb 8, 2008
    #3
    That did the trick thanks :)
     
  4. macrumors newbie

    Joined:
    Feb 8, 2015
    #4
    Thank you.
     

Share This Page