LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices



Reply
 
Search this Thread
Old 09-26-2008, 09:31 PM   #1
peter3731
LQ Newbie
 
Registered: Oct 2007
Posts: 5

Rep: Reputation: 0
Recommend CLI software for copying data from dying external HDD?


I've got a USB external HDD (Cavalry) that's going bad, with many gigs of media stored on it. I just bought a (Seagate) replacement drive. I've partitioned, mkfs.ext3'd, & mounted the Seagate.

What is the safest/fastest/best way to move the data from the old drive to the new one? What happens is the old drive goes down mid-transfer? The OS is Fedora Core 5 (ancient as heck).

Any advice would be greatly appreciated.
 
Old 09-26-2008, 10:04 PM   #2
drchuck
Member
 
Registered: May 2007
Posts: 61

Rep: Reputation: 17
You want dd_rescue. It's just like dd, which you would use for cloning a drive, but with fault tolerance if you hit a bad sector. It's also good with scratched optical media.
 
Old 09-27-2008, 10:42 AM   #3
peter3731
LQ Newbie
 
Registered: Oct 2007
Posts: 5

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by drchuck View Post
You want dd_rescue. It's just like dd, which you would use for cloning a drive, but with fault tolerance if you hit a bad sector. It's also good with scratched optical media.
Thanks - I found both dd_rescue and the similar-named GNU project ddrescue. I flipped a coin and decided to try ddrescue. Thanks for the help - I'm not expecting much, but if I get anything off the old drive I'll be happy. Looks like this may take a while...

Hey, if you can deal with a follow-up question - are there repair utilities other than fsck that I should know about? I'm assuming that if I'm able to copy the old drive to the new one, I'll have to run fsck or an equivalent on the unmounted new drive - but I'm not very familiar at all with the repair process. Any pointers?
 
Old 09-27-2008, 12:42 PM   #4
drchuck
Member
 
Registered: May 2007
Posts: 61

Rep: Reputation: 17
When you create the partition on the new disk, you will need to use fdisk to set it to the right type (83 I think?). You may need to run e2fsck with the -f option to force a complete check. With e2fsck -j you can create a journal, effectively making it an ext3 filesystem. If there were bad blocks on your old drive, there may be some corrupted files after the transfer - don't know if there is an easy way to find them.
As for other tools, I've never had any luck recovering from major drive failure. So now I just try to back up the important stuff.
 
  


Reply

Tags
external, hdd, usb


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting 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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
I/O error while copying some data on to external HDD gary4gar Linux - Hardware 2 10-31-2007 04:50 AM
Saving CLI data in the CLI Tons of Fun Linux - General 4 04-03-2007 06:42 AM
Dead or dying HDD esteeven Linux - Hardware 4 11-11-2003 03:02 AM
How to back up data onto a external HDD in RHL ?? sudhir Linux - General 8 09-26-2003 06:46 AM


All times are GMT -5. The time now is 07:24 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration