LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 03-30-2008, 12:17 PM   #1
themadatter
LQ Newbie
 
Registered: Mar 2008
Location: Belfast - Northern Ireland
Distribution: Slackware
Posts: 7

Rep: Reputation: 0
Lilo - How do I remove "Windows" from the boot menu ?


Hi there,

I run LILO with Slackware 12 and when the computer starts, I get the LILO screen with 2 boot options; Windows and Linux.
There is a counter that will boot the selected OS after a period of time if RETURN key is not pressed.

I do not have windows on this machine and it must be picking up some remnant of windows on the boot sector.

Because the computer is remote (usually) I sometimes do restarts and it will always try to boot this fantasy windows OS unless I intervene.



Q.

How do I remove windows from the boot menu and get LILO to automatically boot linux without having to select anything ?


Thanks !!
Jamie
 
Old 03-30-2008, 12:19 PM   #2
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Edit /etc/lilo.conf and remove the section for Windows. Edit: after doing so, you'll need to re-run lilo (or /sbin/lilo).
 
Old 03-30-2008, 01:31 PM   #3
themadatter
LQ Newbie
 
Registered: Mar 2008
Location: Belfast - Northern Ireland
Distribution: Slackware
Posts: 7

Original Poster
Rep: Reputation: 0
Reply -

Hey Nylex,

Thanks for the reply.
I have already done this.

Here is shot of my current /etc/lilo.conf file.

Any ideas ?

Thanks !
Jamie


# LILO configuration file
# generated by 'liloconfig'
#
# Start LILO global section
boot = /dev/hda
message = /boot/boot_message.txt
prompt
timeout = 1200
# Override dangerous defaults that rewrite the partition table:
change-rules
reset
# VESA framebuffer console @ 1024x768x256
vga = 773
# Normal VGA console
# vga = normal
# VESA framebuffer console @ 1024x768x64k
# vga=791
# VESA framebuffer console @ 1024x768x32k
# vga=790
# VESA framebuffer console @ 1024x768x256
# vga=773
# VESA framebuffer console @ 800x600x64k
# vga=788
# VESA framebuffer console @ 800x600x32k
# vga=787
# VESA framebuffer console @ 800x600x256
# vga=771
# VESA framebuffer console @ 640x480x64k
# vga=785
# VESA framebuffer console @ 640x480x32k
# vga=784
# VESA framebuffer console @ 640x480x256
# vga=769
# End LILO global section
# Linux bootable partition config begins
image = /boot/vmlinuz
root = /dev/hda4
label = Linux
read-only
# Linux bootable partition config ends
 
Old 03-30-2008, 01:42 PM   #4
Maligree
Member
 
Registered: Mar 2008
Distribution: Gentoo, CentOS, Fedora, Arch
Posts: 231
Blog Entries: 1

Rep: Reputation: 42
Did you run /sbin/lilo after changing lilo.conf? It'll 'reinstall' lilo with the new configuration.

You can always try running liloconfig if you don't want to mess with the config file yourself. On the other hand.. Slackware is all about getting your hands dirty.
 
Old 03-30-2008, 02:12 PM   #5
themadatter
LQ Newbie
 
Registered: Mar 2008
Location: Belfast - Northern Ireland
Distribution: Slackware
Posts: 7

Original Poster
Rep: Reputation: 0
Ahh

Hey,

First, Nylex, I'm sorry I didn't re-run /sbin/lilo !

Maligree :

Thanks for re prompting me to do that !


It has solved my problem. LILO now boots straight to Slackware but I have a new problem in the form of :

"Kernel panic : can't load INIT - try passing INIT = to the Kernal".


I can't figure how this has happened as LILO has done it's job by this point (I think?).


Anyway. Thanks for the help; I'm off to battle my first boot-loader problem (forces a flatly enthusiastic smile) -


Cheers
Jamie
 
Old 03-30-2008, 07:42 PM   #6
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 11,281
Blog Entries: 3

Rep: Reputation: 1446Reputation: 1446Reputation: 1446Reputation: 1446Reputation: 1446Reputation: 1446Reputation: 1446Reputation: 1446Reputation: 1446Reputation: 1446
Hi,

It looks like you need to make a initrd. Read the '/boot/README.initrd' to see what is necessary.
 
  


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
How to configure "lilo.conf" to boot FreeBSD, the 3rd OS besides Windows and Linux chuanweizuo Linux - General 1 02-13-2008 08:00 PM
How to configure "lilo.conf" to boot FreeBSD, the 3rd OS besides Windows and Linux chuanweizuo Linux - General 2 02-13-2008 07:19 AM
uninstall boot loader "Lilo" install "Grub" sethis Linux - Newbie 6 11-30-2006 09:32 AM
Remove LILO bootloader from "dual boot" Honkeychops Mandriva 10 12-08-2005 10:40 PM
how can I boot windows in "failsafe" mode with LILO? julian_s Linux - Newbie 5 01-19-2004 10:13 AM


All times are GMT -5. The time now is 09:39 PM.

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