LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   lilo.conf quick question (http://www.linuxquestions.org/questions/linux-software-2/lilo-conf-quick-question-207576/)

0x86 07-20-2004 06:18 PM

lilo.conf quick question
 
Im installing a new kernel and I need to know how to add this new kernel to the lilo.conf ifle. It is kernel version 2.6.7... this is my current config, how would I add the new kernel to it? (P.S. I am a total NewB so any general tips would be usefull too:P) Like, what is the map file? What are initrd files and when would I use them? (Do I need to make one for the new kernel?)


boot=/dev/hda
root=/dev/hdb1
map=/boot/map

message=/boot/bootmess.txt
prompt
delay=150
timeout=150

vga=normal

default=Linux

image=/vmlinuz
label=Linux
read-onl
initrd=/initrd.img

image=/vmlinuz.old
label=LinuxOLD
read-only
optional
initrd=/initrd.img.old

other=/dev/sda1
label=Windows

jschiwal 07-20-2004 11:12 PM

How did you install the new kernel. The stanza
Code:

image=/vmlinuz
label=Linux
read-only
initrd=/initrd.img

in your lilo.conf file could be referring to the new kernel if you installed the kernel with a package system or a script. The 'vmlinuz' file may be a link to the new kernel, with the old kernel entry being changed to vmlinuz.old.

The image= line contains the name of the kernel to boot. The initrd= line refers to the ram-disk file which corresponds to the same kernel.

However if this isn't the case, this should work.
image=/<kernel name>
label=Linux-<version>
initrd=/<name of new initrd>.img
read-only

Sepero 07-21-2004 02:27 PM

Re: lilo.conf quick question
 
Ok, let's take this one step at a time:

boot=/dev/hda
root=/dev/hdb1
map=/boot/map

boot=place where lilo is installed (/dev/hda=beginning of 1st harddrive)
root=place where the operating system files are
map=used for kernel debugging purposes

message=/boot/bootmess.txt
prompt
delay=150
timeout=150

message=message printed when booting?(not required)
delay, timeout=number of (mili?)seconds before automatically booting

vga=normal
default=Linux

vga=video setting(usually not required)
default=label of the OS to automatically boot after timeout

image=/vmlinuz
label=Linux
read-onl
initrd=/initrd.img

image=the kernel to boot (if /vmlinuz, then it is probably a symbolic link to the real kernel)
label=the display name at bootup
read-only=mount the root as non-writtable
initrd=this points to a "root image". this root image is mounted before your Real root filesystem. (this is used incase your Real root is somehow damaged)


So you probably want an entry something like this:
image=/boot/vmlinuz-2.6.7
label=Linux2.6.7
read-only
initrd=/boot/initrd.img-2.6.7



After you make the changes, you'll have to run lilo again.


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