LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 02-04-2007, 07:56 PM   #1
Saith
LQ Newbie
 
Registered: Jun 2005
Location: Woodbridge, VA, USA
Distribution: Slackware 11.0 on one box, Xandros Deluxe 3.0/Windows XP dual boot on the other
Posts: 21

Rep: Reputation: 15
2.6.19 kernel upgrade boot error


Hey.

I've been attempting to update the kernel on my HP slimline s7500e from a stock Slackware 11.0 kernel to a custom 2.6.19 kernel. When I try to boot I get the following error:

VFS: Cannot open root device "803" or unknown-block(8,3)
Time: tsc clocksource has been installed.
Please append a correct "root=" boot option
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(8,3) TSC appears to be running slowly. Marking it as unstable.
Time: pit clocksource has been installed.

Information regarding my machine can be found here:

http://h10025.www1.hp.com/ewfrf/wc/d...3184123&dlc=en

And my root partition is on /dev/sda3 (the same as designated in my lilo.conf file)

lilo.conf:

# LILO configuration file
# generated by 'liloconfig'
#
# Start LILO global section
boot = /dev/sda
message = /boot/boot_message.txt
prompt
timeout = 1200
# Override dangerous defaults that rewrite the partition table:
change-rules
reset
# VESA framebuffer console @ 1024x768x64k
vga = 791
# 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
# Slack NEW begins
image = /boot/vmlinuz-2.6.19
root = /dev/sda3
label = Slack_2.6.19
read-only
# Slack NEW ends
#Slack OLD begins
image = /boot/vmlinuz-old
root = /dev/sda3
label = Slack_2.4
# Slack OLD ends

Any idea what I'm doing wrong?
 
Old 02-05-2007, 06:14 AM   #2
kremers78
Member
 
Registered: Nov 2006
Distribution: slackware 11.0
Posts: 40

Rep: Reputation: 15
looks like you didn't added a proper support for your "boot" disk in the kernel.
 
Old 02-05-2007, 01:01 PM   #3
Saith
LQ Newbie
 
Registered: Jun 2005
Location: Woodbridge, VA, USA
Distribution: Slackware 11.0 on one box, Xandros Deluxe 3.0/Windows XP dual boot on the other
Posts: 21

Original Poster
Rep: Reputation: 15
Thanks. Umm, what exactly does that mean?
 
Old 02-05-2007, 02:44 PM   #4
kremers78
Member
 
Registered: Nov 2006
Distribution: slackware 11.0
Posts: 40

Rep: Reputation: 15
Well, you have to add proper support for your file system in the kernel.
e.g. you have a reiserfs root partition, you have to add reiserfs support in your kernel, and since it's the root partition, you have to add static linked, not as a module.

If you are completely lost i suggest you to read some kernel build howto's. These should help you all the way through..
 
Old 02-05-2007, 04:45 PM   #5
Electro
LQ Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
Quote:
Originally Posted by kremers78
Well, you have to add proper support for your file system in the kernel.
e.g. you have a reiserfs root partition, you have to add reiserfs support in your kernel, and since it's the root partition, you have to add static linked, not as a module.

If you are completely lost i suggest you to read some kernel build howto's. These should help you all the way through..
Yes you are correct, but there is another way to boot up with out recompiling the kernel to include the software as built-in. Sometimes including software as built-in can break things or make the devices or features fail to work.

Use mkinitrd to create an initrd file that includes the require modules in order to boot up.

LILO is ok if you understand how to use it and you do not forget to run lilo every time you edit the config file. I prefer GRUB because it is a user space boot loader and you do not have to run GRUB every time you edit its config file (menu.lst).
 
Old 02-07-2007, 05:17 PM   #6
Guilherme
Member
 
Registered: Jul 2006
Posts: 83

Rep: Reputation: 15
well I had the same problem when I boot that kernel to.
I runed (sorry don't know how it is correct) the vi and edited lilo.conf, there was a stupid problem, I didn't insert the device, It was wrong. anyway I reboot it and the same problem occour... I read it carfully and I thoght it could be some mistake on menuconfig, I runed it and so I saw that ext3 is open...
maybe the root partition should be with native fs, If I'm not wrong, but... newbies make big errors... lol... well, you know ...
anyway, do I need to reestrocure all the disk, and so configure the new kernel again or there is an other way... maybe ... fdisk?

thanks ~

Guilherme
 
Old 02-07-2007, 08:44 PM   #7
Electro
LQ Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
Steps that I take to upgrade the kernel. Assuming the new kernel has been decompressed to /usr/src.
1) zcat /proc/config.gz > /usr/src/[new_kernel]/.config
2) cd /usr/src/[new_kernel
3) make oldconfig
4) make menuconfig
5) Double check options
6) Save and exit menu
7) make && make modules_install
8) cp /usr/src/[new_kernel]/System.map /boot/[new_kernel]-System.map
9) ln -sf /boot/[new_kernel]-System.map /boot/System.map
10) cp /usr/src/[new_kernel]/arch/i386/boot/bzImage /boot/kernel-[new_kernel]
11) cd /boot
12a) mkinitrd initrd-[new_kernel] [new_kernel]
12b) mkinitrd --with=[module] initrd-[new_kernel] [new_kernel]
12c) mkinitrd --with=[module] --with=[second_module] initrd-[new_kernel] [new_kernel]
13) Edit either /boot/grub/menu.lst or /etc/lilo

For LILO users, type /sbin/lilo to use the new changes.

Next time you reboot, go into runlevel 3 and recompile nVidia and ALSA for the new kernel. You will have to change the symbolic /usr/usr/linux to point to the new kernel version.
 
  


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 Audit Support Unavaible error when booting after kernel upgrade abefroman Red Hat 2 03-21-2013 08:32 AM
Keep getting error while trying to upgrade to 2.6 kernel M$ISBS Linux - Kernel 4 07-05-2006 01:10 AM
Box wont boot after kernel upgrade "Dump Card State Ends" error with scsi card abefroman Mandriva 0 03-25-2004 03:42 PM
Kernel upgrade error..... tinaa Linux - Software 3 07-21-2003 01:14 PM
kernel upgrade/boot error with grub c_gebers Linux - Software 2 07-09-2003 04:42 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 11:10 AM.

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