LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 07-19-2006, 02:27 AM   #1
morphir
LQ Newbie
 
Registered: Jul 2006
Posts: 1

Rep: Reputation: 0
Newly compiled kernel gets error message


I googled for this, but I could not get a clear solution for my problem.
I have compiled a new kernel for my Slackware. Using 2.4.32 before I wanted to upgrade too 2.6.17.4

I did, and got following error when trying to boot the badboy:


Code:
VFS: Cannot open root device "301" or unknown-block(3,1)
Please append a correct "root=" boot option
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(3,1)

So, I use ext2 as my fileformat. And here are my output of cat /etc/lilo.conf:
Code:
boot="/dev/hda"
lba32
prompt
timeout="1200"
root="/dev/hda1"
vga="733"

image="/boot/bzImage-2.6.17.4"
label="Linux-2.6.17.4"
root="/dev/hda1"
read-only
optional
 
Old 07-19-2006, 05:34 AM   #2
The_Outlander
Member
 
Registered: Aug 2004
Location: Australia
Distribution: Slackware 12.1
Posts: 235

Rep: Reputation: 30
Hi,
The problem is your lilo.conf setup. But to cover all bases and ensure a successful boot I have included the complete setup after #make modules_install

This is my setup
Copy bzImage to /boot (you can name it Slack - less work editing files when upgrading a kernel). /dir = where ever your kernel source directory is located. eg. /home/user/kernel/linux-2.6.x.x in my case.

#cp /dir/linux-2.6.17.4/arch/i386/boot/bzImage /boot/bzImage-Slack (assumes that your system is x86).
#cp /dir/linux-2.6.17.4/System.map /boot/System.map
#cp /dir/linux-2.6.17.4/System.map /boot/System.map-Slack (give it a name - as above).
#ln -s -f /boot/System.map-Slack /boot/System.map (link your System.map files)
#ls -l /boot/System.map (output should be similar to this; lrwxrwxrwx 1 root root 22 2006-07-14 10:27 /boot/System.map -> /boot/System.map-Slack)(this step is not entirely necessary).

make an initrd.gz (follow Pat's howto supplied with the testing 2.6.13 kernel on your installation disc).

#pico /etc/lilo.conf (opens lilo.conf)

My entry looks like this. Adjust your root partition as required, and name if you gave it one, otherwise omit.

image=/boot/bzImage-Slack
initrd=/boot/initrd.gz
root=/dev/hda7
label=Slack
read-only
vga=792

Then run lilo as superuser.
#lilo

#reboot

Cheers, hope this works for you.

Last edited by The_Outlander; 07-19-2006 at 05:40 AM.
 
Old 07-19-2006, 12:26 PM   #3
Thetargos
Senior Member
 
Registered: Mar 2003
Location: Mexico City
Distribution: Fedora, Ubuntu & Mint
Posts: 1,679

Rep: Reputation: 45
When jumping from 2.4.x to 2.6.x, remember that 2.4.x used modules.conf for module declarations and options, in 2.6 this has to be modprobe.conf
 
Old 07-19-2006, 12:34 PM   #4
lockpicker
Member
 
Registered: Feb 2006
Location: Sikkim Manipal Institute of Technology, Sikkim
Distribution: Slackware 10.2
Posts: 80

Rep: Reputation: 15
i guess the problem could actually be simpler than it seems. You could have missed to compile the filesystem's support built into the kernel ( and not as a module) try doing that and recompiling. That just might help!
 
  


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
Troubleshooting Newly Compiled Kernel binarybob0001 Linux - General 2 11-20-2005 04:06 AM
keyboard won't work with newly compiled kernel dr_zayus69 Linux - Hardware 10 06-05-2005 11:23 AM
newly compiled kernel, boot fails class_struggle Linux - Newbie 2 07-30-2004 09:10 AM
Newly compiled kernel behaves as if it was the old one? grayFalcon Linux - Software 4 06-03-2004 04:52 AM
Problem with newly compiled 2.4.22 kernel Xero720 Slackware 2 09-06-2003 12:23 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 03:05 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