Trying to recover a deleted file.
Hi;
I am trying to recover a file that was deleted via fsck. Running debugfs shows that the file is still possibly available: Code:
5333037 40755 (2) 1000 1000 4096 16-Apr-2010 16:30 . Using debugfs i did a dump of the directory the file was in. Code:
5332995 40755 (2) 1000 1000 4096 12-Apr-2010 10:08 . Now by using hexdump I can see the file exists but is not 'pointed' to. Code:
# hexdump -C dirdata For example under Linux ext2fs it is quite easy (this is documented in a mini-howto from linuxdoc): 1. Unmount the filesystem. 2. Start "debugfs". 3. Walk to the directory. 4. Dump the directory content data (debugfs: dump <inode of directory> /tmp/dirdata). 5. Exit debugfs. 6. Load the data into a hexeditor. 7. Check the inode of my deleted file (it is still there in the directory data, only the "pointer" to the next entry in the directory has increased so it now points after my deleted file's directory entry). 8. Start debugfs again. 9. Add the file to a directory under a certain name with the old inode number (debugfs: modify_inode <inode of my deleted file>) 10. Set deletion time to 0 and link count to 1. 11. Dump my deleted file (debugfs: dump <inode of my deleted file> /tmp/mydeletedfile) Thanks |
BUMP
Anyone have any ideas? |
All times are GMT -5. The time now is 06:18 PM. |