LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 04-10-2004, 05:11 PM   #1
leprechaun
Member
 
Registered: Feb 2002
Distribution: Slackware 81/90
Posts: 45

Rep: Reputation: 15
Unhappy ReiserFS - Bad Blocks - Recovery - HELP!


Hey people,

It's been a really long time i haven't posted.


I currently have a major problem. The hard drive in my file server is giving
me attitude. It won't mount anymore. It's a 160 gb drive partitioned in 140 /
20. The 20 part mounts, reads, writes fine.
______________________________________________________________
"root@vault:/var/log/packages# mount /dev/hdb1
mount: wrong fs type, bad option, bad superblock on /dev/hdb1,
or too many mounted file systems"


______________________________________________________________
root@vault:/var/log/packages# reiserfsck /dev/hdb1
..
"The problem has occurred looks like a hardware problem.
Check your hard drive for badblocks.

bread: Cannot read the block (16).

Aborted"


______________________________________________________________
badblocks reveals:

96,97,98,99


after more than 2 and a half hours of run time. (it's still not finished)




I don't know much about hardware because i hate it, or i hate hardware because i don't know much about it., either way, it makes sense.

I understand the concept of blocks (what you play around with while
defragmenting, right?)

But anything deeper makes me ignorant.

Would you guys know of any docs i could read to understand how filesystems
work in general, some about reiserfs. So i can know what i'm dealing with
before i start tinkering with tools to solve the problem.

a few pointers to solve this would be appreciated (if it's even possible).

I might blow 140 gigs of stuff, but if i can atleast give it an educated guess
/ try, and learn something in the process, i might just not kill someone afterall.

extra info :

Slacklware 9.0 (2.4.20)
Maxtor 6Y160L0
on rather generic p2 mobo
reiserfs-progs 3.6.4



Thanks alot, Leprechaun
 
Old 04-10-2004, 07:13 PM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,333

Rep: Reputation: 547Reputation: 547Reputation: 547Reputation: 547Reputation: 547Reputation: 547
""root@vault:/var/log/packages# mount /dev/hdb1
mount: wrong fs type, bad option, bad superblock on /dev/hdb1,
or too many mounted file systems""

The Linux program that checks the integrity of a file system and corrects any errors is called fsck. You should boot a rescue CD and run fsck.reiserfs to check your reiserfs. You run fsck.reiserfs against an unmounted partition. You can use the -N parameter to tell fsck.reiserfs to make no changes, just report what changes it thinks are necessary.

So, boot into a rescue CD and then run:
fsck.reiserfs -N /dev/hdb1
and see what it tells you.

If you want to have fsck fix everything that it finds wrong then run:
fsck.reiserfs /dev/hdb1
or:
fsck.reiserfs -a /dev/hdb1

Without -a fsck will ask you for permission before making each change. With -a fsck will ask no questions, just fix everything it finds wrong.

fsck cross checks your file system in four or five different directions. Sometimes fsck finds files or file fragments which it doesn't know where they belong. fsck gives such orphans a number name and places them in the lost+found directory. So after you run fsck look in lost+found to see if there are any orphan files.

fsck is very good. Basically, if fsck cannot fix your file system then it is not fixable.

Here is the fsck man page:

http://www.die.net/doc/linux/man/man8/fsck.8.html

___________________________________
Be prepared. Create a LifeBoat CD.
http://users.rcn.com/srstites/LifeBo...home.page.html

Steve Stites

Last edited by jailbait; 04-10-2004 at 07:18 PM.
 
  


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
ReiserFS with bad blocks bruce ford Linux - Software 2 07-23-2005 04:15 AM
ReiserFS data recovery jclu Linux - Software 1 07-13-2005 12:26 PM
Bad blocks - reiserfs corrupted babis Linux - Hardware 3 04-03-2005 09:05 PM
Reiserfs, hacker and bad blocks rkane Linux - General 2 01-28-2005 02:58 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 10:10 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