LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 01-08-2005, 06:20 AM   #1
MaulingMonkey
Member
 
Registered: Aug 2003
Posts: 31

Rep: Reputation: 16
does 2.6 require a boot loader?


Attempting to upgrade my kernel to 2.6 from 2.2 (yuck) on my debian system - I get a warning that I need to configure my boot loader to use an initrd image - thing is, I don't even use a boot loader on my server. Do I need to?

Code:
You are attempting to install an initrd kernel image (version 2.6.8-1-386)
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 -- please read your
bootloader documentation for details on how to add initrd images.

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 will continue to see this message whenever you install a kernel
image using initrd.
 
Old 01-08-2005, 06:24 AM   #2
musicman_ace
Senior Member
 
Registered: May 2001
Location: Indiana
Distribution: Gentoo, Debian, RHEL, Slack
Posts: 1,555

Rep: Reputation: 46
After you've done:

make bzImage
make modules
make modules_install
cp bzImage /boot/bzImage

do this

mkinitrd -k bzImage -i initrd2.6

and you do use a boot loader. Everyone does. Most likely it is LILO, however I don't use debian so it could be GRUB.
 
Old 01-08-2005, 06:30 AM   #3
MaulingMonkey
Member
 
Registered: Aug 2003
Posts: 31

Original Poster
Rep: Reputation: 16
After playing the gambling game, I've rendered my system unbootable :P. I'm off to make a rescue floppy (since the installed CD drive is toasted...)

In any case, apparently debian does use LILO - was there a time when a boot loader wasn't required? (because I could swear I remember a "none" option on RH9, and I remember LILO wouldn't work on that box, and I'm pretty sure I didn't install GRUB...)

Further reading shos that it should have my image all ready for me (<3 atp) - it's just that it's having an issue finding it's root partition. Prehaps a mismade image file, I'll look into it.

Thanks for the help though :-)

After playing the gambling game, I've rendered my system unbootable :P. I'm off to make a rescue floppy (since the installed CD drive is toasted...)

In any case, apparently debian does use LILO - was there a time when a boot loader wasn't required? (because I could swear I remember a "none" option on RH9, and I remember LILO wouldn't work on that box, and I'm pretty sure I didn't install GRUB...)

Further reading shos that it should have my image all ready for me (<3 atp) - it's just that it's having an issue finding it's root partition. Prehaps a mismade image file, I'll look into it.

Thanks for the help though :-)

edit: trying to find a decent floppy image, neither of the two I've tried so far have worked ^_^;;. Pretty sure this one will. I'll post a link and mini walkthrough once I've fixed my system :-).
edit #2: Now I'm thinking It's my floppy drive (tried 3 floppies, 3 images, same results). Attempting to continue with the original debian one, entered kernel.bin for the kernel... it's loading as I add this edit <_<;;
edit #3: After major hardware issues (series of failed bits which affected both the cd drive, floppy, and etc...) I've finally got the mini howto:

1) Grab a rescue disk. Anything that'll give you a shell will do.

1.5 a) Assuming you're on a floppy you may want to remount onto your old root if things are fubared:
1.5 b) mount /dev/hd__ /mnt/linux (you may need to create /mnt/linux first)
1.5 c) cd /mnt/linux
1.5 d) chroot .

You'll still need to mount /dev/hd__ if you're using a CD, but the chroot will be un-necessary and probably in the way ("ls -l" segfaulted due to the differing kernels of the floppy and the root system for which the stdlib that ls used was installed for)

2) Find the appropriate entry in /etc/lilo.conf - there should be a few image= lines. Try searching for "Linux" as that will probably be the menu label, even if you never see a menu.
3) Assuming you've had a symlink to initrd made (on my system it was made as /initrd.img) change your config from something like:

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

to:

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

3a) If you're new to command line editing, here's what you want to do:

either:
# vi /mnt/linux/etc/lilo.conf
or:
# vi /etc/lilo.conf
depending on wheither you chrooted or not

3b) Press the up/down arrows until you get to just above where you want to insert the initrd line
3b) Hit the O key to open a new line down there
3c) Hit TAB, then enter "initrd=/initrd.img" without the quotes.
3d) Hit ESCAPE to stop editing the line
3e) Hit COLON ( then enter "wq" and hit ENTER to save your changes and exit.

4) run /sbin/lilo as root to update your MBR
5) reboot, I was fixed at this point.

Last edited by MaulingMonkey; 01-10-2005 at 07:33 AM.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
wireless Keyboard not working to select boot options (Grub boot loader) psrini_vasan Fedora 7 12-16-2009 05:45 PM
Grub boot loader menu shows two linux boot options pramos Linux - Newbie 3 09-12-2004 11:40 PM
Require program to boot multiple OS. (Red Hat, SuSE and Mandrake) sjia Linux - Newbie 7 01-31-2004 04:57 PM
APM fails on boot & MCC/drakconf.real require root login donjuan Mandriva 4 11-02-2003 04:55 PM
How to add a boot record which used to startup windows under my Grub boot loader? yunxiang Linux - Newbie 6 02-01-2003 02:22 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 06:06 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
Open Source Consulting | Domain Registration