2

First time using ddrescue. 3Tb drive was showing errors and going offline (in windows only) so I've booted from a stick into systemrescuecd and used

ddrescue -f /dev/sde /dev/sdb /mnt/rescue/mapfile

(the mapfile is on a 3rd drive).

I may have made a mistake here but wanted to get anything copying from the drive that I could ASAP. The target drive is the same make/ model/ size and the only possible one I could use at that moment.

I'm about 40% into the copy with no errors so far but it's hit the slow stage; a reasonable 2 days (with spikes into 100+ but I'm an optimist on that).

i/opos - 959,803MB
Rescued - 959,768MB
non tried - 2040 GB
non-trimmed - 7288kB
non-scraped, errsize, errors - all 0

I have a larger drive coming, hopefully tomorrow (6Tb).

Fully aware that this was risky but wanted to do something before it didn't ever turn back on. It's not making any noises, yet.

In hindsight I may have been better copying to an image (?)

My concern, having time to read more is whether this is likely to complete, or run out of space - I've seen recommendations of copying to a drive 50% larger.

I can see why there may be a small difference in sizes or the drive I'm copying to may have bad sectors itself etc, but not sure why it should be so much larger, if the mapfile is somewhere else, so thought I'd ask in case I've misunderstood something.

Would you

  1. Keep the ddrescue running whilst it's working to the other 3tb drive - I guess I can always take an image of the target drive for whatever's copied at least.

  2. Stop it to not wear out the source drive and create an new image on the new drive

  3. Do something more sensible and I'm an idiot and have misunderstood what I'm doing here.

  4. If it does run out of space at the end - what's the process? ddrescue the hopefully good drive to an image, get the last part off this source one and combine? Or am I screwed. I can live with some data loss.

Thanks hugely for any help, sorry for length, hope it's clear.


Backups- nope! This one stared failing whilst trying to backup from it, after that failed completely (several powercuts in a short space of time)

Edit: 2 more things I perhaps should mention

  1. This is a data drive, rather than boot
  2. For the short time I could see it in windows it showed the folder structure, so I'm hoping the partition information will copy ok. Although appreciate I may have some problems with that if the end size is too large (?)
2

If target is same or larger it will work. You can check with:

blockdev --getsize64 /dev/source /dev/target

If it's smaller it will run out of space, but whether that matters depends how many bytes missing / and what's actually there.

In hindsight I may have been better copying to an image (?)

Image files have downsides too. Plus it needs more space... you can copy a 3TB disk to another 3TB disk but not to an image file on that 3TB disk since a good chunk is lost to partitioning, filesystem metadata, ...

1) Keep the ddrescue running whilst it's working to the other 3tb drive

Yes, although the logfile/mapfile allows you to cancel out anytime and restart with different options. You mentioned it got stuck on a slow area, you can skip ahead or perhaps experiment with the --min-read-rate option. But as long as it's not stuck completely, it might be better to just keep it running for now.

4) If it does run out of space at the end - what's the process?

Depends on whatever is actually on the drive and how much is missing.

Sometimes it doesn't matter at all, for example LVM often has some unusable data at the end (depends on physical extent size and offset) and most filesystems care a lot more about the start of the drive rather than its end.

If there is a small chunk missing you could use dmsetup linear mapping to create a new device with additional space, without having to copy everything all over again. But most likely it's not a serious problem in the first place.

  • Really appreciate the quick, and clear, answer. As you can imagine I'm slightly stressed and that's amazingly reassuring to know I haven't made it worse. It's NTFS; photos, videos, music. Space at the end- it was pretty full, but I'll worry about all that later. If I get back some I'll be happy. Tempted to use another teminal to check the blockdev but think I'll just leave it alone. 21 hours in and I'm happy to keep that machine running it for a few days for the first try. Thanks for the extra commands. I'll start looking into those in preparation. Thanks again! – beardedfool Apr 13 '17 at 22:26
  • Quick follow up. The next part didn't go so well I cancelled out after: i/opos 2138GB Non tries 0B Rescued 9856౩2 MB Percent rescued 32.84% Non trimmed 0B Non scrapped 856444 MB Errdize 1169 Errors 371 Time since last read 6h WiIll let drive cool a bit and I've managed to clear a 4tb drive. Now copying the first copy to that to work on. New here and just reading through how it works (used to forums more). I'm better to accept your excellent answer and ask any other questions in new posts (after more research) than carry on here? – beardedfool Apr 14 '17 at 11:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.