Recovering deleted files from a Tar file

guferr

Distinguished
Nov 15, 2009
44
5
18,535
Hi everybody.

My archive manager suddenly deleted 4 root directories from a Tar file when i tried to delete some files that were in one of this directories (i really don't know how that happened). Is there anyway to recover those directories and the files that were on them?

The partition where the Tar file was wasn't touched since then, but i can't find the data from the files. The Tar file probably changed the headers of the files, so i can't find them using a software like Disk Digger, that analyses the disk sector-by-sector looking for file signatures.

Ps.: It was not compressed, it was just a regular .tar file.

Thanks!
 
Solution
Open up terminal and log in as root user, then try this:

find / -name <insert part of the name of your file here>

eg.

find / -name *.tar

(this will output all files in the file system ending in .tar)

If that generates no results (it may take a few minutes depending on size of your file system) then more than likely the files have been deleted.

Carobthomp

Honorable
Nov 12, 2013
204
0
10,760
Open up terminal and log in as root user, then try this:

find / -name <insert part of the name of your file here>

eg.

find / -name *.tar

(this will output all files in the file system ending in .tar)

If that generates no results (it may take a few minutes depending on size of your file system) then more than likely the files have been deleted.
 
Solution