0

This question already has an answer here:

I have Ubuntu 16.04 installed on my PC (on SSD-500GB). I did an update using sudo apt update and rebooted the system. But when I tried to log in again I got stuck in a login loop and got a black screen. I did everything possible to remove that error (even purged the nvidia drivers) but failed.

So without any backup of my data I tried reinstalling Ubuntu from USB. I didn't format or delete anything. Now I can log in, but I've lost all my data which was on the PC's SSD. Is there any way to recover the data? Any software I can use to do that? Any help will be much appreciated.

marked as duplicate by karel, N0rbert, Tom Brossman, Uri Herrera, Eric Carvalho Oct 29 '18 at 15:29

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • 1
    Next time, use the installer's "Try Ubuntu" environment to carefully back up your data to a safe media before installing or re-installing. – user535733 Oct 26 '18 at 4:37
0

If you want to attempt a data recovery, you should immediately stop using the system.

What you should do is boot from a live cd with your disks unmounted and run a data recovery tool. It will require you to plug in an external HDD of at least the same capacity as your drive. It will probably run for hours, and will generate thousands of garbage files which you will have to check by hand.

There are several similar questions (although they overwrote their data with a Windows installation, it is the same problem) that have data recovery tools recommendations in this question and and this one such as testdisk (which I've never used) but you may need to look for tools tailored for SSDs.

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