LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

Reply
 
Search this Thread
Old 08-08-2010, 08:30 AM   #1
iliasjr
LQ Newbie
 
Registered: Jul 2010
Posts: 1

Rep: Reputation: 0
Recovering a deleted file from its inode


Hi everybody,
I was wondering if it was possible to display inodes of deleted files using a command. If yes, is it possible to recover the deleted files from their inodes?
Thanks in anticipation.
 
Old 08-08-2010, 09:00 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,671
Blog Entries: 54

Rep: Reputation: 2953Reputation: 2953Reputation: 2953Reputation: 2953Reputation: 2953Reputation: 2953Reputation: 2953Reputation: 2953Reputation: 2953Reputation: 2953Reputation: 2953
Code:
echo hello > /home/liasjr/hello
less /home/liasjr/hello
^Z
lsof -Pwnp `pgrep -f 'less /home/liasjr/hello' -a -d 1-0 | grep 'dele'` # Note the file descriptor number
cat /proc/`less /home/liasjr/hello'`/fd/[file_descriptor_number] > /path/to/savefile
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Recovering Deleted Files By Inode Number In Linux And Unix LXer Syndicated Linux News 0 08-12-2008 06:41 AM
How to access inode of a deleted file? ashwyn222 Linux - Newbie 3 02-13-2008 05:36 AM
Recovering a deleted file brazilian_user Linux - General 2 08-09-2007 03:23 PM
Recovering the Deleted file how ? winxandlinx Linux - Software 1 09-21-2006 09:40 AM
recovering a deleted file? berrance Linux - Software 4 03-24-2006 08:56 AM


All times are GMT -5. The time now is 07:15 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration