I mean docs, images, files with gibberish characters in them, etc. Not system files.

I had an SSD which had some documents on. Without going into too much confusing detail, I ended up merging some partitions on the drive. When I rebooted my documetns were gon. So I ran an undeleter and recovered what I could onto a different drive. Many of the files I recovered "cannot be read" by the various apps that should be able to open them; psd, doc, docx, all the usual ones.

I'm left with over 300k files (a mixture of office docs, images and software files). Some of these can be opened and some cannot. I'm not loving the idea of going through each one individually to see if it will open, so is there a software choice?

I used a program called Bad Peggy, which identified a lot of image files that were corrupted, but is there a similar app for other types of files?


  • 1
    I guess you need to make a more or less complete list of file types which you subsummized under "all the usual ones", find out how many of them you have, and look for a solution for each of them individually. Hopefully you learnt from the incident that it is a good idea to make regular backups ;-)
    – Doc Brown
    Commented Feb 6, 2021 at 16:30
  • Cheers, Doc. As it happens, I do have boackups, I just don't like "throwing anything out", LOL. Commented Feb 9, 2021 at 16:46

1 Answer 1


MS office and Open/Libre Office documents are zip files, so you can use the command-line version of unzip to test their integrity. (unless they are from a really old ms-office version)

For the pictures something like image magick or fly can possibly probably do the same thing.

  • 1
    That's in idea! I'll give it a try, thanks. Commented Feb 9, 2021 at 16:47

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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