Answer the question
In order to leave comments, you need to log in
How else can I recover a freshly deleted .tar.gz archive from Ext4?
I accidentally deleted the archiver I needed with ready-made configured virtual machines with FreeSwitch, asterisk, plus all sorts of self-written web muzzles for them.
So it's not a pity - I can set up the server again, but it's a pity for self-written webmords ((, and yet - for the future, the issue of restoring in Linux is important for me.
So, the command was executed on a non-encrypted regular Ext4 partition:
rm -rf ./arch.tar.gz
Archive size is about 6 gigs. After deletion, nothing was written to the folder.The only thing that could write data from above is the browser cache, through which I am currently sitting.I
tried:
testdisk when entering the folder: No file found, filesystem may be
damaged.photorec: does not find .tar.gz files at all, although they are there. Even if you explicitly specify the file extension with the -t switch.
extundelete : gives an error about memory alloc error, googling which leads to a bunch of pages with bug descriptions, some craftsmen even tried to edit, and there are latest bug reports from both 2014 and 2021, and all are the same. Apparently they won't fix it.
R-Studio for Windows: Finds, but the recovered file is not an archive. Apparently, the original archive was fragmented, and when deleting Ext4, information about the fragments was erased.
Of course, I do backups, but damn, why is everything so bad. In Windows, it has never happened that when you delete a file and try to restore it immediately, without overwriting it, the file was not restored. And here is a present for you.
Who will tell you what?
Or fuck off?
I forgot to add: There is only one partition on the disk - the root. I did not mount the /home folder separately.
The second winch if that is available.
Answer the question
In order to leave comments, you need to log in
The only thing that could write data from above is the browser cache, through which I am currently sitting.like you understand everything, but you do this
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question