Terminal Help Needed

Discussion in 'Mac Apps and Mac App Store' started by jonahgirl, Feb 24, 2009.

  1. jonahgirl macrumors newbie

    Joined:
    Feb 24, 2009
    #1
    I have a powerbook hard drive with hardware issues. The drive mounts with no problem via an external usb connection to my MacBook Pro but I cannot navigate the drive without hanging the Finder. I want to use ddrescue to copy the drive contents to a drive image. My unix commands are basically non existent and I need help figuring out how to put the correct commands into the Terminal App.

    Here are the locations of each piece of the puzzle.
    ddrescue is located at the root of my MacBook Pro drive named ddrescue and the drive name is Macintosh HD
    the bad drive is Disk1s9
    The drive I am copying to is called Rescue

    The directions...best I could find were:
    Example 1: Rescue an ext2 partition in /dev/hda2 to /dev/hdb2
    ddrescue -r3 /dev/hda2 /dev/hdb2 logfile (running ddrescue)
    e2fsck -v -f /dev/hdb2 (checking resulting dmg.
    mount -t ext2 -o ro /dev/hdb2 /mnt (mounting resulting dmg.)

    Is this the correct info?

    sudo ddrescue -r3 /dev/disk1s9 /Volumes/Rescue/SaveKeith.dmg savekeith.log

    This all makes me nervous since I get the warning when I use sudo.
     
  2. boast macrumors 65816

    boast

    Joined:
    Nov 12, 2007
    Location:
    Phoenix
    #2
    the man pages say this
    but I don't think you can point to a .dmg, you would need to open the .dmg and point to its directory

    so just "ddrescue /Volumes/broken /Volumes/SaveKeith" should work
     
  3. Consultant macrumors G5

    Consultant

    Joined:
    Jun 27, 2007
    #3
    Sounds like the drive is experiencing hardware failure.

    However try
    - disk utility
    - disk warrior
     
  4. jonahgirl thread starter macrumors newbie

    Joined:
    Feb 24, 2009
    #4
    neither works..I've tried data rescue II as well....it just got worse. now the drive won't mount at all.
     
  5. jonahgirl thread starter macrumors newbie

    Joined:
    Feb 24, 2009
    #5
    so far the only manual I have found states what I listed about. The rest I have gleaned from othe posts.
    /Volumes/Rescue/SaveKeith would be the path for the other usb drive correct?

    Got this from another post but so far it doesn't seem to be doing anything
    su - root
    cd/
    ./ddrescue -v /dev/disk1 /Volumes/Rescue/SaveKeith savekeith.log

    Here is the info I found on running it on osx
    http://www.macosxhints.com/article.php?story=20050720092514388
     
  6. jonahgirl thread starter macrumors newbie

    Joined:
    Feb 24, 2009
    #6
    Update...got it working
    First, I had to enable the root user.
    Second I used the following: sudo /ddrescue -v /dev/disk1 /Volumes/Rescue/SaveKeith.dmg SaveKeith.log

    Not sure how long it will take but so far it has only had 4 errors
     

Share This Page