I had a dual setup with Windows and Tumbleweed. I tried to apply a Windows update that required some partitioning, but I used an automated script by Microsoft and it wiped out my Suse partition, which is tragic because I had it already configured top notch and had some important files there, including a collection of downloaded classic Linux pictures from Linux olden days, my own openSUSE screenshots with my custom themes, and some txts where I assembled all my favorite Linux software for everything, including links and reviews, as well as a collection of txts about how to setup openSUSE from the beginning, including just about every aspect, including cleanup tutorials, things to after installing and such things, also some opinions on how Ubuntu has decayed lately.
Anyway,. I want to recover those files, and I simply canât find how. I tried to recover the lost btrfs partition with testdisk, but it only restored the former partition table, which I doubt is the exact one since I think Windows recovery had grown by a few MB with the script, so in order to be able to rescue something, I deleted the two win recovery partitions that were immediately before and after my SUSE partition.
Now with testdisk, I could restore the partition table, supposedly, but I donât think it recovered the exact whereabouts, since I had a swap and the main btrfs, and testdisk only listed a deleted âextendedâ partition, but said âthis partition canât be recovered!â.
Yet I know the data can be recovered because right now Iâm using photorec to rescue all those files non-destructrively to my Windows partition, which is independent from the Linux space in question, and apparently it is rescuing a whole load of them with the contents intact, but they are so many, and they are being recovered without the folder structure, thus making it impossible to browse without adding overkill effort in renaming, etc.
So now that I know the files are intact, Iâd like to know if there is a way to recover the original partition, with its original folder structure, and the original filenames in a non-destructive manner. I tried to dd the image of what was recovered at first from those partitions but it didnât mount, copied the dd to VirtualBox but I couldnât produce any of its contents .
Any suggestions?