LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 05-06-2005, 10:49 AM   #1
ExCIA
Member
 
Registered: Mar 2005
Posts: 78

Rep: Reputation: 15
Questions about upgrade from bf24 to 2.4.18-1-686-smp kernel


Hello all,

I would like to upgrade from bf24 to 2.4.18-1-686-smp kernel since my server has dual 550 MHz processors.

I get this message when attempted to upgrade to 2.4.18 smp kernel:

Code:
You are attempting to install an initrd kernel image (version 2.4.18-1-686-smp)
This will not work unless you have configured your boot loader to use
initrd. (An initrd image is a kernel image that expects to use an INITial
Ram Disk to mount a minimal root file system into RAM and use that for
booting).
As a reminder, in order to configure lilo, you need to
add an 'initrd=/initrd.img' to the image=/vmlinuz
stanza of your /etc/lilo.conf
I repeat, You need to configure your boot loader. If you have already done
so, and you wish to get rid of this message, please put
  `do_initrd = Yes'
in /etc/kernel-img.conf. Note that this is optional, but if you do not,
you'll contitnue to see this message whenever you install a kernel
image using initrd.
Do you want to stop now? [Y/n]
What do I need to do to get this going smoothly?
 
Old 05-06-2005, 11:01 AM   #2
Tuttle
Senior Member
 
Registered: Jul 2003
Location: Wellington, NZ
Distribution: mainly slackware
Posts: 1,289

Rep: Reputation: 52
I don't understand "bf24" but to create an initrd image, just look at man initrd, it's quite painless once you are familiar with the command. The message you posted is just a warning, I would have thought, to remind you to create an initrd image before rebooting.

I only hae a single processor machine with my root partition on reiserfs, here is the command I gave the last time I created an initrd image:
Code:
mkinitrd -c -k 2.6.11.8 -m reiserfs
then made sure this was in my lilo.conf:
Code:
image = /boot/vmlinuz
  initrd = /boot/initrd.gz
  root = /dev/hda7
  label = Linux-2.6.11.8
 
Old 05-06-2005, 11:29 AM   #3
ExCIA
Member
 
Registered: Mar 2005
Posts: 78

Original Poster
Rep: Reputation: 15
That 'bf24' is what I chose when I install Debian 'Woody' and it means it will install 2.4 i386 kernel that all.

Is this how I would do mine?

mkinitrd -c -k 2.4.18-1-686-smp -m ext3
 
Old 05-06-2005, 11:53 AM   #4
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 3,513

Rep: Reputation: 63
Quote:
Originally posted by ExCIA
That 'bf24' is what I chose when I install Debian 'Woody' and it means it will install 2.4 i386 kernel that all.

Is this how I would do mine?

mkinitrd -c -k 2.4.18-1-686-smp -m ext3
You will not have to do that, the initrd will be included in the kernel image you will install. You need to edit the file /etc/lilo.conf and put the line in there similar to like tuttle shows in his post then you would run /sbin/lilo -v to have the changes you make written to disk for use on the next boot.
 
Old 05-06-2005, 12:36 PM   #5
ExCIA
Member
 
Registered: Mar 2005
Posts: 78

Original Poster
Rep: Reputation: 15
This is what I have in lilo.conf:

Code:
# Kernel command line options that apply to all installed images go
# here.  See: The `boot-prompt-HOWO' and `kernel-parameters.txt' in
# the Linux kernel `Documentation' directory.
#
# append=""

# Boot up Linux by default.
#
default=Linux

image=/vmlinuz
        label=Linux
        read-only
#       restricted
#       alias=1

image=/vmlinuz.old
        label=LinuxOLD
        read-only
        optional
#       restricted
#       alias=2
Do I overwrite the default or just add another image like this:

Code:
# Boot up Linux by default.
#
default=Linux

image=/vmlinuz
        label=Linux
        read-only
#       restricted
#       alias=1

image=/vmlinuz.old
        label=LinuxOLD
        read-only
        optional
#       restricted
#       alias=2

image = /boot/vmlinuz
  initrd = /boot/initrd.gz
  root = /dev/sda
  label = Linux-2.4.18-686-smp

Last edited by ExCIA; 05-06-2005 at 12:38 PM.
 
Old 05-06-2005, 12:49 PM   #6
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 3,513

Rep: Reputation: 63
You should just have to change this section.

Code:
image=/vmlinuz
        label=Linux
        read-only
#       restricted
#       alias=1
to

Code:
image=/vmlinuz
        label=Linux
        initrd=/initrd
        read-only
#       restricted
#       alias=1

Of course checking to make sure that a symbolic link exists between /initrd and whatever it is called in /boot/initrd-??? with ls -l /initrd and making sure to run the lilo command I gave earlier to write the changes to the disk .
 
Old 05-06-2005, 02:06 PM   #7
ExCIA
Member
 
Registered: Mar 2005
Posts: 78

Original Poster
Rep: Reputation: 15
Like this?

ln -s /initrd /boot/initrd.img-2.4.18-1-686

or it is the other way round?

ln -s /boot/initrd.img-2.4.18-1-686 /initrd
 
Old 05-06-2005, 02:24 PM   #8
Tuttle
Senior Member
 
Registered: Jul 2003
Location: Wellington, NZ
Distribution: mainly slackware
Posts: 1,289

Rep: Reputation: 52
"man ln" hehe, seriously though:
Code:
ln -s [source filename/foldername and path] [link filename and path]
If you try it the wrong way 'round it will spit out an error like " /initrd file does not exist" or similar. If the link "/initrd" exists then delete it first or use the -f option with the ln command.

edit: see post below, I haven't used debian for a while.

Last edited by Tuttle; 05-06-2005 at 02:27 PM.
 
Old 05-06-2005, 02:25 PM   #9
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 3,513

Rep: Reputation: 63
Quote:
Originally posted by ExCIA
Like this?

ln -s /initrd /boot/initrd.img-2.4.18-1-686

or it is the other way round?

ln -s /boot/initrd.img-2.4.18-1-686 /initrd
It would be the second one if linking it yourself but you should not have to do that when you install the image the link should already be created. Just make sure I got the /initrd name correct it has been a long time since I installed a stock Debian kernel I may have the name of it wrong.
 
Old 05-06-2005, 04:07 PM   #10
ExCIA
Member
 
Registered: Mar 2005
Posts: 78

Original Poster
Rep: Reputation: 15
The reason why I asked is because of this:

Code:
debian:/boot# /sbin/lilo -v
LILO version 22.2, Copyright (C) 1992-1998 Werner Almesberger
Development beyond version 21 Copyright (C) 1999-2001 John Coffman
Released 05-Feb-2002 and compiled at 20:57:26 on Apr 13 2002.
MAX_IMAGES = 27

Reading boot sector from /dev/sda
Merging with /boot/boot-menu.b
Boot image: /vmlinuz -> boot/vmlinuz-2.4.18-1-686
Mapping RAM disk /initrd
Fatal: /initrd: neither a reg. file nor a block dev.
What is the error message talking about?
 
Old 05-06-2005, 04:37 PM   #11
ExCIA
Member
 
Registered: Mar 2005
Posts: 78

Original Poster
Rep: Reputation: 15
Nevermind... I fixed the error and this is what I added:

Instead of 'initrd=/initrd'

It should have been 'initrd=/boot/initrd.img-2.4.18-686-smp'

Code:
image=/vmlinuz
        label=Linux
        initrd=/boot/initrd.img-2.4.18-686-smp
        read-only
#       restricted
#       alias=1
I'm booting up fine and checked with 'uname -r', which the server is now using 2.4.18-686-smp.

Thanks everyone.

Cheers
 
  


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
debian sarge upgrade 2.6.6-1-686-smp fariz83 Linux - Software 1 07-05-2006 08:41 AM
2.6....686-smp problem with shpchp sockknitter Debian 2 08-14-2005 05:19 PM
problem with smp kernel after mdk 9.1 to 10.2 upgrade danzinho Mandriva 0 05-23-2005 05:15 AM
what is intel-686-smp? nadroj Linux - Hardware 6 01-24-2005 09:56 PM
SMP kernel not installed during upgrade alexmurray Mandriva 1 11-23-2003 07:19 PM


All times are GMT -5. The time now is 10:35 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration