LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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
  Search this Thread
Old 05-09-2007, 06:28 PM   #1
AceofSpades19
Senior Member
 
Registered: Feb 2007
Location: Chilliwack,BC.Canada
Distribution: Slackware64 -current
Posts: 2,079

Rep: Reputation: 58
kernel 2.6.21 wont boot after being compiled


ok, I downloaded the new kernel 2.6.21 and so I compiled it successfully and made the changes to grub and all the jazz but it boots up to a certain point and goes Cant mount root fs on sda1
make sure its the right disk or something like that
KERNEL PANIC
and heres my grub config file
title Debian GNU/Linux, kernel 2.6.21-4-486
root (hd0,0)
kernel /boot/vmlinz-2.6.21 root=/dev/sda1 ro
savedefault

title Debian GNU/Linux, kernel 2.6.18-4-486 (single-user mode)
root (hd0,0)
kernel /boot/vmlinuz-2.6.18-4-486 root=/dev/sda1 ro single
initrd /boot/initrd.img-2.6.18-4-486
savedefault

title Debian GNU/Linux, kernel 2.6.18-4-486
root (hd0,0)
kernel /boot/vmlinuz-2.6.18-4-486 root=/dev/sda1 ro
initrd /boot/initrd.img-2.6.18-4-486
savedefault
### END DEBIAN AUTOMAGIC KERNELS LIST
so does anyone know what to do


p.s. I can still boot off my old 2.6.18 kernel
 
Old 05-09-2007, 06:31 PM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
Quote:
title Debian GNU/Linux, kernel 2.6.21-4-486
root (hd0,0)
kernel /boot/vmlinz-2.6.21 root=/dev/sda1 ro
savedefault

title Debian GNU/Linux, kernel 2.6.18-4-486 (single-user mode)
root (hd0,0)
kernel /boot/vmlinuz-2.6.18-4-486 root=/dev/sda1 ro single
initrd /boot/initrd.img-2.6.18-4-486
savedefault
Most noticable is what's missing from the first stanza: no initrd line.

Did you make a new initrd for the new kernel? Or, did you just omit putting that line in the stanza?
 
Old 05-09-2007, 06:47 PM   #3
AceofSpades19
Senior Member
 
Registered: Feb 2007
Location: Chilliwack,BC.Canada
Distribution: Slackware64 -current
Posts: 2,079

Original Poster
Rep: Reputation: 58
no I didnt would that be a problem
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Newly compiled kernel won't boot nivantha Linux - Kernel 3 09-14-2006 03:02 AM
Which compiled kernel has been used to boot system? aliamiri Linux - General 2 05-02-2006 10:17 AM
[2.6.11 just compiled] kernel panic at boot-time MD3 Slackware 10 04-24-2005 11:39 AM
WTF, Kernel Compiled but wont install!! Devboy *BSD 10 08-09-2004 01:18 PM
newly compiled kernel, boot fails class_struggle Linux - Newbie 2 07-30-2004 09:10 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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