LinuxQuestions.org
Visit Jeremy's Blog.
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 08-29-2006, 03:13 PM   #1
wilsonsamm
Member
 
Registered: Aug 2005
Location: Sheffield, UK
Distribution: Gentoo
Posts: 105

Rep: Reputation: 15
need to recover data in a deleted inode


I don't know whether "deleted inode" is quite correct, I'm not quite sure what that is even.

I finally finished the first two chapters of my book, and then I deleted it by accident

Now I scanned that area of the disk and found out what inodes the files were in, but I can't figure out how to get it back still.
I thought of using dd, but I don't know the absolute physical location of the files. How can you work this out?
 
Old 08-29-2006, 03:19 PM   #2
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
If it's a *.doc or *.txt type file, you might try recovering it with the program foremost. Just be sure to just search for doc type files (there's a cli option for that) so that you don't find all the other crap. You'll probably have to run it from a live CD or a separate filesystem...
 
Old 08-29-2006, 03:56 PM   #3
wilsonsamm
Member
 
Registered: Aug 2005
Location: Sheffield, UK
Distribution: Gentoo
Posts: 105

Original Poster
Rep: Reputation: 15
No, it's plaintext. The filenames are ./intro/01, ./intro/02, ./intro/03, ./intro/04, ./chooseday/05, and so on until ./chooseday/10.
 
Old 08-29-2006, 04:16 PM   #4
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
I'm pretty sure foremost will find those files. They'll be renamed some numeric combination though. You'll have to rename them once you recover them.
 
Old 08-30-2006, 08:27 AM   #5
wilsonsamm
Member
 
Registered: Aug 2005
Location: Sheffield, UK
Distribution: Gentoo
Posts: 105

Original Poster
Rep: Reputation: 15
Thanks for your replies, everyone.
I got my files back
Foremost scanned throguh my entire disk, making thousands of little files that I didn't want and had to sift through. I found it so frustrating that I didn't know which of these files I wanted, though I did know precisely where on the disk they were. I had their inode numbers which I found using debugfs.
MY SOLUTION: as always, google is my friend. I searched for something like "how to dump data from an inode" and it came up with an app called lde (http://lde.sourceforge.net/). Using this I found my data and dumped them to files with ease.

Thanks again.
 
Old 08-30-2006, 08:42 AM   #6
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,120

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Glad to hear a success - I passed by there a year or so ago, but have never needed it.
One for the tool-box.
 
Old 08-30-2006, 11:34 AM   #7
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
Congratulations! Foremost does indeed scan the whole drive. The trick is to use the command line switch to only search for certain filetypes of bigger than a certain size.

But that other tool sounds like a good one to remember!
 
  


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
Software to acess and recover data on Fat32 data NeoSpawn Linux - Software 2 09-04-2005 11:37 AM
Software to help me recover 'Deleted' FAT32 Partition Data? flamesrock Linux - Software 8 07-26-2005 10:39 PM
Recover deleted files? subaruwrx Linux - Newbie 8 06-04-2004 08:47 AM
HELP!!! to recover lost inode table moden Linux - General 3 11-26-2002 05:53 AM
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 02:29 AM.

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