LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 11-29-2004, 08:56 PM   #301
Michael_S
Member
 
Registered: Oct 2004
Location: Pennsylvania, USA
Distribution: Debian
Posts: 87

Rep: Reputation: 36
Re: compiling 2.6


Quote:
Originally posted by srinis
hi,
i happen to do all tha req for copiling the 2.6 kernel , my present 2.4 kernel is fine. but when i try yo boot into he 2.6 kernel it stops saying

kernel panic give correct root=

something of that sort,
ut when i boo my 2. it's fine.

My boot device is /dev/hda6 so i my grub.conf i have

root (hd0,6)
kernel /kernel2.6 ro root=LABEL=/ rhgb


and others this is the same line in both the 2.6 part and 2.4 part of the grub.conf, but i don't get why it says unknown root device only while booting 2.6, can any sugges a solution.

Thanking You,
Satish
I don't know the solution, but I'm confused by your reference. I'm pretty sure hda6 should be referenced as hd0,5 in GRUB, not hd0,6.
 
Old 11-29-2004, 09:41 PM   #302
Wolfy
Member
 
Registered: Jun 2004
Location: WA
Distribution: Slackware 11 Kernel 2.6.20.7-SMP
Posts: 144

Rep: Reputation: 15
jsolanky,
Try reconfiguring X.
Wolfy
 
Old 11-30-2004, 08:24 AM   #303
jsolanky
Member
 
Registered: Nov 2004
Posts: 39

Rep: Reputation: 15
Guys, this is strange. I am trying to re-install Mandrake 9.2 by using the same exact iso image/cd, but the difference is that this time around I am getting errors in different packages and it will not continue to install Mandrake rather it will put me back to the step where I select what I want to install. I tried it MANY many times.. but nothing worked. I just can't figure out why its doing this.

Any ideas?
 
Old 11-30-2004, 05:28 PM   #304
SteveK1979
Member
 
Registered: Feb 2004
Location: UK
Distribution: RHEL, Ubuntu, Solaris 11, NetBSD, OpenBSD
Posts: 225

Rep: Reputation: 43
Hi jsolanky,

The only time I've ever had anything like this, with packages failing to install from a previously used iso image is if it's a duff CD or the iso file has been corrupted.

With a cd that pas been previously used, I have the same problem when the cd has been scratched....

Cheers,

Steve
 
Old 11-30-2004, 05:41 PM   #305
jayare
LQ Newbie
 
Registered: Nov 2004
Distribution: Slackware 10
Posts: 5

Rep: Reputation: 0
Wolfy,

I got a 2.4.26 kernel to boot. I moved the old kernel back into /boot from /boot.old, and separated the kernels by giving them different names instead of having them in different directories (not really sure why that mattered, given that the stuff that was in /boot.old booted OK, but whatever). Interestingly, if I named the new kernel and system map just vmlinuz and System.map, it didn't work, but if I named them vmlinuz-2.4.261 and System.map-2.4.261, it did.

Now I am working on building a 2.6.9 kernel. Thanks very much for the help!
 
Old 12-01-2004, 12:14 AM   #306
Vincent_Vega
Member
 
Registered: Nov 2003
Location: South Jersey
Distribution: Slackware, Raspbian, Manjaro
Posts: 826

Rep: Reputation: 31
did you edit the Makefile?? I can't imagine that changing the names really solved the problem. Are you using LILO?
Make a directory, /boot/269, and the edit the Makefile in the 2.6.9 kernel tree so that INSTALL_PATH=/boot/269
Now when you compile and install the new kernel it will all go there. Edit lilo.config accordingly and you shouldn't have any problems.
 
Old 12-01-2004, 01:09 AM   #307
jayare
LQ Newbie
 
Registered: Nov 2004
Distribution: Slackware 10
Posts: 5

Rep: Reputation: 0
I can't believe it either, but I swear that's what happened. The only change I made (that time around) was changing the names.

