LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 07-20-2004, 06:18 PM   #1
0x86
LQ Newbie
 
Registered: Jul 2004
Posts: 28

Rep: Reputation: 15
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

Last edited by 0x86; 07-20-2004 at 06:21 PM.
 
Old 07-20-2004, 11:12 PM   #2
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 655Reputation: 655Reputation: 655Reputation: 655Reputation: 655Reputation: 655
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
 
Old 07-21-2004, 02:27 PM   #3
Sepero
Member
 
Registered: Jul 2004
Location: Tampa, Florida, USA
Distribution: Ubuntu
Posts: 734
Blog Entries: 1

Rep: Reputation: 31
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.
 
  


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
lilo.conf question about booting please help!! xmarcusx Linux - Software 5 11-20-2005 07:01 AM
quick favour! post up your lilo.conf closet geek Mandriva 5 12-16-2003 09:59 AM
quick grub.conf question dot hog Linux - Newbie 1 10-17-2003 05:19 PM
Quick question about LILO... Grim Reaper Linux - General 1 02-04-2003 01:06 AM
LILO: Just a quick question BEFORE I screw things up..... icd30 Linux - General 2 09-29-2002 06:08 PM


All times are GMT -5. The time now is 10:09 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration