LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   e2fsck: Bad magic number in super-block (https://www.linuxquestions.org/questions/debian-26/e2fsck-bad-magic-number-in-super-block-314039/)

jamesdin 04-16-2005 11:31 PM

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.

kostian 04-17-2005 02:53 AM

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.

jamesdin 04-19-2005 09:20 PM

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.

jamesdin 04-25-2005 05:14 PM

Any suggestions how to fix this?


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