You are not logged in.

#1 2010-02-07 20:09:19

frojnd
Member
Registered: 2008-09-20
Posts: 125

[Solved] Filesystem check failed

I had this problem before. When booting arch server, after modules are loaded I get message:

/dev/sdb3:
The superblock could not be read or does not describe a correct ext2 filesystem. If the device is vaild 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: etfsck -b 8193 <device>

[i]Next lie is[/i] [FAIL]

[i]After fail is:[/i]

***************** FILESYSTEM CHECK FAILED ***********************************

Please repair manually and reboot. Note that the root file system is currently mounted read-only. Ti remount it read-write type: mount -t -o remount,rw /
When you exit the maintenance shell the system will reboot automatically.

[i]After this nice stars there is also:[/i] Give root password for maintenance (or type Control-D to continue):

A couple of times I pressed ^d and the system rebooted. And it was able to get on it's feet without messages described above. But since I had to reboot server more than just this time, those mssages became annoying. So I decided to check filesystems. I put in live cd. and in a shell wrote fsck.ext4 /dev/hda3 NOTE livedistro recognized /dev/sdb as /dev/sda. (roott is on /dev/sdb3 when in arch) I got message that the filesystem is clean. I also fsck.ext2 /dev/hda1 (on arch /boot is on /dev/sdb1 when in arch) I also got clean. Hm... Interesting. Also while in live distro I noticed with fdisk -l that there were /dev/sda1-6 and that /dev/ext4 was as extended. When in arch I only have /dev/sdb1-5 /dev/sdb1 is as mentioned before /boot, /dev/sdb2 is swap, /dev/sdb3 is /, /dev/sdb4 is /home /dev/sdb5 is /data

After I've checked with fsck in live and rebooted I got again message that filesystem check failed.
What do I have to do to prevent this? Do I have to type when in Give root password for maintenance (or type Control-D to continue): e2fsck -b 8193 /dev/sdb3 ?

Last edited by frojnd (2010-02-07 21:52:17)

Offline

#2 2010-02-07 20:16:51

frojnd
Member
Registered: 2008-09-20
Posts: 125

Re: [Solved] Filesystem check failed

What is bugging me here is this line

/dev/sdb3:
The superblock could not be read or does not describe a correct ext2 filesystem. If the device is vaild and it really contains an ext2 filesystem (and not swap or ufs or something else)...

/dev/sdb3 in my case is ext4 formatted.

Offline

#3 2010-02-07 20:35:02

n0dix
Member
Registered: 2009-09-22
Posts: 956

Re: [Solved] Filesystem check failed

Are you sure, check your fdisk?

Offline

#4 2010-02-07 20:45:37

frojnd
Member
Registered: 2008-09-20
Posts: 125

Re: [Solved] Filesystem check failed

/etc/fstab:

/dev/sda1 /mnt/p2p ext4 defaults 0 2
/dev/sdb1 /boot ext2 defaults 0 1
/dev/sdb2 /swap swap defaults 0 0
/dev/sdb3 / ext4 defaults 0 1
/dev/sdb5 /home ext4 defaults 0 1
/dev/sdb6 /podatki ext4 defaults 0 1

In live CD I checked with cfdisk /dev/hda and I got something interesting
sda1 prmary Linux ext2
sda2 primary Linux
sda3 primary Linux ext3
sda5 Logical Linux ext3
sda6 Logical Linux ext3

and cfdisk for /dev/hdb
sdb1 Primary Linux ext3

I'm really confused. I'm 1000% sure I did make it as ext4.

Offline

#5 2010-02-07 21:30:56

davidm
Member
Registered: 2009-04-25
Posts: 371

Re: [Solved] Filesystem check failed

Nevermind I misread.  I was thinking perhaps the order was being switched on the drives and this was causing problems and was going to suggest using UUIDs.  However, I doubt this is your issue?

Edit: you already fixed it. Good smile

Last edited by davidm (2010-02-07 21:54:45)

Offline

#6 2010-02-07 21:51:41

frojnd
Member
Registered: 2008-09-20
Posts: 125

Re: [Solved] Filesystem check failed

I changed /dev/sdXY to uuids in /etc/fstab and now everything is fine. http://wiki.archlinux.org/index.php/Per … ice_naming
Looks like /dev/sdXY weren't reliable.

Offline

Board footer

Powered by FluxBB