Koozali.org: home of the SME Server

Obsolete Releases => SME Server 7.x => Topic started by: koshakis on September 05, 2009, 10:05:06 AM

Title: fstab error on booting
Post by: koshakis on September 05, 2009, 10:05:06 AM
...  startup, I'm getting the following error:

fsck.ext2: Bad magic number in superblock
is corrupt and you might try running e2fsck with an alternate superblock:
e2fsck -b 8193 <device>

No idea how to fix this.
There is one SATA hard drive and run SME 7.4

Any suggestions how to fix this

Koshakis
Title: Re: fstab error on booting
Post by: paradigm on September 05, 2009, 10:11:50 PM
Looks like a problem in the file system.

I'm not familiar with the command e2fsck and search on google shows some thing about not running it on

mounted filesystems , please wait for some one more experienced with the command to help....
Title: Re: fstab error on booting
Post by: Stefano on September 05, 2009, 11:38:14 PM
fsck.ext2: Bad magic number in superblock
is corrupt and you might try running e2fsck with an alternate superblock:
e2fsck -b 8193 <device>

does the boot stop and ask you for a password?

do you have a backup?

Stefano
Title: Re: fstab error on booting
Post by: koshakis on September 06, 2009, 01:58:30 AM
Hi Stefano

Yes ask for root password and yes I have backup.

Koshakis
Title: Re: fstab error on booting
Post by: Stefano on September 06, 2009, 08:48:56 AM
ok..

assuming you have a standard SME setup with lvm, give root passwod and run the suggested command using /dev/mapper/main-root as device; you could be requested to say 'yes' many times

at the end of the process, reboot and check your data..

HTH
Stefano
Title: Re: fstab error on booting
Post by: koshakis on September 06, 2009, 10:02:57 AM
I run the command
e2fsck -b 8193 /dev/mapper/main-root

and I get

But magic number in super-block while trying to open /dev/mapper/main-root


Koshakis
Title: Re: fstab error on booting
Post by: Stefano on September 08, 2009, 11:21:08 PM
ok..

try with

Code: [Select]
e2fsck -b 32768 /dev/mapper/main-root

it should do the job

Stefano
Title: Re: fstab error on booting
Post by: koshakis on September 09, 2009, 12:40:50 AM
Thanks for you replay

I install a fresh server and I restore from backup
and it's look ok.

Thank you again for try to help.

Koshakis