Recover drive all partitions deleted and overwritten

How to use TestDisk to recover lost partition
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
pwsx
Posts: 4
Joined: 04 Feb 2019, 15:01

Recover drive all partitions deleted and overwritten

#1 Post by pwsx »

Crucial_CT256M550SSD3 (MU01) 256 gb m2
lenovo t430 3820qm 16gb ram linux ubuntu gnome 16.04

Hello,
I do not have much experience, I did search and read through, I cannot come up with a situation close enough to mine to try without asking.

I mistakenly deleted a drive yesterday, reinstalled linux, and then resized the drive with gparted.

I then Realized I had done this to the wrong drive.

I believe it was previously an ext4 filesystem created with gparted. I used it to store files, and not as a bootable drive.



I ran testdisk on the drive, deeper search comes up with files that look like they belong to the new operating system, but nothing that is from what was deleted.

There is a long list of sectors that testdisk says cannot be recovered.

If you can help please do.
Thanks in advance

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

Re: Recover drive all partitions deleted and overwritten

#2 Post by cgrenier »

If testdisk doesn't find your old ext4 after analyse, quick search and deeper search, you can try PhotoRec on the whole disk.
Don't forget to select ext2/3/4

pwsx
Posts: 4
Joined: 04 Feb 2019, 15:01

Re: Recover drive all partitions deleted and overwritten

#3 Post by pwsx »

Thank you very much for your reply.

There is only one critical file that I am looking for, the rest I can live without.

The file is an .ods spreadsheet.

I am running photorec now and will reply with results.

Thanks again

pwsx
Posts: 4
Joined: 04 Feb 2019, 15:01

Re: Recover drive all partitions deleted and overwritten

#4 Post by pwsx »

Hello,
Because I am searching for a file that was a .ods, I looked through the following link:

https://www.cgsecurity.org/wiki/After_Using_PhotoRec

I don't know very much but I dont think grep works for ods sheets to begin with.

Is there a way to search for .ods file contents of a word or text strings within the recovery directory?

anything I would be running would be from a terminal in ubuntu 1604.

Thanks again

pwsx
Posts: 4
Joined: 04 Feb 2019, 15:01

Re: Recover drive all partitions deleted and overwritten

#5 Post by pwsx »

Update:

I was not able to locate or restore the lost files. I imaged the drive and did photorec on the image, but was not successful.

Locked