LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 12-28-2003, 04:42 PM   #1
Potentials
LQ Newbie
 
Registered: May 2003
Posts: 14

Rep: Reputation: 0
Errors during filesystem check with one kernel while no errors with other kernel


While booting with old kernel 2.2.12 I get the following message

Warning...fsck.ext3 for device /dev/hda6 exited with signal 4 [FAILED]

/dev/hda6 is my root partition, when dropped to shell and running fsck with no arguments I get the same message:

fsck.ext3 for device /dev/hda6 exited with signal 4

I can browse the root partition using cd with no problems

checking man page of fsck one finds that signal 4 stands for filesystem errors that are left uncorrected.

Having no problem booting using kernel 2.4, waiting for help!
 
Old 12-28-2003, 04:44 PM   #2
Potentials
LQ Newbie
 
Registered: May 2003
Posts: 14

Original Poster
Rep: Reputation: 0
One thing, before u ask, the kernel 2.2.20 has ext3 driver so that's not the problem
 
Old 12-28-2003, 09:10 PM   #3
jailbait
Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Wheezy, Debian Jessie
Posts: 7,533

Rep: Reputation: 178Reputation: 178
"/dev/hda6 is my root partition, when dropped to shell and running fsck with no arguments I get the same message:

fsck.ext3 for device /dev/hda6 exited with signal 4"

fsck should not be run against a mounted file system. If you do then you will get error messages. These errors may only be the fact that /dev/hda6 was not dismounted cleanly. So this is not a valid test of /dev/hda6.

"I can browse the root partition using cd with no problems"

If you boot a rescue CD and fsck.ext3 runs clean against /dev/hda6, this is a valid test that /dev/hda6 is clean.


"Having no problem booting using kernel 2.4"

This is a valid test that /dev/hda6 is clean.

"While booting with old kernel 2.2.12 I get the following message

Warning...fsck.ext3 for device /dev/hda6 exited with signal 4 [FAILED]"

This is a valid test that /dev/hda6 is corrupt.

Looking over the evidence I would say that the problem lies in kernel 2.2.12, not /dev/hda6. I don't know what the problem is and you have already eliminated one possibility.

___________________________________
Be prepared. Create a LifeBoat CD.
http://users.rcn.com/srstites/LifeBo...home.page.html

Steve Stites
 
Old 12-29-2003, 09:45 AM   #4
Potentials
LQ Newbie
 
Registered: May 2003
Posts: 14

Original Poster
Rep: Reputation: 0
I've downloaded and installed another kernel 2.2.12 to make sure that the kernel I'm using wasn't corrupted or so but I've got the same error message.

So I tried the follwing
my /etc/fstab was as follows:
=========================================================
LABEL=/1 / ext3 defaults 1 1
none /dev/pts devpts gid=5,mode=620 0 0
LABEL=/home1 /home ext3 defaults 1 2
none /proc proc defaults 0 0
none /dev/shm tmpfs defaults 0 0
/dev/hda5 swap swap defaults 0 0
/dev/cdrom /mnt/cdrom udf,iso9660 noauto,owner,kudzu,ro 0 0
=========================================================
but I changed it to the following:
=========================================================
LABEL=/1 / ext3 defaults 0 0
none /dev/pts devpts gid=5,mode=620 0 0
LABEL=/home1 /home ext3 defaults 0 0
none /proc proc defaults 0 0
none /dev/shm tmpfs defaults 0 0
/dev/hda5 swap swap defaults 0 0
/dev/cdrom /mnt/cdrom udf,iso9660 noauto,owner,kudzu,ro 0 0
=========================================================
I thought that this will prevent filesystem checks during booting but it didn't, I still get the damn error.


BTW , I'm running Fedora Core 1 and this is my grub.conf
=========================================================
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You do not have a /boot partition. This means that
# all kernel and initrd paths are relative to /, eg.
# root (hd0,5)
# kernel /boot/vmlinuz-version ro root=/dev/hda6
# initrd /boot/initrd-version.img
#boot=/dev/hda
default=1
timeout=10
splashimage=(hd0,5)/boot/grub/splash.xpm.gz
title Fedora Core (2.4.22-1.2115.nptl)
root (hd0,5)
kernel /boot/vmlinuz-2.4.22-1.2115.nptl ro root=LABEL=/1 rhgb
initrd /boot/initrd-2.4.22-1.2115.nptl.img
title Windows
rootnoverify (hd0,0)
chainloader +1
title Fedora Core (2.2.12)
root (hd0,5)
=========================================================
 
Old 12-29-2003, 09:58 AM   #5
jailbait
Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Wheezy, Debian Jessie
Posts: 7,533

Rep: Reputation: 178Reputation: 178
For each of your two kernels: Is ext3 support compiled into the bootable kernel or is it a loadable module in /lib/modules ?

___________________________________
Be prepared. Create a LifeBoat CD.
http://users.rcn.com/srstites/LifeBo...home.page.html

Steve Stites
 
Old 12-29-2003, 10:57 AM   #6
Potentials
LQ Newbie
 
Registered: May 2003
Posts: 14

Original Poster
Rep: Reputation: 0
here's the files found in /lib/modules/2.2.12-20/fs

======================================================
autofs.o
binfmt_aout.o
binfmt_java.o
binfmt_misc.o
coda.o
fat.o
hfs.o
hpfs.o
lockd.o
minix.o
msdos.o
ncpfs.o
nfsd.o
nfs.o
nls_cp437.o
nls_cp737.o
nls_cp775.o
nls_cp850.o
nls_cp852.o
nls_cp855.o
nls_cp857.o
nls_cp860.o
nls_cp861.o
nls_cp862.o
nls_cp863.o
nls_cp864.o
nls_cp865.o
nls_cp866.o
nls_cp869.o
nls_cp874.o
nls_iso8859-14.o
nls_iso8859-15.o
nls_iso8859-1.o
nls_iso8859-2.o
nls_iso8859-3.o
nls_iso8859-4.o
nls_iso8859-5.o
nls_iso8859-6.o
nls_iso8859-7.o
nls_iso8859-8.o
nls_iso8859-9.o
nls_koi8-r.o
romfs.o
smbfs.o
sysv.o
ufs.o
umsdos.o
vfat.o
======================================================

can't find any ext3.o or ext2.o in /lib/modules/2.2.12-20/fs

as with the Fedora Core 1 kernel (the kernel 2.4.22 that works fine)
/lib/modules/2.4.22-1.2115.nptl/kernel/fs/ext3 contains ext3.o
 
Old 12-29-2003, 11:41 AM   #7
Edward78
Member
 
Registered: Jul 2002
Distribution: OpenSuSE 11
Posts: 441

Rep: Reputation: 30
Just use the later version.
 
Old 12-29-2003, 12:19 PM   #8
Potentials
LQ Newbie
 
Registered: May 2003
Posts: 14

Original Poster
Rep: Reputation: 0
I need the old kernel because the driver of my modem is closed source and the binaries I've got are compiled against the old kernel 2.2.12
 
Old 12-29-2003, 03:12 PM   #9
jailbait
Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Wheezy, Debian Jessie
Posts: 7,533

Rep: Reputation: 178Reputation: 178
"as with the Fedora Core 1 kernel (the kernel 2.4.22 that works fine)
/lib/modules/2.4.22-1.2115.nptl/kernel/fs/ext3 contains ext3.o"

The kernel needs the file system module immediately at boot so 2.4.22-1.2115 must be loading ext3 with initrd during boot.

"can't find any ext3.o or ext2.o in /lib/modules/2.2.12-20/fs"

Your kernel must have the root filesystem support compiled into the bootable kernel. The question is, does it have ext2 or ext3 or both? I have seen other threads where people say that they can access an ext3 filesytem using ext2. Perhaps your 2.2.12 kernel has only ext2 support, finds an unrecognized filesystem on /dev/hda6, reports an error, and then works fine using ext2.

You already said that kernel 2.2.12 has ext3 drivers. Could you double check that? Maybe it is getting by using ext2 to support ext3. See if you can find the config file that Red Hat (or whichever distribution it is) used to compile kernel 2.2.12-20.


___________________________________
Be prepared. Create a LifeBoat CD.
http://users.rcn.com/srstites/LifeBo...home.page.html

Steve Stites
 
Old 12-29-2003, 05:29 PM   #10
Potentials
LQ Newbie
 
Registered: May 2003
Posts: 14

Original Poster
Rep: Reputation: 0
The same kernel (the very same binaries) worked fine on RH9 and MDK 9.2 and had no problems with the same partition ( same format) so its most probably something with the configuration.
 
Old 12-29-2003, 06:56 PM   #11
jailbait
Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Wheezy, Debian Jessie
Posts: 7,533

Rep: Reputation: 178Reputation: 178
Whenever anyone compiles a kernel they first have to set up a config file. This config file describes what routines are included in the kernel, what routines are excluded, and whether routines are to be included in the bootable kernel or in the loadable modules in /lib/modules.

Red Hat includes the config file used to compile a kernel in their kernel rpms. I don't know for sure where the config file is installed on your system. It is probable in /boot but it may be somewhere in the /usr/src tree. So see if you can find a file called something like config-2.2.12-20. Open config-2.2.12-20 with a text editor and search for ext2 and ext3. You should find several variable names which contain ext2 or ext3. These variables will have values set to y, n, or m. y means to compile a module into the bootable kernel. n means to exclude the module. m means to compile the module into /lib/modules/2.2.12-20/. You have already proven that neither ext2 nor ext3 is in lib/modules/2.2.12-20/. By checking config-2.12-20 you will prove whether or not ext2 and/or ext3 are compiled into the bootable kernel.

In my /boot/config-2.4.22-1.2115.nptl config file I have:
CONFIG_EXT2_FS=y
CONFIG_EXT3_FS=m
CONFIG_EXT3_INDEX=y
CONFIG_EXT3_FS_XATTR=y
CONFIG_EXT3_FS_XATTR_SHARING=y
CONFIG_EXT3_FS_XATTR_USER=y
CONFIG_EXT3_FS_POSIX_ACL=y

Which says that I have ext2 compiled into my bootable kernel and ext3 compiled into /lib/modules.

So you should look for similar variable settings in your config-2.2.12-20.

___________________________________
Be prepared. Create a LifeBoat CD.
http://users.rcn.com/srstites/LifeBo...home.page.html

Steve Stites

Last edited by jailbait; 12-29-2003 at 06:58 PM.
 
Old 12-30-2003, 04:24 AM   #12
Potentials
LQ Newbie
 
Registered: May 2003
Posts: 14

Original Poster
Rep: Reputation: 0
can't find a config-2.2.12-20
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
kernel I/O errors linmix Fedora 3 10-31-2005 06:38 AM
Kernel Errors Stomatella Linux - Newbie 1 11-25-2004 02:50 PM
2.6.5 kernel errors LavaDevil94 Linux - Software 34 04-06-2004 08:27 PM
kernel 2.6.1 and errors shellcode Slackware 1 01-25-2004 11:08 PM
Unclean shutdown from power failure... filesystem check errors macisaac Linux - General 4 12-26-2003 07:50 PM


All times are GMT -5. The time now is 05:59 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration