LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 04-18-2006, 02:40 PM   #1
NNP
Member
 
Registered: Nov 2004
Distribution: Debian/Ubuntu
Posts: 156

Rep: Reputation: 30
Kernel panic


Hey, I just compiled and installed kernel 2.6.16-2 and when i went to reboot and start it up lilo just goes blank and nothing happens. Thats fair enough, i assumed i must have messed up something silly in my .config file so i decided i'd just reboot in my old 2.4 kernel and sort it out. I rebooted and when i selected my 2.4 kernel i got this

Code:
VFS: Cannot open root device "301" or unknown block (3,1)
Please apppend correct "root=" boot option
Kernel panic - not synching - VFS could not mount root fs on (3,1)
I assumed i'd screwed up my lilo.conf so i set it back to what it was before and re-ran lilo. Im still getting the same thing though and its a bit frustrating. Everything is now the exact same as it was before my attempted kernel upgrade. Here is my lilo.conf

Quote:
LILO configuration file
# generated by 'liloconfig'
#
# Start LILO global section
boot = /dev/hda
message = /boot/boot_message.txt
prompt
timeout = 100
# Override dangerous defaults that rewrite the partition table:
change-rules
reset
# VESA framebuffer console @ 1024x768x256
vga = 773
# Normal VGA console
# vga = normal
# VESA framebuffer console @ 1024x768x64k
# vga=791
# VESA framebuffer console @ 1024x768x32k
# vga=790
# VESA framebuffer console @ 1024x768x256
# vga=773
# VESA framebuffer console @ 800x600x64k
# vga=788
# VESA framebuffer console @ 800x600x32k
# vga=787
# VESA framebuffer console @ 800x600x256
# vga=771
# VESA framebuffer console @ 640x480x64k
# vga=785
# VESA framebuffer console @ 640x480x32k
# vga=784
# VESA framebuffer console @ 640x480x256
# vga=769
# End LILO global section
# Windows bootable partition config begins
other = /dev/hda3
label = Windows
table = /dev/hda
# Windows bootable partition config ends

# Linux bootable partition config begins
image = /boot/vmlinuz
root = /dev/hda1
label = Linux
read-only
# Linux bootable partition config ends

# kernel 2.6.16-12
# image = /boot/bzImage-2.6.16-2
# root = /dev/hda1
# label = kernel_2.6.16-2
# read-only
# end kernel 2.6.16-1
and my partition table

Quote:
Command (m for help): p

Disk /dev/hda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 1 764 6136798+ 83 Linux
/dev/hda2 765 4728 31840830 5 Extended
/dev/hda3 * 4729 9728 40162500 7 HPFS/NTFS
/dev/hda5 765 904 1124518+ 82 Linux swap
/dev/hda6 905 4728 30716248+ 83 Linux
I've no idea whats going on so any help is appreciated.

Thank you,
NNP
 
Old 04-18-2006, 02:51 PM   #2
Alien_Hominid
Senior Member
 
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247

Rep: Reputation: 51
What type is your hdd? Is it SATA one?
 
Old 04-18-2006, 03:45 PM   #3
NNP
Member
 
Registered: Nov 2004
Distribution: Debian/Ubuntu
Posts: 156

Original Poster
Rep: Reputation: 30
nope its an IDE drive
 
Old 04-18-2006, 04:43 PM   #4
mdarby
Member
 
Registered: Nov 2004
Location: Columbus, Ohio
Distribution: Slackware-Current / Debian
Posts: 795

Rep: Reputation: 30
Did you compile in (*) support for your root filesystem? This is normally the cause of this error.
 
Old 04-18-2006, 04:54 PM   #5
NNP
Member
 
Registered: Nov 2004
Distribution: Debian/Ubuntu
Posts: 156

Original Poster
Rep: Reputation: 30
yes i did but why would that matter anyway?

The original kernel is the one thats giving that error message. The new one is just dying without saying a thing.

I wouldnt have thought installing the new kernel would have effected the old.
 
Old 04-18-2006, 10:53 PM   #6
Alien_Hominid
Senior Member
 
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247

Rep: Reputation: 51
Did you try to pass the correct boot option like root=/dev/hda1? Are you sure that vmlinuz link points to the correct kernel?
 
Old 04-19-2006, 06:46 AM   #7
NNP
Member
 
Registered: Nov 2004
Distribution: Debian/Ubuntu
Posts: 156

Original Poster
Rep: Reputation: 30
Yea, i tried passing root=/dev/hda1

I didnt check that vmlinuz points to the right place. I'll do that when i get home. I didnt think make or make install would change that though.
 
Old 04-19-2006, 07:53 AM   #8
Alien_Hominid
Senior Member
 
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247

Rep: Reputation: 51
make install could change, but i'm not sure about this.
 
Old 04-19-2006, 01:15 PM   #9
micder
Member
 
Registered: Aug 2003
Location: Terneuzen Netherlands
Distribution: Slack current
Posts: 126

