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

jonahgirl

macrumors newbie
Original poster
Feb 24, 2009
4
0
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.
 
the man pages say this
To copy /dev/sda (damaged \device\harddisk0) to another drive /dev/sdb (empty \device\harddisk1)

# ddrescue /dev/sda /dev/sdb

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
 
Sounds like the drive is experiencing hardware failure.

However try
- disk utility
- disk warrior
 
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
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
 
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
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.