0

I'm still learning ubuntu. I'm attempting to pull some data from a HDD in Ubuntu 14.xx. Currently it says I have 8,011 hours left to pull ~150GB via USB. To speed this up, is there any way to set a timeout option with the copy function to allow it to skip corrupted files after a set length of time, forcing it to continue? Is there a better way of doing this?

  • Do you know that some files are corrupted? If so you could have a look here and try to restore some of your data – cstich Jun 2 '15 at 15:09
  • I was told the drive was corrupted and it will not appear in Windows computers. I'll definitely look at that thanks! – coinich Jun 2 '15 at 16:30
2

If you have a failing disk your priority is taking a raw disk image and getting that somewhere safe.

Before we get there, this is where I suggest that USB isn't a great idea. It's slow and not nearly raw enough for data-recovery programs to accurately gauge the issue. That's not to say that USB won't work (it might) but a real SATA connection will do you the world of good, as well as being faster.

GNU's ddrescue (from the gddrescue package) seems to be the best option to make the clone though that's probably subjective and subject to change in time.

From there, you have tools like testdisk, and photorec to untangle broken files and rescue anything that fell through the cracks (eg broken file headers) back to a live filesystem.


Note that data-recovery tools like ddrescue specifically skips over broken bits the first time around. It'll get as good a copy as it possibly can the first time around and iteratively go back for broken data. That sort of answers your "timeout" question in itself.

| improve this answer | |
  • I may do that instead, thanks! Unfortunately, there is no SATA connector on the drive, just a built in USB port. It was originally an external drive. – coinich Jun 2 '15 at 16:31
  • @coinich As you're a reputation 1 user: If this answer helped you, don't forget to click the grey at the left of this text, which means "yes, this answer is valid"! ;-) – Fabby Jun 3 '15 at 22:54

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.