I'll try your other suggestion if I can't get 2.6.9 to boot. Thanks!

ETA: to answer your questions: yes, I edited the Makefile, and yes, I am using LILO

Last edited by jayare; 12-01-2004 at 01:10 AM.
 
Old 12-01-2004, 02:20 AM   #308
Wolfy
Member
 
Registered: Jun 2004
Location: WA
Distribution: Slackware 11 Kernel 2.6.20.7-SMP
Posts: 144

Rep: Reputation: 15
nevermind

Last edited by Wolfy; 12-01-2004 at 06:40 PM.
 
Old 12-01-2004, 03:57 AM   #309
Vincent_Vega
Member
 
Registered: Nov 2003
Location: South Jersey
Distribution: Slackware, Raspbian, Manjaro
Posts: 826

Rep: Reputation: 31
yeah, nevermind! Let's all just hack!!!!

Last edited by Vincent_Vega; 12-01-2004 at 11:40 PM.
 
Old 12-01-2004, 12:12 PM   #310
jayare
LQ Newbie
 
Registered: Nov 2004
Distribution: Slackware 10
Posts: 5

Rep: Reputation: 0
2.6.9 boots!

Thanks again for all the help.
 
Old 12-01-2004, 06:53 PM   #311
Wolfy
Member
 
Registered: Jun 2004
Location: WA
Distribution: Slackware 11 Kernel 2.6.20.7-SMP
Posts: 144

Rep: Reputation: 15
Congrats on the new kernel.

Last edited by Wolfy; 12-02-2004 at 06:28 PM.
 
Old 12-14-2004, 08:16 PM   #312
wLancer
Member
 
Registered: Nov 2004
Location: TN
Distribution: Ubuntu 10.04
Posts: 30

Rep: Reputation: 15
Ok i must be doing somethign seriously wrong here.
It seems everything is hunky dory. i installed using the step by step advice of both posts on updating the kernel(ie the n00b one and this on). My kernel installs fine but when i try to boot to it i dont even get the linux.old at the lilo boot sector screen. Its as if nothing has been done to install. I am at a loss as to what to do. Im updating from 2.4.26 to 2.6.28. Is there a directory that this needs to be in? or something wrong with my lilo.conf? aany advice would be awesome.
 
Old 12-14-2004, 08:24 PM   #313
Wolfy
Member
 
Registered: Jun 2004
Location: WA
Distribution: Slackware 11 Kernel 2.6.20.7-SMP
Posts: 144

Rep: Reputation: 15
wLancer,
Are you updating lilo by using [/sbin/lilo]?
 
Old 12-14-2004, 08:25 PM   #314
wLancer
Member
 
Registered: Nov 2004
Location: TN
Distribution: Ubuntu 10.04
Posts: 30

Rep: Reputation: 15
i haven't updated lilo at all all ive done is edit with pico. in /etc/lilo.conf

Last edited by wLancer; 12-14-2004 at 08:46 PM.
 
Old 12-14-2004, 09:19 PM   #315
Wolfy
Member
 
Registered: Jun 2004
Location: WA
Distribution: Slackware 11 Kernel 2.6.20.7-SMP
Posts: 144

Rep: Reputation: 15
wLancer,
Well, that's your problem, if you don't tell lilo about the changes you've made it's not going to work.
You need to seperate the two kernels within the lilo.conf file the update lilo via /sbin/lilo.
Only then will you have the option to choose what kernel you want to boot.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Help - Need guide on how to (re)compile kernel in 9.2 timko SUSE / openSUSE 1 02-17-2005 08:17 AM
re :kernel compile guide sh4d0w331 Slackware 1 10-02-2004 05:38 PM
Kernel re-compile guide marlor Slackware 6 08-08-2004 03:57 AM
What happened to the Newbie Compile Guide? boutrosboutros Slackware 6 07-14-2004 12:37 AM
mandrake specific kernel compile guide? e1000 Mandriva 4 01-09-2004 12:27 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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