Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Terminal Help Needed

Status
Not open for further replies.

imeldesign

IS-IT--Management
May 21, 2004
346
US
I have a powerbook hard drive with hardware issues. The drive mounts with no problem via an external usb connection to my MacBook Pro. I want to use ddrescue (not dd_rescue) 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 -v /dev/disk1s9 /Volumes/Rescue//SaveKeith.dmg savekeith.log

This all makes me nervous since I get the warning when I use sudo.

If anyone has experience compiling and using dd_rescue I will take that info as well. I did download dd_rescue but have not compiled it. I was able to get ddrescue already compiled.

thanks
 
Have you tried using Disk Warrior to fix the disk issues your having?

the systax should be

su - root
cd /
./ddrescue -v /dev/disk1s9 VolImage.dmg VolRescue.log

Mike

"Whenever I dwell for any length of time on my own shortcomings, they gradually begin to seem mild, harmless, rather engaging little things, not at all like the staring defects in other people's characters."
 
thanks....yes...it can't even make it through the program.
Data Rescue II manages only slightly better.
Thanks for the syntax. I am going to try in just a few minutes.
 
./ddrescue -v /dev/disk1s9 VolImage.dmg VolRescue.log

the second part doesn't give the Recue drive path. Should it be /Rescue/VolImage.dmg VolRescue.log
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top