0

I have 2 drives that were on a mirrored RAID. The server crashed (failed array) and there are no backups. The client was setup with Carbonite, but failed to renew their plan, which expired this past July. Now they're stuck with a down server and no backups.

I pulled the drives, both of which appear when I connect them individually to my computer using a SATA to USB adapter.

Both drives obviously have issues, but I've been able to recover most (almost all) of the files off of one of the drives.

The recovery destination is a NAS in my office.

Now, I would like to attempt a recovery from the second drive.

I think it makes sense to ONLY overwrite the files on the destination NAS if the source (2nd hard drive) file size is bigger. My theory is that if files were corrupted on the first drive but not corrupted on the 2nd drive, they would be smaller (and vice-versa for good files on the 1st drive that are bad on the 2nd).

Is this a stupid theory? Should I just stop acting like an idiot and create 2 separate directories for "disk 1" and "disk 2" and let the client sort it out?

If my idea is sound, how would I go about this using rsync? I know how to use rsync in general, and I know how to use rsync if the file sizes are different or if the file timestamps are different, but I don't know how to do a conditional copy if (and only if) the source is bigger than the destination.

3
  • Honestly, I'd stop messing around and just send the drive into a professional data recovery firm.
    – EEAA
    Sep 9, 2015 at 21:43
  • The issue is knowing what's valid in disk 1 vs disk 2. Unless these are log files, simply saying the bigger file is better isn't necessarily the right choice. I'm fairly certain that rsync does not have an option for "keep the bigger file".
    – DerfK
    Sep 9, 2015 at 21:48
  • Thanks for this. DerfK - That makes sense. EEAA - Great advice (seriously). Unfortunately, this is a nonprofit client who is in a spending freeze who are already late in paying me on a previous invoice. I'm going to keep the drives around "just in case" but for now, I'm going to work on saving them money since it looks like almost all of the files & folders are intact. I only had a few files that "failed" to transfer over.
    – David W
    Sep 9, 2015 at 22:01

2 Answers 2

0

I think it makes sense to ONLY overwrite the files on the destination NAS if the source (2nd hard drive) file size is bigger.

File size would typically be the same; the filesystem tracks file size and corruption won't care about file length boundaries.

Should I just stop acting like an idiot and create 2 separate directories for "disk 1" and "disk 2" and let the client sort it out?

Best to leave data recovery to the professionals if you're not quite sure what you're doing. No article you read online or answer you'll get here will give you the background and experience needed to do a full and proper recovery. If the data is critical for your customer they need to pay up and get it professionally taken care of.

-1

RAID1 is a mirror so put the drive that failed aside in a safe cool place and only copy data off the disk that didn't fail. Data should be good - unless both disks failed.

In the event you find you're missing anything then I'd take both drives in for data recovery which will cost$

1
  • Both disks are bad, but I've been able to recover almost all of the data off (I'm not attempting to recover program or system files, just the data from the shared folders).
    – David W
    Sep 9, 2015 at 21:57

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .