LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 05-17-2018, 10:46 PM   #1
garydale
Member
 
Registered: Feb 2007
Posts: 142

Rep: Reputation: 23
ddrescue seems to get stuck


I'm trying to rescue a hard drive that seems flaky. Ddrescue goes along fine for while then seems to stop making progress. Moreover, it's not uninterruptible by ^C despite the message saying it can be. I can however interrupt it by pulling the USB cable. When I restart it, it goes along for a while then stops again. After 24 hours and multiple restarts, my image file is only 28G while the original device is 1T.

Below is output from ddrescue after it got stuck for many hours. I was out and when I came back, the screen hadn't changed. However after I pull the USB cable, some numbers do change. When

The drive seems to be being accessed continually even when ddrescue isn't reporting progress. Does anyone have any ideas on what is going on?


Code:
root@transponder:/home/garydale# ddrescue /dev/sdl ./.data/rescue.img ./.data/mapfile
GNU ddrescue 1.22
Press Ctrl-C to interrupt
Initial status (read from mapfile)
rescued: 2326 MB, tried: 196608 B, bad-sector: 0 B, bad areas: 0

     ipos:   29593 MB, non-trimmed:    5753 MB,  current rate:       0 B/s
     opos:   29593 MB, non-scraped:        0 B,  average rate:   1860 kB/s
non-tried:  970605 MB,  bad-sector:        0 B,    error rate:   3876 MB/s
  rescued:   23845 MB,   bad areas:        0,        run time:  3h 12m 45s
pct rescued:    2.38%, read errors:    87889,  remaining time:         n/a
                              time since last successful read:          1s
Copying non-tried blocks... Pass 5 (forwards) 
ddrescue: Input file disappeared: No such file or directory
root@transponder:/home/garydale# ddrescue /dev/sdl ./rescue.img ./mapfile
GNU ddrescue 1.22
Press Ctrl-C to interrupt
Initial status (read from mapfile)
rescued: 23845 MB, tried: 5753 MB, bad-sector: 0 B, bad areas: 0

     ipos:   29797 MB, non-trimmed:    5753 MB,  current rate:    131 kB/s
     opos:   29797 MB, non-scraped:        0 B,  average rate:   4865 kB/s
     ipos:   29819 MB, non-trimmed:    5753 MB,  current rate:       0 B/s
     opos:   29819 MB, non-scraped:        0 B,  average rate:    6737 B/s
non-tried:  970379 MB,  bad-sector:        0 B,    error rate:       0 B/s
  rescued:   24071 MB,   bad areas:        0,        run time:  9h 19m 26s
pct rescued:    2.40%, read errors:        1,  remaining time:  2d  8h  8m
                              time since last successful read:          0s
Copying non-tried blocks... Pass 5 (forwards)

Last edited by garydale; 05-17-2018 at 10:51 PM. Reason: added some details
 
Old 05-18-2018, 12:16 AM   #2
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874
I had an issue on an older atom laptop (CMOOV issue???). Using dd under ubuntu basically crashed on me (July-ish 2015). Using dd under debian worked just fine. Perhaps a place to start.
 
Old 05-18-2018, 01:33 AM   #3
descendant_command
Senior Member
 
Registered: Mar 2012
Posts: 1,876

Rep: Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643
Sounds like some badblocks or such giving extended iowaits ...
Just leave it running - that’s what ddrescue was designed to cope with.
Starting from the other end of the drive might help too, or skip the problematic sectors and come back to them later.
 
Old 05-18-2018, 03:19 AM   #4
garydale
Member
 
Registered: Feb 2007
Posts: 142

Original Poster
Rep: Reputation: 23
Quote:
Originally Posted by Shadow_7 View Post
I had an issue on an older atom laptop (CMOOV issue???). Using dd under ubuntu basically crashed on me (July-ish 2015). Using dd under debian worked just fine. Perhaps a place to start.
I'm actually running under Debian (Buster), not Ubuntu, on an AMD64 system. And dd is not the same as ddrescue.
 
Old 05-18-2018, 03:28 AM   #5
garydale
Member
 
