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 08-09-2004, 04:08 AM   #1
stupidloser
LQ Newbie
 
Registered: Aug 2004
Posts: 14

Rep: Reputation: 0
[solved!]cannot boot compiled kernel in grub (SUSE 9.1)


NICE!!! Thanks to Thoreau and Eagle_Seven for responding!!!
I finally got it all worked out


Ok, I installed SUSE 9.1 (installation was very smooth BTW), and proceeded to compile a new kernel (2.6.7)-- which worked fine. I have now inserted the following lines of code into grub:

title Linux kernel 2.6.7
root (hd0,3)
kernel /boot/vmlinuz-2.6.7 root=/dev/hda2

BTW, I was told that my new compiled linux kernel can be found on the same file system as SUSE9.1, so I basically copied the code. My default linux boot is also located at (hd0,3) and root=dev/hda2

So when I try to boot up my new kernel, it load for a few seconds, then hangs with the following error(s):

VFS: Cannot open root device "\dev\hdc4" or unknow block (0,0)
Please append correct root= boot option
Kernel Panic: VFS: Unable to mount root fs on unknow block (0,0)


Any ideas where I'm going wrong??

TIA

Last edited by stupidloser; 08-10-2004 at 05:34 AM.
 
Old 08-09-2004, 04:12 AM   #2
Thoreau
Senior Member
 
Registered: May 2003
Location: /var/log/cabin
Distribution: All
Posts: 1,167

Rep: Reputation: 45
You may not have compiled in your filesystem support like reiserfs, ext3, xfs, etc for the /boot directory. It cannot be a module if your kernel needs to mount it as boot. It must be checked as Yes, not modular. Or the kernel may not actually be there under that name in the /boot directory.
 
Old 08-09-2004, 02:38 PM   #3
Eagle_Seven
Member
 
Registered: Aug 2004
Distribution: Suse 9.1 Pro
Posts: 54

Rep: Reputation: 15
just an idea, but if Suse is the C drive, is that the third partition of the first hard drive? Because, if I remember Windows correctly, C is the first partition. IN that case, its root (hd0,0), and so it wouldn't find the Kernal on the third partition, if it don't exist. I has similar problems when I installed Suse last week. Just be sure you get the hard drives straight.
HD1, partion 1 (hd0,0)
HD1, partition 2 (hd0,1)
HD2, Partition 1 (hd1,0)
and so on

hope this helps!
 
Old 08-09-2004, 02:40 PM   #4
Eagle_Seven
Member
 
Registered: Aug 2004
Distribution: Suse 9.1 Pro
Posts: 54

Rep: Reputation: 15
so, the commands would be

root (hd0,0)
kernel <your kernel location>
boot
 
Old 08-10-2004, 05:22 AM   #5
stupidloser
LQ Newbie
 
Registered: Aug 2004
Posts: 14

Original Poster
Rep: Reputation: 0
bump for a new question
 
  


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
[2.6.11 just compiled] kernel panic at boot-time MD3 Slackware 10 04-24-2005 12:39 PM
Blank Screen after Suse Boot - HowTo boot from grub to command line benco420 Linux - Newbie 3 02-13-2005 06:50 AM
newly compiled kernel, boot fails class_struggle Linux - Newbie 2 07-30-2004 10:10 AM
PROBLEM with grub and my newly compiled kernel! maestro52 Linux - Newbie 8 02-02-2004 06:14 PM
uh-oh; boot problem in newly compiled 2.6.0 kernel with GRUB tombomb300 Linux - Newbie 10 01-28-2004 12:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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