LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to remove entries in the lilo boot menu? (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-remove-entries-in-the-lilo-boot-menu-18145/)

Rampage2884 04-09-2002 09:36 PM

How to remove entries in the lilo boot menu?
 
I've updated the kernel but now lilo gives me 2 kernal options to boot from?

I removed the intries from the boot manager options in the control panel, but that didn't work.

Is there a way to remove these entries?

trickykid 04-09-2002 10:23 PM

edit your /etc/lilo.conf file accordingly..

neo77777 04-09-2002 10:23 PM

edit your /etc/lilo.conf file
you will see there sections such as
default=linux

image=/boot/vmlinuz-2.4.7-10
label=linux
initrd=/boot/initrd-2.4.7-10.img
read-only
root=/dev/hda1
append="hdc=ide-scsi hdd=ide-scsi mem=nopentium"

image=/boot/works_even_better
label=linux2.4.18
read-only
root=/dev/hda1
append="hdc=ide-scsi hdd=ide-scsi mem=nopentium"

Remove image= ....
so it will look like
default=linux2.4.18
image=/boot/works_even_better
label=linux2.4.18
read-only
root=/dev/hda1
append="hdc=ide-scsi hdd=ide-scsi mem=nopentium"

and rerun lilo
/sbin/lilo
that's all
Note: It is a snapshot of my lilo.conf yours will be different.

linuxcool 04-09-2002 10:29 PM

Try editing your /etc/lilo.conf file and remove the image section you don't want. Then run /sbin/lilo. If you have a ' default= ', then make sure the name that's listed matches the name in the ' label= ' line of the remaining image section. If it doesn't match, you'll get an ' image not found ' error.


I definitely have to work on my typing speed! :D

Rampage2884 04-09-2002 10:51 PM

oh man, you guys are awesome, it worked perfectly.

Thanks again for the help :) :) :)


All times are GMT -5. The time now is 12:54 AM.