LinuxQuestions.org
Visit Jeremy's Blog.
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 06-09-2006, 10:30 AM   #1
tripmix
Member
 
Registered: Nov 2004
Location: Norway
Distribution: Debian mostly
Posts: 103

Rep: Reputation: 16
New kernel boot failure.


I just upgraded from Debian stable to testing and found out I needed a new kernel to. I compiled and installed in the normal debian way useing my old config file.

I get this error on boot:

VFS: Cannot open root device "hda2" or unknown-block(0,0)
Please append a correct "root=" boot option
Kernel panic - not syncing: VFS: unable to mount root fs on unknown-block(0,0)

This is my grub menu file:

title Debian GNU/Linux, kernel 2.6.15
root (hd0,1)
kernel /boot/vmlinuz-2.6.15 root=/dev/hda2 ro
savedefault
boot

title Debian GNU/Linux, kernel 2.6.15 (recovery mode)
root (hd0,1)
kernel /boot/vmlinuz-2.6.15 root=/dev/hda2 ro single
savedefault
boot

title Debian GNU/Linux, kernel 2.6.8-2-386
root (hd0,1)
kernel /boot/vmlinuz-2.6.8-2-386 root=/dev/hda2 ro
initrd /boot/initrd.img-2.6.8-2-386
savedefault
boot

title Debian GNU/Linux, kernel 2.6.8-2-386 (recovery mode)
root (hd0,1)
kernel /boot/vmlinuz-2.6.8-2-386 root=/dev/hda2 ro single
initrd /boot/initrd.img-2.6.8-2-386
savedefault
boot

Kernel 2.6.8 boots fine, but 2.6.15 fails. File says to boot on (0,1) while boot looks like it tries to boot at (0,0) for the 2.6.15 kernel.

Sure hope someone here knows whats going on, cuz I sure can't figgure it out.

Thanks for any help.

PS: don't know if this is important but my device.map has this entery:
(hd0) /dev/hda
 
Old 06-09-2006, 10:35 AM   #2
kaz2100
Senior Member
 
Registered: Apr 2005
Location: Penguin land, with apple, no gates
Distribution: Debian testing woody(32) sarge etch lenny squeeze(+64) wheezy jessie
Posts: 1,430

Rep: Reputation: 83
Did you use your old "config"?

If yes, run
Code:
make oldconfig
then install new kernel, then see what happens.

If no, wait until some other penguin helps.
 
Old 06-09-2006, 10:56 AM   #3
tripmix
Member
 
Registered: Nov 2004
Location: Norway
Distribution: Debian mostly
Posts: 103

Original Poster
Rep: Reputation: 16
I asume I have to run make oldconfig then recompile the kernel...?
Like:
make-kpkg clean
make oldconfig
make-kpkg --revision=custom2.6.15 kernel_image

Right..?
 
Old 06-09-2006, 11:14 AM   #4
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware-current, Cross Linux from Scratch, Gentoo
Posts: 2,701
Blog Entries: 1

Rep: Reputation: 219Reputation: 219Reputation: 219
You may want to edit your grub.conf to include the initrd line for your new kernel.
 
Old 06-09-2006, 11:29 AM   #5
tripmix
Member
 
Registered: Nov 2004
Location: Norway
Distribution: Debian mostly
Posts: 103

Original Poster
Rep: Reputation: 16
Good point... can't belive I didnt notice that...
Anyway there is no initrd.img for my new kernel in /boot
What could have gone wrong? Well, atleast now I have something to work with.
 
Old 06-09-2006, 11:59 AM   #6
Beads
Member
 
Registered: Nov 2004
Location: Missouri
Distribution: Suse - Latest kernel always
Posts: 97

Rep: Reputation: 15
Tripmix, try removing the root=/dev/hda2 ro statement from your grub list. Believe it or not, it worked for me having the same problem!
 
Old 06-09-2006, 01:18 PM   #7
tripmix
Member
 
Registered: Nov 2004
Location: Norway
Distribution: Debian mostly
Posts: 103

Original Poster
Rep: Reputation: 16
Thanks for all the tips, I got it now. All I had to do was:

mkinitrd -o /boot/initrd.img-2.6.15 2.6.15

Then add the new img that was created to grubs menu.lst
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
kernel 2.6.16.9 panic at boot : Failure-22 slone Linux - Kernel 3 04-26-2006 09:29 AM
Kernel 2.6.7 / SCSI boot failure with sym53c8xx-2 Luzipher Linux - General 2 06-30-2004 09:48 AM
Kernel upgrade - failure to boot bob49 Fedora 2 06-26-2004 08:48 AM
Boot failure: kernel panic, busybox messages ethrbunny Linux - General 2 06-18-2003 03:19 PM
Redhat 9 install hung up at kernel boot up(usb probe failure) digizer0 Linux - General 0 05-25-2003 08:14 AM


All times are GMT -5. The time now is 07:36 PM.

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