LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Recover deleted directory in EXT3 (https://www.linuxquestions.org/questions/linux-general-1/recover-deleted-directory-in-ext3-892459/)

Snigger 07-19-2011 05:41 AM

Recover deleted directory in EXT3
 
Hi
I can recover deleted files using "debugfs" & "extundelete" by running:
Code:

sudo debugfs /dev/sda3
and find inode number of deleted file using "ls -d" command and then running:
Code:

sudo extundelete /dev/sda3 --restore-file <inode#>
but when my desired file was in a deleted folder I can't find my desired file inode number using debugfs.
How can I find inode number of files in a deleted directory?

smallpond 07-20-2011 09:01 AM

A directory is just a file which contains the names and inode numbers of its files. Undelete the directory to get the files that you want.


All times are GMT -5. The time now is 05:29 AM.