Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
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.
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
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".
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?
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.
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).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.