Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Applications > Terminal Help Needed

Terminal Help Needed
Thread Tools
Fresh-Faced Recruit
Join Date: Dec 2005
Status: Offline
Reply With Quote
Feb 24, 2009, 08:44 AM
 
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.
     
Clinically Insane
Join Date: Mar 2001
Location: yes
Status: Offline
Reply With Quote
Feb 24, 2009, 09:31 AM
 
looks okay to me, although running with -r3 to set max retries to 3 sounds like a good idea as well.

You can also image your hard drive using hdiutil or Disk Utility, FWIW...
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 04:28 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2