I have done a fuck up again (mkfs.fat on an ext4 partition)
while setting up my backup system (oh, the irony), I accidentally launched a mkfs.fat on my ext4 hard drive.
Of course, since i was setting up the backup system, I didn't have any backup.
I desperately ^C but it was too late and the filesystem was gone, so now i'm trying to recover the data.
Photorec of course can see everything, but with random file names. I'd be nice to be able to recover it with the correct file names, so that the files would actually have context (most are source codes and stuff referenced via file name).
I already made an image of the disk, and I'm working on that.
Using testdisk i can see partitions with the original partition name:
However, whatever partition i try to open gives me no files:
I also found online some info on how to recover the partition using backup superblocks, but all the offset i tried don't seem to work (doing the dry-run fsck gives me a superblock error).
At this point i have no idea what to do, besides using photorec (which i would like to not resort to).