Rep: Reputation: 16
To be certain:
Did you run lilo after compiling the enw kernel?
 
Old 04-19-2006, 03:34 PM   #10
tomdkat
Member
 
Registered: May 2003
Location: S.F. Bay Area
Distribution: Ubuntu 9.04 AMD64
Posts: 595

Rep: Reputation: 30
Ok, check this out:

Quote:
# Linux bootable partition config begins
image = /boot/vmlinuz
root = /dev/hda1
label = Linux
read-only
Quote:
Device Boot Start End Blocks Id System
/dev/hda1 1 764 6136798+ 83 Linux
/dev/hda2 765 4728 31840830 5 Extended
/dev/hda3 * 4729 9728 40162500 7 HPFS/NTFS
/dev/hda5 765 904 1124518+ 82 Linux swap
/dev/hda6 905 4728 30716248+ 83 Linux
Why is /dev/hda1 not marked as being bootable? Also, can you actually boot Windows from LILO like it's configured now? What version of Windows are you booting?

Peace...
 
Old 04-19-2006, 04:16 PM   #11
NNP
Member
 
Registered: Nov 2004
Distribution: Debian/Ubuntu
Posts: 156

Original Poster
Rep: Reputation: 30
yes, i can boot windows. Its XP.

As for the bootable flag, i didnt see that but now that i think about it that wasnt set before either and it didnt cause a problem.

In regard to the question about vmlinuz. Here is an ls -lF of my /boot as seen from knoppix

Quote:
root@ttyp0[boot]# ls -lF
total 6876
lrwxrwxrwx 1 root root 37 Apr 5 17:22 README.initrd -> /usr/doc/mkinitrd-1.0.1/README.initrd
-rw-r--r-- 1 root root 717568 Apr 12 14:52 System.map
-rw-r--r-- 1 root root 717568 Apr 12 14:56 System.map-2.6.16-2
-rw-r--r-- 1 root root 608033 Jun 5 2005 System.map-ide-2.4.31
lrwxrwxrwx 1 root root 21 Apr 5 17:22 System.old -> System.map-ide-2.4.31-rw-r--r-- 1 root root 512 Apr 5 17:33 boot.0300
-rw-r--r-- 1 root root 196 Apr 10 14:31 boot_message.txt
-rw-r--r-- 1 root root 1173018 Apr 12 14:56 bzImage-2.6.16-2
lrwxrwxrwx 1 root root 17 Apr 5 17:22 config -> config-ide-2.4.31
-rw-r--r-- 1 root root 41760 Jun 5 2005 config-ide-2.4.31
-rw-r--r-- 1 root root 5032 May 21 2004 diag1.img
-rw------- 1 root root 29696 Apr 18 20:15 map
-rw-r--r-- 1 root root 1173018 Apr 12 14:52 vmlinuz
-rw-r--r-- 1 root root 1256566 Jun 5 2005 vmlinuz-ide-2.4.31
-r-------- 1 root root 1256566 Apr 5 17:32 vmlinuz.old
root@ttyp0[boot]#
I've no idea why there is a vmlinuz and a vmlinuz-ide-2.4.31. Is that the default in slackware?


micder: cant remember if i ran lilo after compiling the new kernel but i've done it several times since.

Last edited by NNP; 04-19-2006 at 04:18 PM.
 
Old 04-19-2006, 04:41 PM   #12
tomdkat
Member
 
Registered: May 2003
Location: S.F. Bay Area
Distribution: Ubuntu 9.04 AMD64
Posts: 595

Rep: Reputation: 30
The only thing I can think of is some kind of partition hiding trickery going on, but I doubt that can be it. You got me.

Peace...
 
Old 04-19-2006, 04:42 PM   #13
NNP
Member
 
Registered: Nov 2004
Distribution: Debian/Ubuntu
Posts: 156

Original Poster
Rep: Reputation: 30
well i set the image= back to vmlinuz-ide-2.4.31 and i can now boot my 2.4 kernel again. It appears the new vmlinuz must be the 2.6 kernel. Odd.

Anywho, i now have to figure out why the hell the 2.6 kernel wont boot. Fun.
 
Old 04-19-2006, 10:24 PM   #14
Alien_Hominid
Senior Member
 
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247

Rep: Reputation: 51
I'm around 99% sure that this was caused by make install, which you did. It removed ide-2.4 line and added vmlinuz line after copying bzImage into /boot/vmlinuz. Then you added your 2.6 kernel normal way.
 
Old 04-20-2006, 07:55 AM   #15
NNP
Member
 
Registered: Nov 2004
Distribution: Debian/Ubuntu
Posts: 156

Original Poster
Rep: Reputation: 30
Any suggestions on what could be wrong with the 2.6 kernel?

Is there anything i should watch out for when upgrading from 2.4 to 2.6 on slackware?
 
  


Reply

Tags
build, kernel, symlinks


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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are 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


All times are GMT -5. The time now is 03:31 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
Open Source Consulting | Domain Registration