In just a few moments on Manjaro, I accidentally deleted a very important directory full of files, instead of an empty directory I wanted to clear out.
Since my copy of Manjaro gives both “Delete” and “Move to Recycle bin” options, I had no such luck of going to Trash and recovering. For my finger-fumble chose “Delete”, which was the first option, and not “Move to recycle”. It happened instantaneously, boom, vanished.
Now I’ve spent the entire morning looking at tools like extundelete, and ext4magic- which claim to allow you to undelete files if you act FAST, and don’t use your PC at all.
Great.
So now I’m stuck with my PC paralyzed, can’t do anything on it until I can figure out how to rescue my deleted directory.
It seems the greatest problem I am facing, is the deleted directory was in the /home filesystem, which Manjaro won’t allow me to unmount. But the tools won’t work, with the filesystem mounted.
Everything, everything says you must boot to a Live USB first, then unmount the /home filesystem, then you can use the undelete commands.
Well lucky me, I have a Manjaro bootable USB.
Unfortunately, it doesn’t come with the undelete tools, extundelete, and ext4magic! And its impossible to install them, because the bootable USB is read-only.
Well isn’t that a Catch-22 on a Catch-22.
There is also talk of booting Manjaro into “Single User Mode” in order to permit you to unmount /home, which is impossible normally- it always says “Busy”. But the best I can get to is a GRUB> prompt, which allows no use of any tools whatsoever.
Can anyone help? This seems a simple thing, for someone who knows how to do it. The tools to undelete an accidentally deleted file are there, but how in the world do you execute them? And as I said I can’t use my computer at all until I figure out whether I can recover the lost directory.
Thanks much!