LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 11-19-2004, 12:57 AM   #1
srinis
LQ Newbie
 
Registered: Nov 2004
Location: India
Distribution: FC1
Posts: 9

Rep: Reputation: 0
Smile compiling 2.6


hi,
i just compiled the linux kernel-2.6 today moning. i had a linu-2.4 kernel. the compilation had been successful and all the modules have been installed. Also updated the grub.coinf file with the new kernel img and the initrd img.

My .config file was perfect, done by some guidelines provided in this site by chiriac. Now a problem when booting,

it says unable to mount root or unknown blk number (0,0)
give correct root= option
kernel panic : VFS unable to mount root device

a short snippet of my grub.conf is as follows,

title kernel 2.6
root(hd0,6) /* my boot partition*/
kernel /vmlinuz-2.6.myver ro root=LABEL=/ rhgb
initrd /initrd-2.6.myver.img

title kernel 2.4
root(hd0,6)
kernel /vmlinuz-2.4 ro root=LABEL=/ rhgb
initrd /initrd-2.4.img

My 2.4 kernel boots fine whereas i don't know what is wrong woth the root device when booting 2.6 .

my root resides on /dev/hda8

i have done the all required changes in the rc.sysinit file for mounting the /sys.

Can anyone plz suggest some solution to this
thankiing u,
Satish
 
Old 11-19-2004, 01:05 AM   #2
solnul
Member
 
Registered: Jan 2003
Distribution: Slackware
Posts: 82

Rep: Reputation: 15
I don't think /* ... */ is a comment in grub. Try #comment, possibly on another line.

(FYI: Mounting / comes before mounting /sys, so that's a red herring. )
 
Old 11-19-2004, 01:06 AM   #3
secesh
Senior Member
 
Registered: Sep 2004
Location: Savannah, GA
Distribution: Ubuntu, Gentoo, Mythbuntu, ClarkConnect
Posts: 1,154

Rep: Reputation: 47
are you sure you can have the comment
Quote:
/* my boot partition*/
??

--a quick scroll through their manual (http://www.gnu.org/software/grub/man...#Configuration) didn't mention block comments in that fashion...

--not a grub user, can't say for sure...
 
Old 11-19-2004, 01:06 AM   #4
Zuggy
Member
 
Registered: Mar 2004
Location: Pocatello, Idaho, USA
Distribution: Ubuntu
Posts: 256

Rep: Reputation: 30
You might wanna try Ubuntu Linux. I'm downloading it now to try. I read a a review on it from OSnews and it sounds like a fairly easy distro. Better yet if you don't mind waiting awhile and you don't want to download it they'll send it to you for free.

Linux and BSD are like Ice Cream. You just have to find the flavor you like most.

Last edited by Zuggy; 11-19-2004 at 01:08 AM.
 
Old 11-19-2004, 01:09 AM   #5
secesh
Senior Member
 
Registered: Sep 2004
Location: Savannah, GA
Distribution: Ubuntu, Gentoo, Mythbuntu, ClarkConnect
Posts: 1,154

Rep: Reputation: 47
...random... but thanx for your opinion
 
Old 11-27-2004, 05:24 AM   #6
srinis
LQ Newbie
 
Registered: Nov 2004
Location: India
Distribution: FC1
Posts: 9

Original Poster
Rep: Reputation: 0
plz ignore the comments format i just put it, i was remembering my grub.conf file and i happen to put the usual /* for commenting, but ca anyone suggest as to why i get the proiblem that root=/ is not valid and lands me up in a panic whereas with the same line in the 2.4 kernel part boots it propoerly, could there be any configuration problem in my kernel , plz suggest

Thanking u
 
Old 11-27-2004, 08:07 AM   #7
egag
Senior Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,721

Rep: Reputation: 52
what file-system do you use on the "/" -part, and is it compiled into the kernel ?
( i always compile it in to avoid prob's )

egag
 
Old 11-27-2004, 11:36 AM   #8
kevinalm
Member
 
Registered: Oct 2003
Location: Iowa
Distribution: LFS 5.0, building 6.3, win98se, multiboot
Posts: 288

Rep: Reputation: 30
On the kernel line, try root=hda8 instead of root=LABEL=/
the LABEL syntax has been known to be buggy. The other thing to watch out for is to make sure that fs support for the root fs is compiled into the kernel as egag suggests.

Last edited by kevinalm; 11-27-2004 at 11:39 AM.
 
  


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
Compiling narcussist Fedora 6 01-18-2006 01:50 PM
compiling z9_87 Linux - Software 4 12-23-2004 06:29 PM
Various Compiling Errors (GCC compiling Openal, GUIlib, xmms-wma) gregorya Linux - Software 2 08-27-2004 06:03 AM
Compiling in ACPI support on Compaq 2135CA (system crashes while compiling) Dag Linux - Laptop and Netbook 20 07-30-2004 08:56 PM
Kernel compiling and module compiling tarballed Linux - General 1 12-22-2002 06:31 PM


All times are GMT -5. The time now is 03:29 PM.

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