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-13-2006, 12:36 PM   #1
jamoody
LQ Newbie
 
Registered: Dec 2005
Posts: 13

Rep: Reputation: 0
Super-blocks Corrupted


During boot I get "Buffer I/O error on device hda2" messages. So, I figure a files system check is in order, but fsck returns:
Server:~ # fsck /dev/hda2
fsck 1.38 (30-Jun-2005)
e2fsck 1.38 (30-Jun-2005)
Couldn't find ext2 superblock, trying backup blocks...
fsck.ext2: Bad magic number in super-block while trying to open /dev/hda2
So, I boot up from CD and use mkfs -n /dev/hda2 to obtain a list of super-blocks which returns block size=4096 and the following list of super-blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208, 4096000
Continuing from the CD boot and without hda2 mounted I enter each of these super-blocks in sequence as:
fsck -b <super-block> /dev/hda2
The first 5 super-blocks return bad magic number in super-block. The last 5 returns invalid argument.

Any ideas what to do next? The system does boot, but I'm worried that someday it might not due to filesystem corruption. Since the system is running, is there anyway to force the super-block to the correct value. As FYI in case it is somehow involved, I created this drive using Ghost For Linux (G4L) option Click'n'Clone. I don't know if the original drive has these same problems or not.
 
Old 04-13-2006, 10:41 PM   #2
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
Try rebuilding the superblock

fsck has a switch to rebuild the superblock.
 
Old 04-14-2006, 08:02 AM   #3
jamoody
LQ Newbie
 
Registered: Dec 2005
Posts: 13

Original Poster
Rep: Reputation: 0
Super-blocks Corrupted

AwesomeMachine,
Could you please be specific about the correct fsck switch to rebuild the super block as I wasn't able to identify it from the man pages. It seems that I need to specify a valid super-block via -b, but I'm unable to identify one.

And the source of your Power is right on. ><IXOYE>
 
Old 04-14-2006, 08:33 AM   #4
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,187

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
Caution: If you have a logical volume on /dev/hda2, using fsck on it will destroy the volume. For logical volumes, use fsck /dev/mapper/<vol name>/.
 
Old 04-14-2006, 08:52 AM   #5
jamoody
LQ Newbie
 
Registered: Dec 2005
Posts: 13

Original Poster
Rep: Reputation: 0
Super-blocks Corrupted

AwesomeMachine,
Could you please be specific about the correct fsck switch to rebuild the super block as I wasn't able to identify it from the man pages. It seems that I need to specify a valid super-block via -b, but I'm unable to identify one.

And the source of your Power is right on. ><IXOYE>
 
Old 07-16-2006, 08:04 AM   #6
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
its been some time so even tho I am no expert as I have some probs myself try this

tune2fs run when system booted and man tune2fs gives info on how to force a change in the checking

if the system does not boot....mandriva kicks you to a root prompt to do stuff like that

Last edited by aus9; 07-16-2006 at 08:07 AM.
 
  


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
nfs write == super slow; read == super fast - problem? BrianK Linux - Networking 4 08-23-2007 10:59 PM
Now I have really MESSED it ALL up: SUPER BLOCKS--NO LINUX smiley_lauf Linux - Newbie 10 03-27-2006 05:45 AM
bad blocks bong.mau Linux - General 1 11-16-2005 02:17 PM
Bad blocks - reiserfs corrupted babis Linux - Hardware 3 04-03-2005 09:05 PM
Quota and blocks... wolftechmn Linux - General 1 12-01-2003 11:39 AM

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

All times are GMT -5. The time now is 04:58 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