LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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 01-13-2006, 12:32 AM   #1
lilili
Member
 
Registered: Jan 2006
Location: SantaBarbara
Distribution: Slackware 12.1
Posts: 196

Rep: Reputation: 30
configure lilo


hi
i have 2 hard drive
hda1 xp
hdd2 linux
right now i have to go thru bios eveytime i want to go to different os and choose the corresponding hd
can i set lilo to boot to linux or windows, so within 30 s if i don't put anything lilo will boot to linux?

Thank you
 
Old 01-13-2006, 12:42 AM   #2
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: Tupelo, MS
Distribution: Gentoo
Posts: 6,926

Rep: Reputation: 124Reputation: 124
You'll need to run "liloconfig" as root in a terminal to set this up the first time. Install LiLO to your MBR, and don't worry. I feel that it's going to be pretty self-explanatory, but if you have questions, ask back.

Here's my /etc/lilo.conf for a dual boot Slackware-10.2 / Windoze XP box:
Code:
# LILO configuration file
# generated by 'liloconfig'
#
# Start LILO global section
boot = /dev/sda
#compact        # faster, but won't work on all systems.
prompt
timeout = 50
# VESA framebuffer console @ 1024x768x256
vga = 773
# ramdisk = 0     # paranoia setting
# End LILO global section
# Linux bootable partition config begins
image = /boot/vmlinuz-2.6.15
  root = /dev/sda6 
  label = Slackware
  read-only
image = /boot/vmlinuz-2.6.13.4
  root = /dev/sda6
  label = Slack-2.6.13.4
  read-only
image = /boot/vmlinuz
  root = /dev/sda6
  label = Slack-2.4.31
  read-only # Non-UMSDOS filesystems should be mounted read-only for checking
# Linux bootable partition config ends
# Windows bootable partition config begins
other = /dev/sda1
  label = WinXP
#  map-drive = 0x80
#   to = 0x81
#  map-drive = 0x81
#   to = 0x80
  table = /dev/sda
# Windows bootable partition config ends
You'll need to adjust the devices for yours, and change the timeout from 50 (5 seconds) to 300 (30 seconds). Probably might want to check your framebuffer console settings, also. But you really shouldn't have to edit anything manually, once you run "liloconfig" and reboot, you should be good to go.
 
Old 01-13-2006, 12:26 PM   #3
lilili
Member
 
Registered: Jan 2006
Location: SantaBarbara
Distribution: Slackware 12.1
Posts: 196

Original Poster
Rep: Reputation: 30
from your lilo config, i see that you only have 1 hard drive sda with many partitions.
in my case i have 2 hard drives
which one should i put on boot = /dev/hda (xp) or boot = /dev/hdd (linux)

# Windows bootable partition config begins
other = /dev/sda1, in my case this should be my /dev/hda1. is that correct? hda1 is my windows partition

Thank You
 
Old 01-13-2006, 12:38 PM   #4
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
You should be able to use "boot = /dev/hda" with no problems and yes, your "other = /dev/hda1" is correct. Also, you'd need to have "table = /dev/hda".
 
Old 01-13-2006, 01:24 PM   #5
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: Tupelo, MS
Distribution: Gentoo
Posts: 6,926

Rep: Reputation: 124Reputation: 124
If you run "liloconfig" as I suggested then it will probably set it up just right for you. All you'll have to do is choose the proper Linux / (root) and Windows partitions. Did you run "liloconfig" as root yet?
 
Old 01-13-2006, 03:56 PM   #6
Poetics
Senior Member
 
Registered: Jun 2003
Location: California
Distribution: Slackware
Posts: 1,181

Rep: Reputation: 49
And make sure to run "lilo" as root after you're done configuring it for your settings to be written.
 
Old 01-13-2006, 03:59 PM   #7
bosewicht
Senior Member
 
Registered: Aug 2003
Location: Honolulu, HI
Distribution: Arch
Posts: 1,380

Rep: Reputation: 47
and make sure to run lilo if/when you upgrade the kernel(and everytime for that matter), otherwise lilo will be pointing at the wrong vmlinuz
 
Old 01-14-2006, 12:46 AM   #8
lilili
Member
 
Registered: Jan 2006
Location: SantaBarbara
Distribution: Slackware 12.1
Posts: 196

Original Poster
Rep: Reputation: 30
Thank you, i have set now
 
Old 01-14-2006, 03:02 AM   #9
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: Tupelo, MS
Distribution: Gentoo
Posts: 6,926

Rep: Reputation: 124Reputation: 124
Quote:
Originally Posted by lilili
Thank you, i have set now
It would be nice if you posted back what you did to correct the problem, so that if someone else's search finds this thread, they'll be able to read what you did.
 
Old 01-14-2006, 03:31 AM   #10
lilili
Member
 
Registered: Jan 2006
Location: SantaBarbara
Distribution: Slackware 12.1
Posts: 196

Original Poster
Rep: Reputation: 30
i follow your step do the liloconf
but i think that install lilo to my hda, is that correct?

so my guess is now i have lilo installed on each hard drive?
can i have just on 1 and uninstall the other one?

Thank You

Last edited by lilili; 01-14-2006 at 03:33 AM.
 
Old 01-14-2006, 03:33 AM   #11
lilili
Member
 
Registered: Jan 2006
Location: SantaBarbara
Distribution: Slackware 12.1
Posts: 196

Original Poster
Rep: Reputation: 30
i follow your step do the liloconf
but i think that install lilo to my hda, is that correct?

so my guess is now i have lilo installed on each hard drive?
can i have just on 1 and uninstall the other one?

Thank You
 
Old 01-14-2006, 03:47 AM   #12
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: Tupelo, MS
Distribution: Gentoo
Posts: 6,926

Rep: Reputation: 124Reputation: 124
Good. You only have one /etc/lilo.conf file, and that is simply the configuration file on the drive with your Linux operating system. If you chose to install LiLO to the MBR, then it has placed a boot loader into the first sector of your first partition on your first hard drive (/dev/hda). For more information you can read:
http://en.wikipedia.org/wiki/Master_Boot_Record
and
http://www.ata-atapi.com/hiwmbr.htm

You don't have two boot loaders, and you don't have two /etc/lilo.conf files. You are okay. If you want to see how "liloconfig" setup /etc/lilo.conf, you can type "cat /etc/lilo.conf" in a terminal (without the quotes) and it will print the contents of the file to stdout (your monitor).
 
  


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
try to configure Lilo in Slackware Pzibi Linux - Laptop and Netbook 6 10-22-2005 05:20 AM
How do you configure Lilo? jacatone Linux - Newbie 3 07-03-2005 05:56 PM
How can I configure Lilo to run FreeBSD? Mr. Hill *BSD 7 03-14-2005 09:56 PM
How do you configure LILO under Mandrake? Ekim Gram Linux - Distributions 2 06-29-2003 08:58 PM
can't configure lilo elad Linux - Software 9 03-30-2001 09:14 AM


All times are GMT -5. The time now is 05:58 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