LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices

Reply
 
Search this Thread
Old 10-19-2005, 05:30 PM   #1
purelithium
Member
 
Registered: Oct 2005
Location: Canada
Distribution: Mandriva 2006.0
Posts: 390

Rep: Reputation: 30
Corrupt Superblock, e2fsck bootup problems.


http://www.linuxquestions.org/questi...postid=1870003

I'm having this exact problem, but I don't know what to do. Well not that exact problem, but something similar.

My failed bootup looks like this:

Start udev - OK
Activating swap partitions: swapon: /dev/hda7: Invalid argument - FAILED

Checking filesystems
fsck.ext3/dev/hda9:
The superblock could not be read or does not describe a correct ext2 filesystem. If the device is valid and it really contains an ext2 filesystem (and not swap or ufs or something else), then the superblock is corrupt, and you might try running e2fsck with an alternate superblock:
e2fck -b 8193 <device>

: Bad magic number in super-block while trying to open /dev/hda9
/dev/hda8: clean, 1381/4071648 files, 212918/8132898 blocks
Failed to check filesystem. Do you want to repair the errors? (Y/N)
(beware, you can lose data)

When I say Yes to this, it says:

e2fsck 1.36 (05-Feb-2005)
Couldn't fine ext2 superblick, trying to backup blocks...
fsck.ext3
The superblock could not be read or does not describe a correct ext2 filesystem. If the device is valid and it really contains an ext2 filesystem (and not swap or ufs or something else), then the superblock is corrupt, and you might try running e2fsck with an alternate superblock:
e2fck -b 8193 <device>

: Bad magic number in super-block while trying to open /dev/hda9
e2fsck 1.36 (05-Feb-2005)
/dev/hda8: clean, 1381/4071648 files, 212918/8132898 blocks

*** An error occurred during the file system check.
*** Dropping you into a shell; the system will reboot
*** when you leave the shell.
Give root password for maintenance
(or type Control-D for normal startup):

Thank god for Linux and it's ability to drop me into a shell when it crashes!

My fstab looks like this:

# This file is edited by fstab-sync - se 'man fstab-sync' for details
/dev/hda5 / ext3 defaults 1 1
/dev/hda9 /home ext3 defaults 1 2
/dev/hdc /mnt/cdrom iso 9669 user,iocharset=iso8859-1,noauto,ro,exec 0 0
/dev/hda1 /mnt/win_c ntfs umask=0,nls=iso8859-1,ro 0 0
/dev/hdb1 /mnt/win_c2 vfat umask=0,iocharset=iso8859-1,codepage=850 0 0
/dev/hda6 /mnt/win_d vfat umask=0,iocharset=iso8859-1,codepage=850 0 0
none /proc proc defaults 0 0
/dev/hda8 /usr ext3 defaults 1 2
/dev/hda7 swap swap defaults 0 0

That's all i get when I do a "cat fstab" in the console.

So now what?

I tried to scan the drive using Maxtor's Power Blast and this drive is ok, although my 160gb drive died on me last night. This drive is brand new in August and i hope it's not failing...

Any suggestions?

Thanks in advance!
 
Old 10-19-2005, 05:52 PM   #2
purelithium
Member
 
Registered: Oct 2005
Location: Canada
Distribution: Mandriva 2006.0
Posts: 390

Original Poster
Rep: Reputation: 30
I'm going to boot with Knoppix to see if i can fsck on it. or something.... I don't know, i'm tired of formatting and installing and booting and harddrives dying... *laugh*

But I really would like some guidance as to what to do, because I've been only dealing with linux for a few weeks now...
 
Old 10-19-2005, 09:01 PM   #3
purelithium
Member
 
Registered: Oct 2005
Location: Canada
Distribution: Mandriva 2006.0
Posts: 390

Original Poster
Rep: Reputation: 30
hmm... maybe i should run fdisk to see if my partition table changed?

I'll try that, once i rescue my files, incase i have to re-format everything AGAIN
 
Old 10-19-2005, 10:39 PM   #4
purelithium
Member
 
Registered: Oct 2005
Location: Canada
Distribution: Mandriva 2006.0
Posts: 390

Original Poster
Rep: Reputation: 30
Ok, well looks like no one could help, that's ok!

Wow, i'm so lucky that the "cat" command exists, as I had to edit my fstab file from that command, I couldn't open any programs, so I did everything from the CL!

Wow, that was an adventure

I had to boot up Knoppix and check my fstab and get fdisk to list my partition table. I compared the 2 and my fstab wasn't mapping the drives properly. Knoppix wouldn't let me write to my root partition, so I had to login to Mandriva as far as I could, and I edited fstab using the cat command I learned in "Rute"

http://rute.2038bug.com/index.html.gz

This saved my ass. Thank you to all those who developed the idea of a user actually being able to fix the OS, rather than going to a "blue screen of death" and not allowing anything to happen, except for a format and re-install. Thank you!

Such a simple solution to a seemingly huge problem. I thought that this disk was trashed too, after my otherone died last night!

I really learned a lot and I'm proud that I was able to fix my OS, something that not many windows users can say!

Well, hopefully this thread(if you can call it one) will be of some help to others in my situation.
 
  


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
e2fsck failed Corrupt superblock gasparov Linux - General 1 02-21-2005 07:16 AM
Raid 1 - Superblock is corrupt pyfsapple Debian 1 04-19-2004 12:01 PM
e2fsck superblock boot error dezert_fox Linux - Hardware 10 03-19-2004 11:04 PM
corrupt superblock problem raven Linux - General 12 11-26-2002 11:42 AM
Corrupt Superblock aliensub Linux - General 0 05-09-2002 11:52 AM


All times are GMT -5. The time now is 09:25 AM.

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