Recover myisam database (MYD) after formatting drive from ext3 to ext4

torsrex

Honorable
Jul 11, 2012
5
0
10,510
Hey,
I was upgrading my drive from ext3 to ext4 (complete single partition, ext3 to ext4), but accidentally formatted the wrong one, where my webserver and mysql databases were stored.
After having made an image of the drive using dd, just in case, I was able to recover most of the files using photorec which is part of testdisk. Unfortunately it wasn't able to recover the myd files, where the data is stored. I tried looking up the signature for these files and manually adding them to photorec without any luck, since I couldn't find the signature patterns.
Is there anything I could do to try to recover these files? All help will be greatly appreciated!
 

torsrex

Honorable
Jul 11, 2012
5
0
10,510
@ss202sl No, I did the restore attempt to a separate drive. Isn't recuva only for windows and ntfs/fat based file systems? How does it differ from Photorec?
@Ijack If I could, I would've done that. I do keep backups, but somehow the backup disk was mounted at the same mount point as the main disk (I don't know how that happened), which means both the backups and the original data are gone.