Questions tagged [ddrescue]

`GNU ddrescue` is a data recovery tool for block oriented media.

GNU ddrescue is a data recovery tool for block oriented media. If necessary it tries to read the input (file, harddisk, cdrom , ...) several times in several passes to gather more and more data.

129 questions
33
votes
5 answers

How to ignore write errors while zeroing a disk?

Say you want to zero-out a failing hard disk. You want to overwrite as much as possible with zeros. What you don't want is: the process aborts on the first write-error. How to do that? AFAICS, plain dd only provides an option for ignoring read…
maxschlepzig
  • 56,316
  • 50
  • 205
  • 279
16
votes
5 answers

How can I find out which files are lost through a ddrescue recovery atempt?

I am in the process of salvaging data from a 1 TB failing drive (asked about it in Procedure to replace a hard disk?). I have done ddrescue from a system rescue USB with a resulting error size of 557568 B in 191 errors, probably all in /home (I…
David Sevilla
  • 303
  • 2
  • 9
11
votes
2 answers

Resetting MMC controller without physically removing the card?

I'm trying to rescue data from an SDHC card using ddrescue: while true ; do ddrescue -d /dev/mmcblk0p1 mmc.img mmc.log ; done The controller, I'm not sure if it's the one on the card or the one in my laptop, seems to return errors for all sectors…
pascal
  • 526
  • 1
  • 5
  • 8
11
votes
1 answer

Using ddrescue to shred only rescued portions of disk

Magnetic drive has failed. I used ddrescue to recover ~85% of it, with a map file, but the rest is borked and continuing to scrub it would take years. I can return it for a replacement. I'd like to shred my data first. When I try to write to it, it…
endolith
  • 305
  • 1
  • 3
  • 15
9
votes
2 answers

Is this ddrescue command doing anything?

In the course of trying to recover data from a failing hard drive, I am running the command ddrescue. The command has been running for 9 days, and I thought from the sound of disk activity that maybe it was doing something. The command line output…
Questioner
  • 1,150
  • 5
  • 21
  • 35
9
votes
1 answer

How to estimate loops/time for completion of GNU ddrescue (1.18.1) using current status?

Background/Context: I am currently running GNU ddrescue 1.18.1 to recover data from a USB that experienced a cable disconnect while I was writing a virtual disk image onto the disk2s1 partition. Initially I am recovering my second partition…
Tommie C.
  • 203
  • 3
  • 7
9
votes
2 answers

ddrescue extremely slow on USB hard drive

I'm recovering the HDD from my laptop that died (wouldn't boot up at all, Disk Utility reported that there were no problems, but wouldn't mount the disk). I've hooked up the HDD through the USB adapter. Running ddrescue like so: sudo ddrescue -v -n…
Mik
  • 93
  • 1
  • 1
  • 3
8
votes
2 answers

How can I merge two ddrescue images?

I have two ddrescue images created from contiguous recovery attempts of the same media. The two images are the same size but have complementary data: $ od part-one/ddrescue_image --skip-bytes 227966006774 --read-bytes 32 3242365232766 113056 016517…
ændrük
  • 238
  • 1
  • 9
8
votes
2 answers

ddrescue taking months, what options do I have?

I'm trying to rescue data from a failing external USB drive from a friend. The problem with the drive is that it cannot be read, not in windows, not in linux. But I do manage to run ddrescue on the drive and build an image of the drive for later…
Baz
  • 81
  • 1
  • 3
8
votes
1 answer

Faster disk recovery (ddrescue running slow)

I am learning the value of having good backups. I have a 500GB hard drive which is failing. I started running ddrescue /dev/sdb1 backup.img mapfile and it was going to take 40 to 70 DAYS, depending on which moment you looked at it. I read this…
rexroni
  • 1,398
  • 2
  • 13
  • 21
8
votes
3 answers

DDRescue taking months but no errors?

I'm having a hard time finding others with the same error, and I'm trying to figure out the best path forward. I have a hard drive that was unusably slow, and then stopped booting. The clonezilla clone failed, and I started a ddrescue, using the gnu…
KinaMan
  • 301
  • 1
  • 3
  • 6
7
votes
2 answers

Why is ddrescue slow when it could be faster on error free areas?

This question addresses the first pass of ddrescue on the device to be rescued. I had to rescue a 1.5TB hard disk. The command I used is: # ddrescue /dev/sdc1 my-part-img my-part-map When the rescue is started (with no optional parameters) on a…
babou
  • 826
  • 11
  • 19
6
votes
4 answers

bitwise-OR 2 binary files

I did 2 rescue attempts on a dying HDD a while back; I ran (GNU) ddrescue first, and then straight dd with manual seeking. I want to get the best of both images. Since any empty stretches in the files will just be 0's, bitwise-AND should be…
user371366
  • 241
  • 1
  • 6
6
votes
1 answer

Using ddrescue to retrieve data off a failing ntfs disk

I am attempting to save some user data of a disk that has failed in a Window 8 computer. I've removed the HDD that was unable to be read by the Windows 8 laptop, plugged into my OS X machine which can see the partitions but cannot mount them.…
uglycat
  • 63
  • 1
  • 1
  • 3
6
votes
2 answers

Which sector size shall I choose to run ddrescue with direct access on an Advanced Format drive?

I started the imaging of an AF/512e HDD by first running a following command: ddrescue -n /dev/sdb2 drive_c.img mapfile.log Upon its completion I made a backup of mapfile.log and decided to run the splitting phase with direct disk access using…
redhotborscht
  • 61
  • 1
  • 2
1
2 3
8 9