Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I recently lost all my Windows data. I tried running Photorec and I was able to recover some 18 GB of data back. Photorec threw an error after recovering 18 GB stating "Segmentation Fault". Was it because my windows drive was hardly ever defragged? If so, what routines/precautions I can take to make sure if something like this happens again on Windows or Linux side, Photorec wont throw the "Segmentation Fault" error.(Of course one precaution being backing up data regularly :-) )

share|improve this question
up vote 2 down vote accepted

A Segmentation Fault is usually a programming error. There's nothing you can do about but always upgrade to the newest version and sending a bug report to the developer.

share|improve this answer

The segmentation fault is unrelated to the problem with the hard drive. It indicates something went wrong with the software you were using at the time, possibly photorec itself.


  • Use a newer version of photorec as it may have fixed that problem
  • Use testdisk, which is a tool from the same author as photorec and can do similar things, though it may be slightly harder to use.
  • Try photorec again; it may not happen the next time.
share|improve this answer

protected by fossfreedom Nov 6 '14 at 10:26

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).

Would you like to answer one of these unanswered questions instead?

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