LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-12-2003, 12:20 AM   #1
tmatsui
LQ Newbie
 
Registered: Aug 2003
Posts: 2

Rep: Reputation: 0
kernel panic


Hi,

I have a RedHat 7.2 PC. I updated the kernel from 2.4.7-10 to 2.4.20-19.7 through the RedHat Network (RHN) service automatically. Then I got the following error messages and could not boot it with the new kernel.

kmod: failed to exec /sbin/modprobe -s -k block-major-8, errono=2
VFS: cannot open root device "802" or 08:02
Please append a correct "root=" boot option
kernel panic: VFS: Unable to mount root fs on 08:02

At the moment, I can boot it with the original kernel (when booting, I just select "Linux.bak"). The file of /boot/initrd-2.4.20-19.7(smp) was not created by the RHN updating.

I greatly appreciate your advice. Thank you very much.

------ /etc/lilo.conf --------
prompt
timeout=50
default=linux
boot=/dev/sda
map=/boot/map
install=/boot/boot.b
message=/boot/message
linear

image=/boot/vmlinuz-2.4.7-10smp
initrd=/boot/initrd-2.4.7-10smp
label=linux.bak
read-only
root=/dev/sda2
append="hdc=ide-scsi"

image=/boot/vmlinuz-2.4.7-10
initrd=/boot/initrd-2.4.7-10
label=linux-up.bak
read-only
root=/dev/sda2
append="hdc=ide-scsi"

image=/boot/vmlinuz-2.4.20-19.7
label=linux-up
root=/dev/sda2
append="hdc=ide-scsi"
read-only

image=/boot/vmlinuz-2.4.20-19.7smp
label=linux
root=/dev/sda2
append="hdc=ide-scsi"
read-only
---------EOF of /etc/lilo.conf ----------

-------- /boot/grub/grub.conf ---------
default=4
timeout=10
splashimage=(hd0,0)/grub/splash.xpm.gz
title Red Hat Linux (2.4.20-19.7smp)
root (hd0,0)
kernel /vmlinuz-2.4.20-19.7smp ro root=/dev/sda2 hdc=ide-scsi
title Red Hat Linux (2.4.20-19.7)
root (hd0,0)
kernel /vmlinuz-2.4.20-19.7 ro root=/dev/sda2 hdc=ide-scsi
title Red Hat Linux (2.4.20-18.7smp)
root (hd0,0)
kernel /vmlinuz-2.4.20-18.7smp ro root=/dev/sda2 hdc=ide-scsi
title Red Hat Linux (2.4.20-18.7)
root (hd0,0)
kernel /vmlinuz-2.4.20-18.7 ro root=/dev/sda2 hdc=ide-scsi
title Red Hat Linux (2.4.7-10smp)
root (hd0,0)
kernel /vmlinuz-2.4.7-10smp ro root=/dev/sda2 hdc=ide-scsi
initrd /initrd-2.4.7-10smp
title Red Hat Linux-up (2.4.7-10)
root (hd0,0)
kernel /vmlinuz-2.4.7-10 ro root=/dev/sda2 hdc=ide-scsi
initrd /initrd-2.4.7-10

--------- EOF of /boot/grub/grub.conf --------------

Last edited by tmatsui; 08-12-2003 at 09:23 AM.
 
Old 08-12-2003, 09:42 PM   #2
vexer
Member
 
Registered: Jan 2003
Location: Sudbury Ontario, Canada
Distribution: Slackware
Posts: 388

Rep: Reputation: 30
I would suggest reloading grub?

With lilo, (since I only use that and I assume
it would be the same with Grub) you need to
run the program so it recognises your new kernel.
Not sure how it's done with grub, but typing
/sbin/lilo at prompt is required before rebooting and
starting with a new kernel.


-vexer
 
Old 08-13-2003, 12:44 AM   #3
tmatsui
LQ Newbie
 
Registered: Aug 2003
Posts: 2

Original Poster
Rep: Reputation: 0
Hi Vexer,

Thank you very much for your reply. I tried to execute /sbin/lilo and rebooting, but the situation was the same.
I may need to make /boot/initrd-2.4.20-19.7smp and add a line "initrd=/boot/initrd-2.4.20-19.7smp" to /etc/lilo.conf. However, /sbin/mkinitrd was not working as follows.

% /sbin/mkinitrd /boot/initrd-2.4.20-19.7 2.4.20-19.7
No module pti_st found for kernel 2.4.20-19.7

"pti_st" is defined in /etc/modules.conf as "alias scsi_hostadapter pti_st", but there is no definition in /boot/modules-info.2.4.20-19.7. In /var/log/messages, there is the following lines.

---------- lines from /var/log/messages -------------
Aug 13 14:34:24 RH7.2 kernel: Kernel command line: auto BOOT_IMAGE=linux.bak ro root=802 BOOT_FILE=/boot/vmlinuz-2.4.7-10smp hdc=ide-scsi
Aug 13 14:34:24 RH7.2 kernel: ide_setup: hdc=ide-scsi
Aug 13 14:34:32 RH7.2 kernel: SCSI subsystem driver Revision: 1.00
Aug 13 14:34:32 RH7.2 kernel: scsi0 : PROMISE SuperTrak SX6000 Driver
Aug 13 14:34:32 RH7.2 kernel: Type: Direct-Access ANSI SCSI revision: 02
Aug 13 14:34:32 RH7.2 kernel: Attached scsi disk sda at scsi0, channel 0, id 0, lun 0
Aug 13 14:34:32 RH7.2 kernel: SCSI device sda: 714843648 512-byte hdwr sectors (366000 MB)
Aug 13 14:34:32 RH7.2 kernel: scsi1 : SCSI host adapter emulation for IDE ATAPI devices
Aug 13 14:34:32 RH7.2 kernel: Type: CD-ROM ANSI SCSI revision: 02
Aug 13 14:39:45 RH7.2 kernel: Attached scsi CD-ROM sr0 at scsi1, channel 0, id 0, lun 0
Aug 13 14:39:45 RH7.2 kernel: sr0: scsi3-mmc drive: 32x/32x writer cd/rw xa/form2 cdda tray
--------------------------------------------------------------

If you have some idea about it, I'm happy to hear it.
Thank you again.
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Kernel 2.4 in Zipslack (Waring: unable to open an initial console | Kernel Panic...) kurtamos Linux - General 2 05-10-2006 12:58 PM
kernel panic: try passing init= option to kernel...installation with Red Hat 9 kergen Linux - Hardware 1 09-30-2004 03:28 AM
Kernel panic puts me in a panic theeeg Linux - Software 2 07-31-2004 04:46 PM
kernel panic (narius panic) narius Linux - Newbie 3 06-20-2002 03:56 PM
Kernel panic making me panic! Linux_N0oby Linux - Software 19 05-29-2002 12:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:45 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration