Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 08-23-2003, 06:29 AM   #1
LQ Newbie
Registered: Aug 2003
Posts: 6

Rep: Reputation: 0
About lilo.conf

I'm a newbie,i had install three operating system --win2000 pro,
RH9.0,win2000 advance server.When the computer starting,
i only can see two choices--linux and windows .what should i do
if i want to see three choices?
how to edit lilo.conf or else file?
Old 08-23-2003, 08:03 AM   #2
Senior Member
Registered: Jun 2003
Location: Sydney
Distribution: Debian, FreeBSD
Posts: 1,713

Rep: Reputation: 53
OK I assume all three are on different partitions. Enter linux and make sure you know which partition each operating system is on. If you don't, type "fdisk /dev/hda" (as root). Press "p" to see your partition table. Write down all the relevant paritions (eg linux is on /dev/hda1, win2000 is on /dev/hda2 etc). If you have more than one disk repeat the above step for each one (eg "fdisk /dev/hdb", "fdisk /dev/hdc" etc). That is for IDE disks. SCSI disks are called /dev/sda, /dev/sdb etc. Make a copy of your existing /etc/lilo.conf file (call it something like lilo.conf.old). Edit your /etc/lilo.conf file (as root)and find the other=<whatever> section (usually at the bottom). Add a stanza for the missing parition:

other=/dev/hdax (/dev/hdax is the name of the missing parition that you gleaned from fdisk)
label="Win2000" (this can say whatever you like but it can't have spaces in it)

Save and exit. The type "lilo" (as root) at the command prompt. If it shows errors then you'll need to fix them up before rebooting. If all else fails restore your old lilo.conf and type "lilo". Then post your errors here. The successful output should look something like this:

added Linux*
added Win2000pro
added Win2000adv

The bit after "added" in every line should correspond to the "label=" line in your lilo.conf. The asterisk indicates which one is the default.

Last edited by adz; 08-23-2003 at 08:06 AM.
Old 08-23-2003, 08:06 AM   #3
Registered: Aug 2002
Location: Egypt
Distribution: Debian Sarge, Slackware 10.0
Posts: 163

Rep: Reputation: 30
Open a terminal and type man lilo.conf . Read the manual, and this will answer all your questions...
If you still don't know how to edit lilo.conf , search for tutorials related with this subject in , you'll find many.
Old 08-23-2003, 01:07 PM   #4
Senior Member
Registered: Jun 2003
Distribution: Debian/other
Posts: 2,104

Rep: Reputation: 45
how to edit lilo.conf or else file?
In general -

Open a shell command line.



press enter

Then type your Root password

press enter

then type

gedit /etc/lilo.conf

or use your favourite editor.

press enter

make the changes and save the file.

Last edited by Skyline; 08-23-2003 at 01:09 PM.


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
Switching from grub to lilo, messed up Lilo.conf, rescuing via Knoppix. SonicGT Debian 2 08-21-2005 01:15 PM
lilo.conf and lilo.conf.anaconda difference blackzone Linux - General 1 07-06-2004 03:15 AM
lilo.conf.anaconda v. lilo.conf rbaird2001 Red Hat 1 04-01-2004 12:16 PM
create lilo.conf or grub.conf through commands newpenguin Linux - Software 1 11-28-2003 08:22 PM
lilo.conf and grub.conf no read access shanenin Linux - Software 1 10-02-2003 03:53 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:58 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration