LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
LinkBack Search this Thread
Old 11-22-2004, 03:13 PM   #1
astender
LQ Newbie
 
Registered: Nov 2004
Location: Tennessee
Distribution: FC3, SuSE10,RHEL4 & LFS6.0
Posts: 29

Rep: Reputation: 15
First kernel build and getting boot errors


Hi All,
I am new to this site. I have been a Unix Admin for almost 20 years but other than buying or downloading a Linux distribution and using it I am fairly new to Linux. I'm going to give you the background to the issue I have because I think it may be relevant to my problem. I downloaded FC2 which produced a 2.6.5-1.358 kernel with kernel source. I have gotten a number of updates from Fedora which has upgraded my kernel to 2.6.6-1.435.2.3. For some reason that did not include the kernel source. I used FC2 for quite a while without ever configuring sound. I want to start using sound so I tried to configure it but I was unable to get the automatic configuring apps to get my system to play from the CD. I decided to try updating my drivers to the latest ALSA but when I went to compile the latest code it said I needed the source for the kernel I was running. I decided to go to kernel.org and get the latest stable kernel code and compile it. I pulled down the 2.6.9 code and compiled it without any major problems but when I try to boot it I get the following errors to my console. Now mind you, I have a running 2.6.6-1.435.2.3 kernel from Fedora. I'm using grub for my boot loader and will include the grub.conf file with this post. Doing a make install in the source directory created the entry I have in grub.conf and the entry for my running kernel works. So having brought you up to how I got here, I will try to create correctly what I get on my console. I wish there was a way to dump that to a file so I could just paste it into this post.

Booting 'Kernel.org (2.5.9n)'
root (hd1,0)
Filesystem type is ext2fs, partition type 0x83
kernel /vmlinuz-2.6.9n ro root-LABEL=/ rhgb quiet psmouse.proto=bare
[Linux-bzImage, setup=0x1400, size=0x19ba36]
initrd /initrd-2.6.9n.img
[Linux-initrd @ 0xdfc3000, 0x1ceb2 bytes]
Uncompressing linux ... OK, Booting Kernel.
Buffer I/O Error on device hda, logical block 39118272
Buffer I/O Error on device hda, logical block 39118273
Buffer I/O Error on device hda, logical block 39118274
Buffer I/O Error on device hda, logical block 39118272
Buffer I/O Error on device hda, logical block 39118273
Buffer I/O Error on device hda, logical block 39118274
Buffer I/O Error on device hdb, logical block 156296384
Buffer I/O Error on device hdb, logical block 156296384
Red Hat nash version 3.5.22 Starting
mkrootdev: label / not found
mount: error 2 mounting ext3
pivotroot: pivot_root(/sysroot, /sysroot/initrd) failed: 2
umount /initrd/proc failed: 2
kernel panic - not syncing: no init found. Try passing init= option to kernel.
====================================================
Some questions come to mind as I look at this. First why does it talk about the file system being ext2fs up top and getting an error trying to mount an ext3? Why is it even looking at hda? The hda contains a Windows XP installation (please, no stones, I need it for work). The linux is loaded on hdb. The boot partition is the first on the disk root (/) is second. At any rate this is about all I can think of to give you. If you have any other questions ask. I will include the grub.conf below. I have googled for any information on this particular error and all the responses I see talk about the grub or lilo conf files pointing to the wrong disk. Again I'll say the other linux kernel in my grub.conf file works fine. I'm using it to post this message. Any help would be greatly appreciated. I am totally out of ideas. Thanks in advance.

========================================================
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd1,0)
# kernel /vmlinuz-version ro root=/dev/hdb2
# initrd /initrd-version.img
#boot=/dev/hda
default=1
timeout=10
splashimage=(hd1,0)/grub/splash.xpm.gz
title Kernel.org (2.6.9n)
root (hd1,0)
kernel /vmlinuz-2.6.9n ro root=LABEL=/ rhgb quiet psmouse.proto=bare
initrd /initrd-2.6.9n.img
title Fedora Core (2.6.6-1.435.2.3)
root (hd1,0)
kernel /vmlinuz-2.6.6-1.435.2.3 ro root=LABEL=/ rhgb quiet psmouse.proto=bare
initrd /initrd-2.6.6-1.435.2.3.img
#title Fedora Core (2.6.5-1.358)
# root (hd1,0)
# kernel /vmlinuz-2.6.5-1.358 ro root=LABEL=/ rhgb quiet
# initrd /initrd-2.6.5-1.358.img
title Windows-XP
root (hd0,1)
makeactive
chainloader +1
 
Old 11-22-2004, 03:20 PM   #2
marghorp
Senior Member
 
Registered: Jan 2004
Location: Slovenia
Distribution: Slackware 10.1, SLAX to the MAX :)
Posts: 1,040

Rep: Reputation: 45
mkrootdev: label / not found

comes from

kernel /vmlinuz-2.6.9n ro root-LABEL=/ rhgb quiet psmouse.proto=bare

Try changing this into kernel /vmlinuz-2.6.9n ro root=/dev/hdb2 rhgb quiet psmouse.proto=bare

This might help you some. Use emacs or any other editor to change the contents of the grub.conf file and change this line. Also, what filesystems do you use for Linux (ext2(boot) and ext3(root)?)

Good luck!
 
  


Reply


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Boot process stops after custom kernel build FuzzyDuc Debian 3 11-28-2004 06:47 AM
HP PSC2210 kernel boot errors robert_edwards Red Hat 0 04-17-2004 06:21 PM
Build Errors. sethgeekx86 Slackware 3 04-01-2004 06:47 PM
boot errors with new debian kernel shorton Linux - General 1 12-23-2003 05:25 PM
help me with kernel-2.6-0-test7 - boot errors dARkHunTEr Linux - Software 0 10-09-2003 01:04 PM


All times are GMT -5. The time now is 07:08 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 Google+: linuxquestions
Open Source Consulting | Domain Registration