Koozali.org: home of the SME Server

fstab error on booting

Offline koshakis

  • **
  • 22
  • +0/-0
fstab error on booting
« 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
maze

Offline paradigm

  • *
  • 96
  • +0/-0
Re: fstab error on booting
« Reply #1 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....

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: fstab error on booting
« Reply #2 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

Offline koshakis

  • **
  • 22
  • +0/-0
Re: fstab error on booting
« Reply #3 on: September 06, 2009, 01:58:30 AM »
Hi Stefano

Yes ask for root password and yes I have backup.

Koshakis
maze

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: fstab error on booting
« Reply #4 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

Offline koshakis

  • **
  • 22
  • +0/-0
Re: fstab error on booting
« Reply #5 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
maze

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: fstab error on booting
« Reply #6 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

Offline koshakis

  • **
  • 22
  • +0/-0
Re: fstab error on booting
« Reply #7 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

maze