LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 07-19-2011, 05:41 AM   #1
Snigger
Member
 
Registered: Jul 2007
Distribution: Ubuntu Lucid Lynx
Posts: 55

Rep: Reputation: 15
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?

Last edited by Snigger; 07-19-2011 at 05:50 AM.
 
Old 07-20-2011, 09:01 AM   #2
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,140

Rep: Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Recover deleted files from ext3 filesystem digdogger Linux - Software 15 07-16-2016 08:11 AM
[SOLVED] How to Recover Deleted (partly overwritten) Files in /home on ext3 fs, ubuntu 6.06 the_new_z Linux - Newbie 3 08-05-2010 01:44 PM
LXer: HOWTO recover deleted files on an ext3 file system LXer Syndicated Linux News 0 03-14-2008 01:11 PM
How to recover a deleted file from ext3 filesystem ? Honor Linux - Software 1 12-21-2005 12:36 PM
Deleted Directory, how to Recover ?? GT I.N.C Linux - General 5 11-19-2002 08:20 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:17 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration