Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
What the fu.....argh...(help) kernel saying bad superblock
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
russryder
Tux's lil' helper
Tux's lil' helper


Joined: 28 Aug 2002
Posts: 133

PostPosted: Mon Jun 14, 2004 5:11 pm    Post subject: What the fu.....argh...(help) kernel saying bad superblock Reply with quote

Ok I've been up and running for about 4 months stable now. I've recently upgraded from 2.6.1 to 2.6.5 and was still running good for about 5 days. I rebooted my system and when it starts up it tells me that hdb3(which is my / partition) has a bad superblock and to press cntrl-D for normal startup or give root password for maintenance. Now I know that this hard drive is perfectly good since I can boot from knoppix and read the files on it and copy files to it. I just don't know what to do about this. Has anyone had a similar problem before? I think it's kind of strang that it I can't mount it under the maintenance mode.

Thanks in advance for any assistance,
-Russ
_________________
System Specs
Athlon XP 2500+
1.5g ram
GeForce FX 5700 Ultra
Soundblaster Live
200gb hdd
gentoo-dev-sources 2.6.9 r4
screenshot http://russbox.sytes.net/screenshot.png
Back to top
View user's profile Send private message
danone
Guru
Guru


Joined: 18 Jan 2004
Posts: 398
Location: Germany

PostPosted: Mon Jun 14, 2004 5:14 pm    Post subject: Reply with quote

Which FS-Type you are using ..maybe fsck will help out and maybe you must run a block repair..but without the filesystem type i cant help now
_________________
[:: Processor: Intel Core 2 Duo E6300 ]::[ Mainboard: ASUS P5B Deluxe ]::[ GPU: nVidia 7900GTO ::]
[:: RAM: HyperX DDR2 800 ]::[ Samsung SH-183A SATA:: CREATiVE X-Fi XtremeMusic :: ]
Back to top
View user's profile Send private message
russryder
Tux's lil' helper
Tux's lil' helper


Joined: 28 Aug 2002
Posts: 133

PostPosted: Mon Jun 14, 2004 5:22 pm    Post subject: Reply with quote

It's an ext-3 partition.
_________________
System Specs
Athlon XP 2500+
1.5g ram
GeForce FX 5700 Ultra
Soundblaster Live
200gb hdd
gentoo-dev-sources 2.6.9 r4
screenshot http://russbox.sytes.net/screenshot.png
Back to top
View user's profile Send private message
danone
Guru
Guru


Joined: 18 Jan 2004
Posts: 398
Location: Germany

PostPosted: Mon Jun 14, 2004 5:49 pm    Post subject: Reply with quote

I'm sorry can't help with ext3 but there are tools to manage bad blocks..i use XFS much faster and more reliable..and handle bad blocks better..as far as i know
_________________
[:: Processor: Intel Core 2 Duo E6300 ]::[ Mainboard: ASUS P5B Deluxe ]::[ GPU: nVidia 7900GTO ::]
[:: RAM: HyperX DDR2 800 ]::[ Samsung SH-183A SATA:: CREATiVE X-Fi XtremeMusic :: ]
Back to top
View user's profile Send private message
argasek
Bodhisattva
Bodhisattva


Joined: 06 May 2004
Posts: 1121
Location: Sol [0,0], Poland, Kraków

PostPosted: Mon Jun 14, 2004 6:21 pm    Post subject: Reply with quote

Get familiar with badblocks command, if You suspect some physical damage. But I guess you should just fix Your superblock: e2fsck -b. I don't remember the way how to find alternate superblocks, but I think one should be localted within 8191-8193 number range.

Quote from man:

from man e2fsck:
Quote:
-b superblock
Instead of using the normal superblock, use an alternative superblock specified by superblock. This option is normally used when the primary superblock has been corrupted. The location of the backup superblock is dependent on the filesystem's blocksize. For filesystems with 1k blocksizes, a backup superblock can be found at block 8193; for filesystems with 2k blocksizes, at block 16384; and for 4k blocksizes, at block 32768.
Additional backup superblocks can be determined by using the mke2fs program using the -n option to print out where the superblocks were created. The -b option to mke2fs, which specifies blocksize of the filesystem must be specified in order for the superblock locations that are printed out to be accurate.
If an alternative superblock is specified and the filesystem is not opened read-only, e2fsck will make sure that the primary superblock is updated appropriately upon completion of the filesystem check.


Also, don't worry about this "2" in e2fsck: it fixes ext3 partitions as well.
_________________
RLU #137109 | http://soundcloud.com/argasek
Back to top
View user's profile Send private message
russryder
Tux's lil' helper
Tux's lil' helper


Joined: 28 Aug 2002
Posts: 133

PostPosted: Mon Jun 14, 2004 6:35 pm    Post subject: Reply with quote

e2fsck -b 8193 gives me "bad magic number in superblock while trying to open /dev/hdb3"
_________________
System Specs
Athlon XP 2500+
1.5g ram
GeForce FX 5700 Ultra
Soundblaster Live
200gb hdd
gentoo-dev-sources 2.6.9 r4
screenshot http://russbox.sytes.net/screenshot.png
Back to top
View user's profile Send private message
russryder
Tux's lil' helper
Tux's lil' helper


Joined: 28 Aug 2002
Posts: 133

PostPosted: Mon Jun 14, 2004 8:11 pm    Post subject: Reply with quote

I have another hdd with a windows partition on it, I may just trash that one, put a couple xfs partitions on it and use dd to copy my partitions over. Anyone have any input or opinions on that? I won't be doing that until Wednesday because of a tight schedule, so I have a little time to figure out what I'm going to do.

thanks again
-Russ
_________________
System Specs
Athlon XP 2500+
1.5g ram
GeForce FX 5700 Ultra
Soundblaster Live
200gb hdd
gentoo-dev-sources 2.6.9 r4
screenshot http://russbox.sytes.net/screenshot.png
Back to top
View user's profile Send private message
argasek
Bodhisattva
Bodhisattva


Joined: 06 May 2004
Posts: 1121
Location: Sol [0,0], Poland, Kraków

PostPosted: Mon Jun 14, 2004 8:24 pm    Post subject: Reply with quote

russryder wrote:
e2fsck -b 8193 gives me "bad magic number in superblock while trying to open /dev/hdb3"


I didn't mean exactly 8193. You may have diffrent position of suberblocks. Read my post again, try different options (eg. 32768)
_________________
RLU #137109 | http://soundcloud.com/argasek
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum