LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 06-19-2004, 09:50 AM   #1
alienzero
Member
 
Registered: Dec 2003
Posts: 45

Rep: Reputation: 15
SMP Kernel by Default?


Hi all. I have a server with a dual CPU mobo. I only have one CPU in it right now. I'm going to install the second one in it soon. I was wondering when I install Debian, will it detect the second CPU and install an SMP kernel? Or do I have to install an image? Thanks.
 
Old 06-19-2004, 10:07 AM   #2
sterrenkijker
Member
 
Registered: Mar 2004
Location: the Netherlands
Distribution: Debian Sarge
Posts: 302

Rep: Reputation: 31
I don't know, but I know it is easy to install an extra kernel-image next to you existing, and dual boot between them. So I don't think you will have to worry...
 
Old 06-19-2004, 02:53 PM   #3
alienzero
Member
 
Registered: Dec 2003
Posts: 45

Original Poster
Rep: Reputation: 15
Hmm, ok. Well I actuallty attempted to instal a kernel image, just to see if I could do it, but I messed it up. My machine doesn't boot properly after I installed the image. Thankfully I had made a boot floppy so I can still boot with the original kernel. Could you possibly point me toward the guide on how to install an image, step by step? Most other guides show you how to create a custom kernel from source, create the image, then install it. I just want to install one of the ones that Debian.org has for download. Thanks.

Last edited by alienzero; 06-19-2004 at 02:55 PM.
 
Old 06-19-2004, 03:58 PM   #4
sterrenkijker
Member
 
Registered: Mar 2004
Location: the Netherlands
Distribution: Debian Sarge
Posts: 302

Rep: Reputation: 31
Sorry, bad advice from me... Good you had a bootdisk

It would be very usefull if you could post which version of debian you are using (woody=stable, sarge=testing or sid=unstable), what bootloader you use (lilo or grub, you can find that info in /boot or with the help of apt-get).
 
Old 06-19-2004, 04:45 PM   #5
alienzero
Member
 
Registered: Dec 2003
Posts: 45

Original Poster
Rep: Reputation: 15
Oh ya, that would be useful eh? I'm running Sarge with LiLo. When I do install the second CPU I'd like to use the latest 2.6 SMP k7 Kernel image from Debian.org.
The one I tried to install before was the same Kernel but the non SMP version. I think all I did after I downloaded the image was:
# apt-get install kernel-source-2.6
# cp kernel-image-2.6.2-1-k7.deb /usr/src
# cd /usr/src
# dpkg -i kernel-image-2.6.2-1-k7.deb
I guess I ignored that bit about initrd in LiLo. I went on with the install and said Yes to whatever it prompted me about. I think it was about the symlink.
So ya, I know I jumped the gun and should have done more research, but I couln't really find any guides that were detailed for this sort of thing. Any help would be great.
 
Old 06-19-2004, 09:08 PM   #6
zuralin
Member
 
Registered: Sep 2003
Distribution: Debian testing/unstable
Posts: 229

Rep: Reputation: 32
check out newbiedoc (more specifically the kernel compiling part)
 
Old 06-20-2004, 12:07 AM   #7
alienzero
Member
 
Registered: Dec 2003
Posts: 45

Original Poster
Rep: Reputation: 15
I checked out the newbie guide. Since I'm only installing the kernel image from Debian.org, I only needed to read and follow this page: http://newbiedoc.sourceforge.net/tut...el-pkg.html.en
I did what it said. When I reboot I get:

L9 99 99 99 99 99 99 99 99 99 99 99 99 99 99 99
99 99 99 99 99 99 99 99 99 99 99 99 99 99 99 99
99 99 99 99 99 99 99 99 99 99 99 99 99 99 99 99
99 99 99 99 99 99 99 99 99 99 99 99 99 99 99 99

I'm not sure what I did wrong?
 
Old 06-20-2004, 06:24 AM   #8
sterrenkijker
Member
 
Registered: Mar 2004
Location: the Netherlands
Distribution: Debian Sarge
Posts: 302

Rep: Reputation: 31
There's some confusion here: If you want to install a kernel-image you don't have to download the source: kernel-images are already compiled. You only need the source if you want to compile an image yourself. You also don't have to move your kernel-image package to /usr/src. It has nothing to do with installing a kernel-image from Debian.

Lilo reacts that strange (probably) because the lilo-configuration file is messed up (I think you gave some wrong answers when installing or something). You can read lilo's manpage, and basically what you should have in you lilo.conf is this:

Code:
boot=/dev/hda

# wait 5 seconds before booting, let the user choose which image to boot
prompt
timeout=50

# the kernel images available

image = /boot/vmlinuz-xxxx 
root = /dev/hdaxx
label = Just-a-name-without-spaces
read-only

image=/boot/vmlinuz-xxxx-smp
root=/dev/hdaxx
label=Just-another-name-that-tells-you-its-smp
read-only
The lilo-configuration on your bootdisk may help you to find out the right configuration. I strongly suggest you read the manpage of lilo.conf and take a look at that configuration: every computer is set up differently.

About a symlink: there is a symlink /boot/vmlinuz that points to you default kernel-image. The lilo-configuration normally points to that symlink, instead to the image itself: probably for update purposes. Lilo's config could also have pointed to the kernel-image itself. But now you want to boot between two kernels, so a symlink isn't a very good idea.


You already have 2 images installed, so I suggest you try to edit you lilo configuration file. After editing it, don't forget to give the command "lilo". This will update lilo to the new configuration, so it will be used too . Then reboot. You should get a prompt, which asks you which kernel to boot.

Succes and read the manuals some bettter ,

Corien

Last edited by sterrenkijker; 06-20-2004 at 06:31 AM.
 
Old 06-22-2004, 07:29 AM   #9
alienzero
Member
 
Registered: Dec 2003
Posts: 45

Original Poster
Rep: Reputation: 15
Yes, confusion is right. I made my lilo.conf look alot like yours, but it still continues to give problems.
Code:
boot=/dev/hda1

# wait 5 seconds before booting, let the user choose which image to boot
prompt
timeout=50

# the kernels available

root=/dev/hda1
image=/boot/vmlinuz-2.2.20-idepci
label=2.2
read-only

root=/dev/hda1
image=/boot/vmlinuz-2.6.6-1-k7
label=2.6
read-only
This is what I have in my /boot/:
Code:
System.map-2.2.20-idepci  config-2.6.6-1-k7      sid.bmp
System.map-2.6.6-1-k7     debianlilo.bmp         vmlinuz-2.2.20-idepci
boot.0300                 initrd.img-2.6.6-1-k7  vmlinuz-2.6.6-1-k7
boot.0301                 map
config-2.2.20-idepci      sarge.bmp
Do I have lilo set up correctly? What is all that stuff there?
 
Old 06-22-2004, 08:48 AM   #10
sterrenkijker
Member
 
Registered: Mar 2004
Location: the Netherlands
Distribution: Debian Sarge
Posts: 302

Rep: Reputation: 31
You specified boot=/dev/hda1. That's probably wrong: this line must contain the device where lilo is installed. This is mostly in the master boot record of you first disk (=/dev/hda). If it isn't, there must be another bootloader in the master boot record or on a bootfloppy to chainload your bootloader, but in that case you would probably know. So I suggest you change that to boot=/dev/hda.
I see your new kernel has a initrd, and your old kernel hasn't: add a line initrd=/boot/initrd.img-2.6.6-1-k7 to the part for the 2.6.6 kernel.
You also have a map-file. You can add a line map=/boot/map to the global section (ie before the kernel-entries), but I don't thinks it's necessary: I have a map-file too, but I don't have it configured in my lilo.conf, yet my kernel boots fine.

That's all I can find, but it's enough to cause the problem... I think it caused lilo to install on the wrong device, so your new configuration is still not used. Try changing it and give the command "lilo" again.

The vmlinuz stuff in /boot are the kernel-images. The bitmaps are probably supposed to be backgrounds, nothing to worry about .
The config-2.6.6-1-k7 and the other config are the configurations of your kernels: it tells which modules and stuff is compiled into the kernel, which are compiled as separate module and which aren't compiled at all: especially usefull if you wish to compile a kernel yourself: you can start with a working configuration.
The initrd file has something to do with a boot-method: some kernels are compiled to boot with initrd, and others aren't, so it's not strange your old kernel doesn't have an initrd.
Rest of the files: no idea.

Hope this helps.

Corien
 
Old 06-22-2004, 03:43 PM   #11
alienzero
Member
 
Registered: Dec 2003
Posts: 45

Original Poster
Rep: Reputation: 15
Talking

It worked!!! It's alive! Hehe, thank you very much! I made the changes that you suggested and rebooted. To my surprise a bright red Lilo box came up and asked me to boot either 2.2 or 2.6! I gladely chose 2.6. It took a while for it to get going, hopefully a first time thing, but it's up! Now I can install the SMP kernel when I get my second CPU. Thanks again!
 
Old 06-22-2004, 03:50 PM   #12
alienzero
Member
 
Registered: Dec 2003
Posts: 45

Original Poster
Rep: Reputation: 15
Hmm, maybe I jumped the gun again. The system is up and running, but I can't seem to reach the web server, or any other the other services? SSH Samba aren't working. Does 2.6 setup a firewall or soemthing?
Nevermind that, I jsut tried 'apt-get update'. It would appear that my server cannot connect to the outside world. When installed Debian, I had it configure this via DHCP server. I guess I have to reconfigure that. How do I do that?

Last edited by alienzero; 06-22-2004 at 03:55 PM.
 
Old 06-22-2004, 04:53 PM   #13
sterrenkijker
Member
 
Registered: Mar 2004
Location: the Netherlands
Distribution: Debian Sarge
Posts: 302

Rep: Reputation: 31
Nice your kernel boots . All the efforts and explanations weren't for nothing...

Hmm, no internet: I think you need to load the right modules, but I don't know how, can't help you with it. You can also try finding it out on the www (there's a lot on the www)

Last edited by sterrenkijker; 06-22-2004 at 04:58 PM.
 
  


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
Any reason to keep a non-smp kernel installed on a smp FC3 machine? jim-j Fedora 2 03-12-2006 07:06 AM
smp kernel: uncompressing Linux ..ok booting the kernel krissb Linux - General 1 11-16-2005 06:31 PM
Kernel-Patch Debian Logo 2.6.2 not correctly working for custom kernel 2.6.11 smp deepclutch Debian 3 06-27-2005 03:59 AM
Is apache smp aware by default? Thaidog Linux - Software 1 05-13-2005 03:29 PM
Differences between default, smp, and bigsmp kernels ? reg3ter Linux - Newbie 8 03-30-2005 06:06 PM

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

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