LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Kernel Panic with Ext2/Ext3 partition check (https://www.linuxquestions.org/questions/linux-general-1/kernel-panic-with-ext2-ext3-partition-check-310487/)

kewlemer 04-06-2005 04:39 PM

Kernel Panic with Ext2/Ext3 partition check
 
Hi All,

I am running FC3 with a 2.6.10 kernel without any problems.

I am trying to install a 2.4.21 kernel for an application I am working on. Initially I had problems compiling the 2.4 and after a lot of effort, I changed the gcc to the right version (2.96.3) and was able to compile the 2.4.21 kernel. I also had a problem with 'make install_modules' that version reqired old depmod and I had to create a symlink "ln -s /sbin/depmod /sbin/depmod.old". And finally it compiled and installed.

But when I try to boot this new 2.4.21, I get a kernel panic message saying:-

Code:

Freeing initrd memory: 37k freed
VFS: Mounted root(ext2 filesystem)
attempt to access beyond end of device
01:00: rw=0,want=4612,limit=4096
attempt to access beyond end of device
01:00: rw=0,want=4612,limit=4096
attempt to access beyond end of device
01:00: rw=0,want=4612,limit=4096
VFS: Cannot open root device "LABLE=/dev/hda1" or 00
Please append a correct "root=" boot option
Kernel panic: VFS: Unable to mount root fs on 00:00

I googled around and made changes to my grub.conf, without use. Here is the relavent part of my grub.conf:-
Code:

#boot=/dev/hda
default=0
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title Fedora Core (2.4.21)
        root (hd0,0)
        kernel /vmlinuz-2.4.21 ro root=LABEL=/dev/hda1
        initrd /initrd-2.4.21.img

Here is my relavent part of fstab :-
Code:

This file is edited by fstab-sync - see 'man fstab-sync' for details
LABEL=/              /                      ext3    defaults        1 1
LABEL=/boot      /boot              ext3    defaults        1 2
none                    /dev/pts          devpts  gid=5,mode=620  0 0
none                    /dev/shm        tmpfs  defaults        0 0
none                    /proc                proc    defaults        0 0
none                    /sys                  sysfs  defaults        0 0
LABEL=SWAP-hda3  swap    swap  defaults        0 0

Although, I have enabled ext3 support for the 2.4.21, the initial messages it throws up before kernel panic, tells it is seeing the hard disk as a ext2. I assume ext3 is ext2 with journaling support. So is this behaviour ok? Is this related to the above kernel panic message? Is the new 2.4.21 kernel simply not able to read my partitions that are in ext3? If so, why? Please help.

I cross checked the .config of 2.6 and the 2.4 for the IDE part and made sure both were the same. Here is the filesystem part of the .config of 2.4, in case it helps you in identifying the problem:-

Code:

# File systems
#
CONFIG_QUOTA=y
CONFIG_AUTOFS_FS=y
CONFIG_AUTOFS4_FS=y
CONFIG_EXT3_FS=y
CONFIG_JBD=y
CONFIG_JBD_DEBUG=y
CONFIG_FAT_FS=y
# CONFIG_MSDOS_FS is not set
CONFIG_VFAT_FS=y
# CONFIG_JFFS_FS is not set
# CONFIG_JFFS2_FS is not set
CONFIG_RAMFS=y
CONFIG_ISO9660_FS=y
CONFIG_VXFS_FS=y
CONFIG_NTFS_FS=y
# CONFIG_HPFS_FS is not set
CONFIG_PROC_FS=y
CONFIG_DEVPTS_FS=y
CONFIG_EXT2_FS=y

Although google gave many links to previous kernel panic messages, they were either due to differnt issues or they did not work for me. Your help will be greatly appreciated.

Thank you,
K

marghorp 04-06-2005 04:47 PM

Loose the LABEL in your kernel line (grub.conf).

It should be root=/dev/hda1.

Labels are used when refering to a harddisk with it's label.

kewlemer 04-06-2005 04:57 PM

Thanks so much, marghorp. It worked.

Now its failing on:-

Code:

Waring: unable to open an initial console.
Kernel panic: No init found. Try parring init= option to kernel

I guess I have to set some option in the .config. Please help.

Thank you,
K

kewlemer 04-06-2005 07:49 PM

An update..I ran a

/sbin/mkinitrd -v -f /boot/initrd/2.4.21.img 2.4.21

And now I am getting this message:

Code:

kjournald starting. Commit interval 5 seconds
EXT3-fs: mounted files system with ordered data mode.
pivotroot: pivot_root(/Sysroot,/Sysroot/initrd) failed: 2
umount /initrd/proc failed: 2
freeing unused kernel memory: 276k freed
Kernel panic: No init found. Try passing init= option to kernel.


Any pointers, folks?

Thanks,
K


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