I need to recover my home directory

Using TestDisk to undelete files
Forum rules
When asking for technical support:
- Search for posts on the same topic before posting a new question.
- Give clear, specific information in the title of your post.
- Include as many details as you can, MOST POSTS WILL GET ONLY ONE OR TWO ANSWERS.
- Post a follow up with a "Thank you" or "This worked!"
- When you learn something, use that knowledge to HELP ANOTHER USER LATER.
Before posting, please read https://www.cgsecurity.org/testdisk.pdf
Locked
Message
Author
winash12
Posts: 4
Joined: 04 Aug 2016, 08:40

I need to recover my home directory

#1 Post by winash12 »

I have a Dell desktop 3800. I have never installed Windows on this. It is a pure Ubuntu system Linux system. I had 14.04 Ubuntu on it last week. I did not back up my /home directory before reinstalling Ubuntu 16.04 directory. Would testdisk help me recover my home directory ?

User avatar
cgrenier
Site Admin
Posts: 5432
Joined: 18 Feb 2012, 15:08
Location: Le Perreux Sur Marne, France
Contact:

Re: I need to recover my home directory

#2 Post by cgrenier »

You can use PhotoRec to recover your data.
Note that if your home directory is encrypted, you will need your private key and the passphrase. (Read Ubuntu documentation for more details)

winash12
Posts: 4
Joined: 04 Aug 2016, 08:40

Re: I need to recover my home directory

#3 Post by winash12 »

Thanks for your response. It(photorec) is doing the recovery and I am not sure how many files will be recovered.

Is it dangerous to shut it down while it is doing it ?

winash12
Posts: 4
Joined: 04 Aug 2016, 08:40

Re: I need to recover my home directory

#4 Post by winash12 »

I was able to recover the home directory but the not the files I wanted.

When I actually zoom in to the directory I want it actually starts the whole process again. What I meant by this was - I went under/home/ashwin/xyz for the specific files I want. It is basically doing the whole thing over again.

By the way it is wonderful enough to stop/start where I last left it. For that I am grateful because Ubuntu freezes and I need to restart the machine.

winash12
Posts: 4
Joined: 04 Aug 2016, 08:40

Re: I need to recover my home directory

#5 Post by winash12 »

When I do
grep -R =I pattern I do not get the files I want. Does this mean I have lost it permanently or is there a possibility that it is still out there?

Locked