LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 09-09-2004, 02:34 AM   #1
pAn1k
Member
 
Registered: Jun 2004
Location: Cala city
Distribution: Suse 10.0; Debian 5.0 (Lenny) Fluxbox
Posts: 240

Rep: Reputation: 30
Angry Corrupted my ReiserFS by fixing it...HELP!


The last couple of days my computer started intermittantly freeze, I dialed it down to a bad power connector. I plugged a new one into the drive, but before booting i decided to check the ReiserFS with Reiserckfs. I did Reiserfsck --check and it tell me anything except that I should try --rebuild tree so I did. I figured with all improper shutdowns that it couldn't hurt. Huh, now I cannot boot properly, it says that thing s are improperly formatted and the like. However I can acces my files through knoppix.

Any suggestions on how to fix this major foul-up. Thanks in advance.
 
Old 09-09-2004, 03:29 AM   #2
win32sux
Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
try running it with --fix-fixable, it might help...

the thing with "--rebuild-tree" is that you shouldn't run it unless you need to...

when you ran "--rebuild-tree", did it give you error messages??

from "man reiserfsck":

Quote:
--rebuild-tree
This option rebuilds the entire filesystem tree
using leaf nodes found on the device. Normally you
only need this option if the reiserfsck --check
reports "Running with --rebuild-tree is required".
You are strongly encouraged to make a backup copy
of the whole partition before attempting the
--rebuild-tree option. Once reiserfsck --rebuild-
tree is started it must finish its work (and you
should not interrupt it), otherwise the filesystem
will be left in the unmountable state to avoid sub_
sequent data corruptions.

--fix-fixable
This option recovers certain kinds of corruption
that do not require rebuilding the entire file sys_
tem tree (--rebuild-tree). Normally you only need
this option if the --check option reports "corrup_
tion that can be fixed with --fix-fixable". This
includes: zeroing invalid data-block pointers, cor_
recting st_size and st_blocks for directories, and
deleting invalid directory entries.

Last edited by win32sux; 09-09-2004 at 03:38 AM.
 
Old 09-09-2004, 05:57 PM   #3
pAn1k
Member
 
Registered: Jun 2004
Location: Cala city
Distribution: Suse 10.0; Debian 5.0 (Lenny) Fluxbox
Posts: 240

Original Poster
Rep: Reputation: 30
Thanks for the reply. Yes, it did give me errors. It said that therre were errors in a lot of files and that it was changing them.

I tried --fix-fixable. However, to no avail.

I Chowned my root dir through knoppix and now it shows nothing in it. I think that I've just dug too deep a hole to work out of. I think I might put a another HD in and transfer some of the files that I can get to.

Any replies would be helpful, thanks.
 
Old 09-10-2004, 07:29 PM   #4
pAn1k
Member
 
Registered: Jun 2004
Location: Cala city
Distribution: Suse 10.0; Debian 5.0 (Lenny) Fluxbox
Posts: 240

Original Poster
Rep: Reputation: 30
[cough-cough] BUMP!
 
Old 09-10-2004, 07:35 PM   #5
win32sux
Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
once you retrieve your docs, zero the drive... then partition, format, install...

dd if=/dev/zero of=/dev/hdx
 
Old 09-12-2004, 08:53 PM   #6
pAn1k
Member
 
Registered: Jun 2004
Location: Cala city
Distribution: Suse 10.0; Debian 5.0 (Lenny) Fluxbox
Posts: 240

Original Poster
Rep: Reputation: 30
Thanks for your help. I bought a Western Digital 250 GB w/ 8m buffer at Fry's (they were on sale for 120 bucks). I'm transfering the files onto it then I'm going to reformat the messed up one. Then I'm going to transfer the files off my 250 gig and delete everything off that and use it to store all my media. I figure that way when I do something dumb again it won't hurt so bad. By the way what do yo mean by zeroing? Thanks again.
 
Old 09-13-2004, 12:24 AM   #7
win32sux
Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
Quote:
Originally posted by pAn1k
what do yo mean by zeroing?
outputting nothing but zeros to the hard drive... this effectively wipes everything clean...

some call it "low-level formatting" (though that's debatable)...

an analogy:

imagine your hard disk is a beach... now imagine a tractor with a huge rake behind it...he comes to create neat lines on the beach from end to end... the truck is preparing the sand for everyone to come and write on it... that's formatting a filesystem on your drive...

now imagine the same beach where everybody's writing on the formatted sand... for some reason, a group of people decide to do nasty stuff to the sand (corruption)... like, they bring some crazy motorcycles and mess-up all the sand... eveything is so messed-up that the people have to call the tractor with the rake again... the tractor arrives, but the sand is so messed-up now that the rake isn't really getting rid of all the damage the motorcycles made... now we have a situation where the people can come to the beach and write on the sand, but the experience won't be the same as it was before the motorcycles messed-everything up...

so the people on the beach call Mr. Zero, and he arrives at the beach with a super-heavy-duty tractor and a super-heavy-duty rake behind it to get deep into the sand where the regular rake wouldn't go... he rakes the entire beach profoundly and with industrial-strength, making sure that not one square foot of sand doesn't get unturned and that any rocks or broken glass (the bikers were drinking beer) or any foreign object is completely removed... the deep tire tracks and other deep holes dissapear... that's zeroing your drive...

of course, after Mr. Zero leaves, then the regular tractor (filesystem format) can come in and prepare the sand once again, and the lines will be like new for all the people on the beach... and eveybody's happy...


Last edited by win32sux; 09-13-2004 at 12:30 AM.
 
Old 09-13-2004, 01:40 AM   #8
pAn1k
Member
 
Registered: Jun 2004
Location: Cala city
Distribution: Suse 10.0; Debian 5.0 (Lenny) Fluxbox
Posts: 240

Original Poster
Rep: Reputation: 30
Great, thanks for your help. It's good to have a resource like this where people can help each other out.
 
  


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
Bad blocks - reiserfs corrupted babis Linux - Hardware 3 04-03-2005 10:05 PM
2.6.7, reiserfs and corrupted tree stelmed Slackware 2 10-26-2004 08:46 AM
reiserfs got corrupted - fsck hangs hd !? krizu Linux - General 4 06-13-2004 06:37 PM
corrupted reiserfs, can't repair antipop Linux - Newbie 8 05-04-2004 10:14 PM
possible to recover corrupted reiserfs partition???? hollywoodb Linux - Newbie 1 10-10-2003 06:44 PM


All times are GMT -5. The time now is 09:43 PM.

Main Menu
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