debugfs use ?


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting debugfs use ?
# 1  
Old 06-10-2008
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
--------------------------------
# 2  
Old 06-10-2008
debugfs was designed to work on ext2 filesystems. What type filesystem does the deleted file reside on?
# 3  
Old 06-10-2008
can u tell me how to check the filesystem
# 4  
Old 08-19-2008
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
Login or Register to Ask a Question

Previous Thread | Next Thread

1 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

debugfs help

Take a look at this. ~ $ df -h Filesystem Size Used Avail Use% Mounted on /dev/sda1 9.4G 4.2G 4.9G 47% / none 1.6G 360K 1.6G 1% /dev none 1.6G 1.7M 1.6G 1% /dev/shm none 1.6G 92K 1.6G 1% /var/run... (2 Replies)
Discussion started by: cokedude
2 Replies
Login or Register to Ask a Question