Wednesday, June 12, 2019

12.04 - How to recover files deleted in encrypted home before a failed upgrade?

I'm going to give you real breakdown of events to clarify what has happened.



I’ve just rebuilt a rig I haven’t used for almost a year, it's running Windows 7 and Ubuntu 10.04. I couldn’t remember the login for Windows so was recovering files in Ubuntu and preparing to wipe Windows 7, I recovered some files and deleted some files.



I got a popup saying Ubuntu is ancient and needs upgrading as its not supported so I clicked upgrade via update manager, it did its thing and started to download the files.
This was unsuccessful at the install stage, it was stuck for hours so it got shut down at 3am. The next day, I booted up and it says on start screen Ubuntu 11.10 with the little dots but doesn’t boot, I tried previous Linux versions in Grub with same result.




To make matters worse I remember my Windows login and boot it up to be confronted with a temporary profile as some of the files removed/deleted are needed for the profile.



I'm using a live usb of 12.04 lts and have used ecryptfs-recover-private and have access to the encrypted home folder from 10.04 but I cannot find these deleted files, I've checked in ~/.local/share/trash and the three folders are empty.
so I may have emptied the trash bin, I cannot remember,but I know there are still techniques to recover the files.



So after all this, I would like to recover my install of Ubuntu 10.04 or recover the lost data, copy and save all the important files from /home and do a fresh install of 12.04.



Sorry that was so long :D

No comments:

Post a Comment

11.10 - Can't boot from USB after installing Ubuntu

I bought a Samsung series 5 notebook and a very strange thing happened: I installed Ubuntu 11.10 from a usb pen drive but when I restarted (...