LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   LinuxAnswers Discussion (http://www.linuxquestions.org/questions/linuxanswers-discussion-27/)
-   -   DISCUSSION: ReiserFS Data Recovery Tips (http://www.linuxquestions.org/questions/linuxanswers-discussion-27/discussion-reiserfs-data-recovery-tips-221097/)

thegeekster 08-22-2004 09:09 PM

DISCUSSION: ReiserFS Data Recovery Tips
 
This thread is to discuss the article titled: ReiserFS Data Recovery Tips

thegeekster 08-26-2004 02:41 PM

BROKEN URL
 
Hmmm.............it seems the URL to the article I mentioned, called Adventures in Undeleting, is broken in the time I first submitted my article and when it finally appeared in LQ.................. :(

I did make a copy of that article at the time I first came across it for my personal use, and if I can find the author, POLAX, I will ask his permission to post the copy here for everyone's benefit.........

:)
---thegeekster

jeremy 08-26-2004 03:35 PM

Thanks thegeekster.

--jeremy

thegeekster 08-26-2004 07:58 PM

Okay, after digging around a bit, I found the article...............It seems the "/forum/" postings are now in "/blog/", so that article, Adventures in Undeleting, has a new URL..............

<snip> :)

jeremy 08-27-2004 08:53 AM

The article has been updated.

--jeremy

thegeekster 08-27-2004 01:45 PM

Thanx........... :)

kostian 12-14-2004 06:23 AM

just wanted to say thanks, this really helped me after ive rm -rf my /etc the other day :rolleyes:
sure it was just /etc and you cant kill slack that easy but there were few configs i would like to keep.
and yeah make backups and actually read before you press enter when doing rm -rf on something as root on a Sunday morning :jawa:

JZL240I-U 02-18-2005 07:07 AM

Hm. Perhaps a silly question. Why the use of grep? I mean, in that case you have to remember a text-(snippet) to start it or just grep * when you want to recover all text files. So why not use
Code:


dd if=/dev/hdxy | strings

Should be much faster on a large partition without pattern matching and still deliver all text...

Furthermore, would your scheme work also on Reiserfs with LVM (logical volume manager) or is Reiserfscheck constrained to physical partitions?

Oliv' 04-10-2005 12:25 PM

just a big Thanks to you thegeekster...
your article helps me a lot to recover a file which was mis-ovrewritten due to the crash of the appli :)
Note that the URL about Adventures in Undeleting is broken :(

thegeekster 04-10-2005 07:03 PM

Quote:

Originally posted by Oliv'
just a big Thanks to you thegeekster...
your article helps me a lot to recover a file which was mis-ovrewritten due to the crash of the appli :)
Note that the URL about Adventures in Undeleting is broken :(

Thank you. I'm glad it was helpful........ :)

As for the broken link, I know about it, and it is no longer at the sig9.com site, period..........However, last month the author of that article was looking for it (through Google) and was pointed to my article.............Seems he was looking for it online and couldnt find it so he emailed me and asked if I still had my local copy of his article and also told me he would release his article under this Creative Commons License.....

I've been meaning to post his article here at LQ since I have his permission, but haven't been able to get to it just yet..........Hopefully soon, though, as it contains some really useful information.......... :)

thegeekster 04-10-2005 08:00 PM

Quote:

Originally posted by JZL240I-U
Hm. Perhaps a silly question. Why the use of grep? I mean, in that case you have to remember a text-(snippet) to start it or just grep * when you want to recover all text files. So why not use
Code:


dd /dev/hdxy | strings

Should be much faster on a large partition without pattern matching and still deliver all text...

Furthermore, would your scheme work also on Reiserfs with LVM (logical volume manager) or is Reiserfscheck constrained to physical partitions?

First off, sorry for the late reply.......I haven't been online very much in the last few months........ :(

When using grep, it's easier to grep the whole partition, unless you know _exactly_ what you're looking for and how many lines to include before and after........The reason for using grep I got from one of the recoverNet links: recoverNet - Unix-section, which describes using grep as I outlined it in my article........But, I don't see any reason for not using dd in place of grep as long as the output file is written to another partition so as not to corrupt the one you're searching on (ie, unmount it before the search to avoid accidently writing to it).......

And, sorry, I don't know anything about LVM, so I can't help you there............I've never set up logical volumes but, as I understand it, the linux kernel uses device mapper to allocate space with the userland LVM tools, and the volumes have their own device designation..............So wouldn't the partition tools work as expected, since you are partitioning a volume instead of a disk?............Again, I'm not real sure how it works, but it seems like it would work, unless I'm missing an important piece of the LVM puzzle......... :)

JZL240I-U 08-04-2005 09:47 AM

Next silly question:

OpenOffice is currently storing documents as zip-archives or zipped files. Would something like this (or any version with grep) work:
Code:


dd if=/dev/hdxy | bunzip | strings

I can't try it myself since I converted back to ext2 from ReiserFS (with LVM) after loss of data :( and these were the files my wife wanted the most to have back...

Monster_user 02-22-2006 05:53 PM

I could have used this thread. Hadn't anybody heard of Archive.org in 05??? (a.k.a "The WayBack Machine", or "The Internet Archive Project")

http://web.archive.org/web/200410240...node.php?id=85

There is the link to the article. :)
This is the page from the "/blogs/"link above.

http://web.archive.org/web/200410140...ndex.php?or=32

THANK YOU Geekster, for posting the link in Post#4. Thank you, thank you, thank you.

I needed it, because I just stupidly mounted (and then unmounted)) my Reiser 3.x partition, while running badblocks in Knoppix 3.9. Killed the file system completely.

Sorry to ressurect an old thread, but I did not want to let such valuable data dissapear. Then have people think it is gone for good.

I did do a search for similiar threads. Appearently I need to relearn how to use the search feature, because I just noticed a few threads below. They are not as helpfull as this thread though.

Side note. I've got my data back.

beislhur 01-02-2010 08:32 AM

Thank you!!!!!
 
reiserfsck did the trick!

I have learned my lesson: It is NEVER a good idea to use the same directory name on different hierarchy levels. I had messed up my /shared directory assuming to be in /backup/shared!

Thanks again, you prevented me from being awarded the "Dumbass Of The Year-Award"

beislhur


All times are GMT -5. The time now is 02:22 AM.