Overwritten Ext4 part with Windows Installation

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
Post Reply
Posts: 2
Joined: 27 Jul 2016, 14:06

Overwritten Ext4 part with Windows Installation

#1 Post by Nux17 » 14 Jan 2017, 12:57

Good evening,

I just 'misclicked' and erased my main ext4 'home' partition when reinstalling Windows.

It seems like 20% of the disk space has been used, and so the file system is now corrupted.
I tried to put it back to Ext4 but it just didn't work. Testdisk says the file system is corrupted, even if it can restore it.
How can I rebuilt the meta back? I just need to access the remaining files, and I guess some superblocks might still be there.

Thank you.

EDIT: Seems it's a old partition that moved through several disks, I can't find the backup superblocks back.
The partition has been converted to NTFS with a clean Windows install and back to Ext4 for recovery but it didn't work. I'm pretty sure that a big part of the partition is clean as it was, but I can't find a way to get a superblock and recover the dir structure with available files remaining.

Sponsored links

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

Re: Overwritten Ext4 part with Windows Installation

#2 Post by cgrenier » 15 Jan 2017, 08:50

Try TestDisk, Advanced, Superblock.
If the location of the partition is correct, it should identify backup superblock and you will be able to use fsck.ext4 to repair the filesystem.

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests