LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 04-16-2005, 11:31 PM   #1
jamesdin
LQ Newbie
 
Registered: Apr 2005
Posts: 6

Rep: Reputation: 0
e2fsck: Bad magic number in super-block


I have a mail server with Woody kernel 2.4.18. The server runs fine but for some reason (6th sense?) I've tried to run e2fsck today on the home partition and I got the following error message:

Quote:
e2fsck -c /dev/hda6
e2fsck 1.27 (8-Mar-2002)
/dev/hda6 is mounted.

WARNING!!! Running e2fsck on a mounted file system may cause
SEVERE filesystem damage.

Do you really want to continue (y/n)? yes

Couldn't find ext2 superblock, trying backup blocks...
e2fsck: Bad magic number in super-block while trying to open /dev/hda6

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:
e2fsck -b 8193 <device>
Is there a way to fix this? I'm afraid the drive might be hosed soon if I don't do anything.
 
Old 04-17-2005, 02:53 AM   #2
kostian
Member
 
Registered: Jul 2004
Location: LT
Posts: 150

Rep: Reputation: 15
well one thing i know is that you should never run e2fsck on a mounted filesystem(and you get a warning on this ). Unmount the partition first ant then run e2fsck.
 
Old 04-19-2005, 09:20 PM   #3
jamesdin
LQ Newbie
 
Registered: Apr 2005
Posts: 6

Original Poster
Rep: Reputation: 0
tune2fs -l /dev/hda6 | grep 'Block size'
tune2fs: Bad magic number in super-block while trying to open /dev/hda6
Couldn't find valid filesystem superblock.
 
Old 04-25-2005, 05:14 PM   #4
jamesdin
LQ Newbie
 
Registered: Apr 2005
Posts: 6

Original Poster
Rep: Reputation: 0
Any suggestions how to fix this?
 
  


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
ext3 bad super block Sridhar Kumar K Linux - General 3 05-23-2005 08:18 PM
Bad magic number in super-block kubokubik Linux - Newbie 4 01-26-2005 10:52 AM
bad magic number in superblock crazynachos Linux - Games 1 04-15-2004 01:43 PM
Bad Magic Number joseph Linux - Software 1 01-05-2004 03:22 AM
Bad Magic Number? Thewyzewun Linux - General 17 10-19-2003 05:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 07:11 AM.

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