LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 01-24-2004, 02:43 AM   #1
Linux~Powered
Member
 
Registered: Jan 2004
Location: /lost+found
Distribution: Slackware 14.2
Posts: 849

Rep: Reputation: 33
lilo.conf help


Ok, i am stuck between a rock and a hard place here. I want lilo to have two boot options; one Linux and one Winblows. I thought i was doing this right when i edited my lilo.conf... apparently not because i don't see a Winblows option in lilo upon bootup. At the bottom of the lilo.conf i added the "# DOS..." here is my conf file... Can someone tell me what it is i am doing wrong here


# LILO configuration file
# generated by 'liloconfig'
#
# Start LILO global section
append="hdc=ide-scsi"
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 @ 800x600x256
vga = 771
# 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/hda3
label = Linux
read-only
# Linux bootable partition config ends
# DOS bootable partition config begins
other = /dev/hda1
label = Winblows
table = /dev/hda/
# DOS bootable partition config ends
 
Old 01-24-2004, 02:51 AM   #2
scott_R
Member
 
Registered: Jul 2003
Location: Brighton, Michigan, USA
Distribution: Lots of distros in the past, now Linux Mint
Posts: 748

Rep: Reputation: 31
other=/dev/hda1
label="windows"
table=/dev/hda

This is one of mine w/windows2000, and it looks the same. The only real differences are the tabs, quotes and spaces, but that shouldn't make much difference, I think. Still, maybe it'll give you some insights.

Edit: The label and table lines are indented, but LQ isn't showing them when I post.
 
Old 01-24-2004, 03:07 AM   #3
Linux~Powered
Member
 
Registered: Jan 2004
Location: /lost+found
Distribution: Slackware 14.2
Posts: 849

Original Poster
Rep: Reputation: 33
I tried it without the spaces and still no luck.
 
Old 01-24-2004, 06:47 AM   #4
muah
Member
 
Registered: Aug 2003
Location: Europe
Distribution: Slackware (current)
Posts: 228

Rep: Reputation: 33
Do u run lilo everytime u do changes in lilo.conf?
 
Old 01-24-2004, 11:08 AM   #5
Linux~Powered
Member
 
Registered: Jan 2004
Location: /lost+found
Distribution: Slackware 14.2
Posts: 849

Original Poster
Rep: Reputation: 33
What do you mean "Do u run lilo everytime u do changes in lilo.conf?" ? Do you mean do i reboot everytime i change the lilo.conf. If that is what you are asking then yes, i reboot everytime i change lilo.conf and i still only have one option...Linux. Nothing really wrong with that, but i do need access to Winblows sometimes... Bummer!
 
Old 01-24-2004, 11:11 AM   #6
muah
Member
 
Registered: Aug 2003
Location: Europe
Distribution: Slackware (current)
Posts: 228

Rep: Reputation: 33
Everytime u do changes in lilo.conf u have to execute command 'lilo'. At this point the Lilo saves changes to MBR. Only writing changes in lilo.conf withotu executing lilo dont change anything.
After running 'lilo' u should get some message, something like
*Linux Added
*Windows Added
 
Old 01-24-2004, 11:36 AM   #7
Linux~Powered
Member
 
Registered: Jan 2004
Location: /lost+found
Distribution: Slackware 14.2
Posts: 849

Original Poster
Rep: Reputation: 33
I type lilo in the command line and get nothing. What is the message_txt. It is in /boot mine looks like this...

Welcome to the LILO Boot Loader!

Please enter the name of the partition you would like to boot
at the prompt below. The choices are:

Linux - Linux (Linux native partition)



---------------------------------------------------------------
i alst tried adding this with still no luck...

Winblows - Winblows (DOS native partition)
 
Old 01-24-2004, 11:47 AM   #8
muah
Member
 
Registered: Aug 2003
Location: Europe
Distribution: Slackware (current)
Posts: 228

Rep: Reputation: 33
I get:
Quote:
root@slack:~# lilo
Added Linux *
root@slack:~#
'lilo' command is this file - /sbin/lilo check if u have it there, i suppose u try to run it as root. U said u got nothing when u executed this command, not even an error message?
 
Old 01-24-2004, 12:02 PM   #9
Linux~Powered
Member
 
Registered: Jan 2004
Location: /lost+found
Distribution: Slackware 14.2
Posts: 849

Original Poster
Rep: Reputation: 33
I didn't know you had to do it as root. It works now! Thank you for your help.
 
  


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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

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
Open Source Consulting | Domain Registration