LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 09-17-2010, 11:38 AM   #1
mventimi
LQ Newbie
 
Registered: Sep 2007
Posts: 3

Rep: Reputation: 0
Slow ddrescue recovery problem (slow reads? excessive retries?)


Hi,

I'm in the process of recovering data from a bad HDD using ddrescue. I've done this a few times, and I'm pretty comfortable with using ddrescue. However, things are moving very slowly with the HDD I'm working on right now. ddrescue seems to grab ~200MB off the disk very quickly (~5MB/s), then gets hung up on the next ~65MB, reading at 1-2KB/s. When I look at /var/log/messages, I get this every 10s:

Code:
Sep 17 10:28:23 localhost kernel: ata5.00: exception Emask 0x0 SAct 0x1 SErr 0x0 action 0x0
Sep 17 10:28:23 localhost kernel: ata5.00: irq_stat 0x00060002, device error via SDB FIS
Sep 17 10:28:23 localhost kernel: ata5.00: cmd 60/00:00:98:31:f4/01:00:0d:00:00/40 tag 0 cdb 0x0 data 131072 in
Sep 17 10:28:23 localhost kernel:          res 41/40:00:98:31:f4/95:00:0d:00:00/6d Emask 0x409 (media error) <F>
Sep 17 10:28:23 localhost kernel: ata5.00: configured for UDMA/100
Sep 17 10:28:23 localhost kernel: ata5: EH complete
Sep 17 10:28:23 localhost kernel: sd 4:0:0:0: [sdb] 488397168 512-byte hardware sectors (250059 MB)
Sep 17 10:28:23 localhost kernel: sd 4:0:0:0: [sdb] Write Protect is off
Sep 17 10:28:23 localhost kernel: sd 4:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
From looking at /sys/block/sdb/stat, the longest reads appear to take about 100s to complete.

I'd like to speed up the reads. I'm going to go back and retry the bad blocks later, anyway, but I wanted to grab as much as I can from the disk on the first pass. I'm worried that all of the read retrying is just further damaging the disk.

Does anyone have any ideas on how I can either decrease the number of read retries, or decrease the amount of time before the reads time out? These answers, or any other suggestions, would be appreciated.

Thanks!
 
Old 09-17-2010, 01:08 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Could use dd_rescue which unlike ddrescue can read back to front. Did you decipher these SCSI warnings beforehand to get an idea of what's up?
 
Old 09-17-2010, 01:25 PM   #3
mventimi
LQ Newbie
 
Registered: Sep 2007
Posts: 3

Original Poster
Rep: Reputation: 0
I decoded the SCSI errors, and they don't really have any useful information beyond indicating a pretty standard media error on the drive. This is what I'd expect on this drive.

I also tried dd_rescue, and it has the same problem with slow reads. I'm thinking that there are chunks of the disk that are damaged but still readable. The problem is that I actually get something back after a few retries, and the driver is happily doing the retries until it reads something. I'd like to be able to tell the disk driver not to retry, or to only retry for 1s, or something like that, so that I can grab as much good data as I can on the first pass.
 
Old 09-21-2010, 09:08 AM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
IIRC the docs should show the amount of retries can be configured in both tools.
 
Old 09-22-2010, 07:03 PM   #5
rob.rice
Senior Member
 
Registered: Apr 2004
Distribution: slack what ever
Posts: 1,076

Rep: Reputation: 205Reputation: 205Reputation: 205
the drive is heating up
with marginal electronics the hotter they get the worse they work
there is no software solution to this the only thing you can do is
run it for a few minuets at a time and let it cool or even stick it in the fridg
to buy more time or run your computer with the case open and a fan blowing on
the hard drive's electronics
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Slow ATAPI reads with 2.6.13 Skybolt Slackware 1 10-23-2005 04:56 AM
External Harddrive reads very slow RoaCh Of DisCor Slackware 20 06-29-2005 03:36 PM
Very slow disk reads? - hdparm Ada Linux - General 4 09-13-2004 10:48 PM
Tx excessive retries & Collisions iasion Linux - Networking 1 04-28-2004 07:30 PM
Nautilus slow-mo (Reads too much) Kujila Linux - Software 1 02-05-2004 02:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 04:34 PM.

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
Open Source Consulting | Domain Registration