Registered: Feb 2007
Posts: 142

Original Poster
Rep: Reputation: 23
Quote:
Originally Posted by descendant_command View Post
Sounds like some badblocks or such giving extended iowaits ...
Just leave it running - that’s what ddrescue was designed to cope with.
Starting from the other end of the drive might help too, or skip the problematic sectors and come back to them later.
I recently used ddrescue to copy similar sized disks with lots of bad blocks and it worked OK, copying 1T in less than a day. This seems to be something different. Ddrescue isn't even updating the run time.

Does ddrescue have any issues with USB drives (as opposed to SATA) that you know of? If the drive is failing, the last thing I need is for a program to pound it trying to read.

I just tried the reverse run and this happened:

Code:
root@transponder:/home/garydale# ddrescue -R /dev/sdl ./.data/rescue.img ./.data/mapfile
GNU ddrescue 1.22
Press Ctrl-C to interrupt
Initial status (read from mapfile)
rescued: 24088 MB, tried: 5754 MB, bad-sector: 0 B, bad areas: 0

     ipos:  999458 MB, non-trimmed:    6111 MB,  current rate:       0 B/s
     opos:  999458 MB, non-scraped:        0 B,  average rate:   1186 kB/s
non-tried:  969614 MB,  bad-sector:        0 B,    error rate:    357 MB/s
  rescued:   24478 MB,   bad areas:        0,        run time:      5m 27s
pct rescued:    2.44%, read errors:     5456,  remaining time: 12d 21h 24m
                              time since last successful read:          0s
Copying non-tried blocks... Pass 5 (backwards)
ddrescue: Input file disappeared: No such file or directory
This is the same thing I see when I unplug the USB cable to kill the job (when it wouldn't respond to ^C) but this failed on its own. /dev/sdl still shows up on an ls -l /dev/sd* and restarting the job worked.

Last edited by garydale; 05-18-2018 at 03:33 AM. Reason: new information
 
Old 05-18-2018, 03:34 AM   #6
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,120

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
If the device node is disappearing, you probably have hardware issues - maybe the port isn't up to the job. Do you have external power ?.
 
Old 05-18-2018, 03:36 AM   #7
descendant_command
Senior Member
 
Registered: Mar 2012
Posts: 1,876

Rep: Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643
Looks like it might be more serious trouble with that drive then.
If the drive won’t supply any data, not much ddrescue can do.
 
Old 05-18-2018, 10:28 AM   #8
garydale
Member
 
Registered: Feb 2007
Posts: 142

Original Poster
Rep: Reputation: 23
Quote:
Originally Posted by syg00 View Post
If the device node is disappearing, you probably have hardware issues - maybe the port isn't up to the job. Do you have external power ?.
Of course there are hardware issues. That's why I'm using ddrescue.

The external USB case is powered.

I'm working with the theory that the drive electronics are flaky. The computer I took the drive from would take 30 minutes or longer to boot. It wasn't always successful and when it did, it would be slow to respond.

To make matters worse, I couldn't get into the BIOS which prevented me from booting from a CD or USB stick. I put the drive in a USB case to try to recover the data on it, which led to the current problem.

I first tried to run smartctl -H on it, but that never returned a result so I figured better try to make an image of the drive ASAP.

------------

Wonderful - after a reboot, Linux rearranged the drive letters so the drive I was trying to recover switched with a working drive and overwrote the data I'd recovered. Back to square 1.

Last edited by garydale; 05-19-2018 at 11:01 AM.
 
  


Reply

Tags
ddrescue



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
ddrescue help jhilgeman Linux - Software 2 02-13-2014 06:55 PM
ddrescue , -i and -o flags should be together ? raven4d Linux - Software 2 01-21-2013 11:06 AM
ddrescue? serialportme Linux - Newbie 1 07-12-2012 12:50 AM
no support for locale: en_Us.itf8 Stuck found some post but still Stuck!! Suec7832 Linux - Newbie 1 08-30-2011 08:13 AM
ddrescue help on RAID5 DarkFlame Linux - Server 2 11-15-2009 11:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:03 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