The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
Google UNIX.COM


Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here.

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1  
Old 06-10-2008
ali560045's Avatar
Registered User
 

Join Date: Oct 2007
Posts: 248
debugfs use ?

using debugfs we can restore the deleted file provided if we know the inode no. of the same file

can anyone tell me how to use this command in practically.Below the inode of a file caled minfo.txt.I m using IBM AIX 5.3

90139 minfo.txt
--------------------------------
Reply With Quote
Forum Sponsor
  #2  
Old 06-10-2008
...@...
 

Join Date: Feb 2004
Location: NM
Posts: 4,269
debugfs was designed to work on ext2 filesystems. What type filesystem does the deleted file reside on?
Reply With Quote
  #3  
Old 06-10-2008
ali560045's Avatar
Registered User
 

Join Date: Oct 2007
Posts: 248
can u tell me how to check the filesystem
Reply With Quote
  #4  
Old 08-19-2008
Registered User
 

Join Date: Aug 2008
Posts: 1
Suppose the file system is ext2, ext3, or raiserfs, is it possible to use the debugfs tool or ext3grep?

I have posted here a solution for ext3 using debugfs to get the inode, and extrgrep to undelete the file. I hope it helps.

1. run debugfs to the location of files and list all files.
# debugfs $HARDDISK
debugfs> cd /lost/directory
debugfs> ls -d
<INODE> ... deleted_files_are_enclosed_in_<_>
INODE

2. restore using ext3grep
# ext3grep $HARDDISK --restore-inode INODE

lordmwesh
kivuva.kenya.or.ke
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 04:07 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0