LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 02-23-2003, 10:57 PM   #1
Gantrep
Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 78

Rep: Reputation: 15
Manual recovery of data from trashed reiserfs


I have a very large amount of data(5 gigs) I would like to recover from a trashed reiserfs parition. Yes 5 gigs is just the stuff I want. The parition itself is 19gig.

The drive can no longer be mounted, and reiserfsck --fix-fixable, --rebuild-sb and --rebuild-tree all fail.

I tried testdisk
to no avail. It can see only the first level of subdirectories in / on the drive and no more.I don't believe something ludicrous has happened, like the drive heads only being able to move past a certain spot, because I can grep -a the drive for strings I know are there (like "slashdot" :=) ) and the drive is accessed fine and I get lots of results.

Is manual recovery the only way now? And if it is, how would I go about it?
 
Old 02-24-2003, 11:04 PM   #2
Gantrep
Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 78

Original Poster
Rep: Reputation: 15
I've decided I have better things to do than try to recover mp3's with a sector editor. I am using the "strings" command to dump any plaintext that's there that I might want some day to a file called data, and then I am going to reformat it as ext2.
 
Old 02-25-2003, 11:50 AM   #3
m0rl0ck
Member
 
Registered: Nov 2002
Distribution: A totally 133t distro :)
Posts: 358

Rep: Reputation: 31
Sorry Im not posting a suggestion or help for your problem, but I have a question.
How was the filesystem ruined? Was it a hardware problem?
Ive been using reiserfs for a while and have never had any trouble and would like to know if theres something I should watch out for.
Thanks.
 
Old 02-25-2003, 03:09 PM   #4
Electro
LQ Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
A day ago, I had a problem but it was a line in one of my PAM or security files. Upon booting, LINUX didn't mount the drives because of that stupid line in the file that I edited. None of my drives weren't mounted, so I ran fdisk to see what the drives come up as. There were not in the normal device path for example /dev/hda1. I had to reboot because it was in a read-only like state. I selected failsafe in LILO and it login me as a single user. I ran fdisk to see if the drives were in their normal directory. They were not. I then ran fsck.ext3 instead running fsck. It fixed everything and I edit the file that I changed before all this happen.

If you are unable to get the files from your partition. Find a local data recovery service and have them extract the files.

Next time find an online data storage and upload your MP3s or backup using CDs.
 
Old 02-26-2003, 09:36 PM   #5
Gantrep
Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 78

Original Poster
Rep: Reputation: 15
Electro, all three of your suggestions to me cost money. I download the stuff for free in the first place, and it's not worth it to me to bother backing all of that stuff up. My text documents and apache DocumentRoot I periodically zip and backup because I can't replace them easily.

m0rl0ck, at first I though it was due to several improper shutdowns, but my understanding is that with a journalling system like reiserfs, this shouldn't have been such an issue. I have reformatted this disk with ext2, and started to install linux to it again, only to get the same errors I was having before, so I believe this is actually a bad drive, although I think it is strange that partitioning and formatting it wouldn't detect it. I am going to run some Norton disk utilities and see if I can figure out what's going on.
 
Old 02-27-2003, 08:37 AM   #6
Mik
Senior Member
 
Registered: Dec 2001
Location: The Netherlands
Distribution: Ubuntu
Posts: 1,316

Rep: Reputation: 47
I had problems with a new drive I bought recently. I could create all the partitions and create a new file system on it but as soon as I started using the filesystem it would lock up or just give errors. First I thought it had to do with DMA modes because it wasn't complaining about the partitioning or creating filesystems, but it turned out the HD itself was messed up. I download the test tools from the manufacturer of the drive and it failed on all the tests. So I got it replaced and the current one has been running without a hickup so far.
 
Old 02-28-2003, 01:21 AM   #7
Electro
LQ Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
Quote:
A day ago, I had a problem but it was a line in one of my PAM or security files. Upon booting, LINUX didn't mount the drives because of that stupid line in the file that I edited. None of my drives weren't mounted, so I ran fdisk to see what the drives come up as. There were not in the normal device path for example /dev/hda1. I had to reboot because it was in a read-only like state. I selected failsafe in LILO and it login me as a single user. I ran fdisk to see if the drives were in their normal directory. They were not. I then ran fsck.ext3 instead running fsck. It fixed everything and I edit the file that I changed before all this happen.
Gantrep, why is the above cost you money. To me it cost me a few minutes of my time.

Whats the cost of one CD-R.mmm about a few US cents. Much cheaper if you buy in bulk.

For internet data storage, I use streamload. It has unlimited space and it is very cheap. X-drive is little on the expensive side.

Gantrep, you could have a virus embedded on one of the sectors that several programs can not scan it.
 
Old 02-28-2003, 10:36 PM   #8
Gantrep
Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 78

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by Electro
Gantrep, why is the above cost you money. To me it cost me a few minutes of my time.

Whats the cost of one CD-R.mmm about a few US cents. Much cheaper if you buy in bulk.

For internet data storage, I use streamload. It has unlimited space and it is very cheap. X-drive is little on the expensive side.

Gantrep, you could have a virus embedded on one of the sectors that several programs can not scan it.
Sure cd-r's are cheap, but the absolute cheapest I could buy a cd-burner for is 30-40 dollars.

I kind of doubt the virus theory, first of all because viruses for linux are so rare, but also because viruses that are resistant to repartitioning and formatting with a completely different filesystem are pretty darn rare as well.

Last edited by Gantrep; 02-28-2003 at 10:37 PM.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
DISCUSSION: ReiserFS Data Recovery Tips thegeekster LinuxAnswers Discussion 13 01-02-2010 08:32 AM
Partitions + recovery + FAT + ReiserFS + a complete idiot wini_g Linux - General 2 10-12-2007 06:02 PM
ReiserFS data recovery jclu Linux - Software 1 07-13-2005 12:26 PM
ReiserFS - Bad Blocks - Recovery - HELP! leprechaun Linux - Hardware 1 04-10-2004 07:13 PM
Reiserfs recovery NSKL Linux - Software 2 04-09-2003 02:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 04:04 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
Open Source Consulting | Domain Registration