LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 07-04-2003, 09:02 AM   #1
NiallC
Member
 
Registered: Feb 2003
Distribution: Suse 8.1
Posts: 102

Rep: Reputation: 15
Configuring LILO


Hello

How do I get the LILO menu to choose Windows as the defaul start up option?

Right now the boot list is:

Linux
Windows

I'd like to be

Windows
Linux

Any ideas?

TIA.

Nialll
 
Old 07-04-2003, 09:40 AM   #2
nautilus_1987
Member
 
Registered: Aug 2002
Distribution: Slackware 8.1
Posts: 750

Rep: Reputation: 30
very simple, put windows section in lilo.conf above linux section
 
Old 07-04-2003, 10:15 AM   #3
NiallC
Member
 
Registered: Feb 2003
Distribution: Suse 8.1
Posts: 102

Original Poster
Rep: Reputation: 15
Configuring LILO

Hi,

I should have been more specific.
I'm using Suse 8.1.

There is no file on my system called "lilo.conf".

There's and update_lilo.conf, and a mk_lilo.conf, but neither of these contain the word "windows"

Thanks for replying so fast, but that didn't solve it I'mn afraid.....

Niall.
 
Old 07-04-2003, 10:26 AM   #4
nautilus_1987
Member
 
Registered: Aug 2002
Distribution: Slackware 8.1
Posts: 750

Rep: Reputation: 30
Ok, NiallC, please post both files here. I will examine them ( and put name of your OS in your profile )
 
Old 07-04-2003, 10:44 AM   #5
NiallC
Member
 
Registered: Feb 2003
Distribution: Suse 8.1
Posts: 102

Original Poster
Rep: Reputation: 15
Configuring LILO

Ok - I was mistaken with those files, but I did find the following:

lilo.raid.conf

#
# lilo.raid.conf
#
#
# A RAID installation is called for. With (version 22) of LILO
# the boot record will be installed on the RAID partition. The
# Master Boot Record will find the record on (hda2), which is marked
# as an active partition. (sdb1) is also marked active. If (hda) fails,
# it will be possible to boot by disabling the IDE controller in BIOS,
# which will cause (sdb) to become device 0x80, and boot appropriately.

boot = /dev/md1

#
# Auxiliary boot records will be installed automatically. Since
# this is a PARALLEL raid device, there will be no boot records
# other that the one written to the RAID set (sdb1, hda2).

raid-extra-boot = auto

#
# The SCSI controller BIOS assigns device codes backwards
# from what one might expect, so we make the BIOS device
# code assignment by the BIOS explict:

disk=/dev/hda
bios=0x80
disk=/dev/sda
bios=0x82
disk=/dev/sdb
bios=0x81

#
# Always prompt for a boot selection, timing out after
# 30.0 seconds

prompt
timeout=300

#
# Use the MENU interface, specifying the title and color scheme

install = /boot/boot-menu.b
menu-title = " RAID boot on CARMEN "
menu-scheme = "wk:Wg:wk:Gk"

#
# Specify the kernel to boot if the use makes no selection
# withing the 'timeout=' period.

default=linux

#
# Both kernels below use the same root directory, which
# is mounted initially "read-only"

root=/dev/md1
read-only


#########################################
# end sample-raid.conf Global section #
#########################################

#
# This is the kernel we usually boot

image=/boot/vmlinuz-2.4.2-2
label=linux
append="reboot=warm"
initrd=/boot/initrd-2.4.2-2.img

#
# This is an alternate kernel

image=/boot/vmlinuz-2.2.14-5.0
label=linux.bak
append="reboot=warm"
initrd=/boot/initrd-2.2.14-5.0.img

#
# This system also will run DOS, but we have
# to fake DOS into thinking it is booting from
# drive C:

other=/dev/sdb2
label=dosB2
map-drive = 0x80 to = 0x81
map-drive = 0x81 to = 0x82
map-drive = 0x82 to = 0x80

#
# We can boot OS/2 from a secondary partition. The 'table='
# specification tells OS/2 that the secondary (boot) parition
# mounts as drive E:. Versions of LILO prior to version 22 will
# require a special boot loader, but as of version 22, all
# chain loader functions have been combined into the default
# chain loader, '/boot/chain.b'.

other=/dev/sda5
# loader=/boot/os2_d.b
label=os2
table=E:
change
partition=/dev/hda1
set=DOS16_big_hidden
partition=/dev/hda2
set=NTFS_hidden

# Partition change rules are required to force drive E: to
# be assinged properly. MS & IBM partitions may be NORMAL
# or HIDDEN.

#########################################
# end sample-raid.conf #
#########################################

and

#
# lilo.sample.conf
#
# The boot record is installed on the second primary partition
# Which will have to be marked active to get to it.

boot = /dev/hda2

#
# The map file is placed in the default location, but
# we change the name to '.map', since it is a critical system file

map = /boot/.map

#
# LBA32 is needed to address all sectors of the 27Gb disks
# on this system

lba32

#
# We ask for the MENU interface (works on VGA, EGA, and MDA video cards)
# by installing this boot loader:

install = /boot/boot-menu.b

#
# and specify the color scheme and menu title
# for the computer named DESDEMONA

menu-scheme=wm:rw:wm:Wm
menu-title=" DESDEMONA (2.4.2) boot "

#
# We always want to see the prompt with a 15 second timeout

prompt
timeout=150

#
# If a LOCKed command line, or pre-stored command line is present
# delay 3 seconds to allow cancellation with the Shift key

delay=30

#
# All filesystems will initially be mounted 'read-only'

read-only

#
# Booting may be performed from the serial interface

serial=0,9600

#
# All other= sections use this chain loader (version 22)

loader=/boot/chain.b

# This system is complicated -- leave no doubt about how the
# BIOS has assigned the device codes:

disk=/dev/hda bios=0x80
disk=/dev/hdb bios=0x81
disk=/dev/hdc bios=0x82
disk=/dev/sda bios=0x83

#################################################
# end of sample-lilo.conf Global section #
#################################################

#
# The first image is the default image

image=/dd/boot/vmlinuz-2.4.2
label=2.4.2
root=current
append="reboot=warm"

#
# Yes, we run Windoze, too

other=/dev/hda1
label=win_2k
table=/dev/hda

#
# This is the backup kernel from RedHat

image=/dd/boot/vmlinuz-2.2.14-5.0
label=RH62
initrd=/dd/boot/initrd-2.2.14-5.0.img
append="reboot=warm"
root=/dev/hda7

#
# The D: drive has a Win98 installation
# Fake booting from drive C: with the map-drive options

other=/dev/hdb1
label=win_98
map-drive=0x80 to=0x81
map-drive=0x81 to=0x80

#
# This is an experimental, small kernel

image=/dd/boot/zImage-2.2.14
label=zI-2.2.14
root=/dev/hda7

#
# And a route back to the Master Boot Record, if wanted

other=/dev/hda
label=MBR

#################################################
# end of sample-lilo.conf #
#################################################

I think this is where I need to make the changes, but I'm not clear as to where I should alter the file.

Thanks again,

Niall.




ans
 
Old 07-04-2003, 12:01 PM   #6
Edward78
Member
 
Registered: Jul 2002
Distribution: OpenSuSE 11
Posts: 441

Rep: Reputation: 30
You can do it through YaST2 > System > Bootloader config
 
Old 07-04-2003, 12:29 PM   #7
nautilus_1987
Member
 
Registered: Aug 2002
Distribution: Slackware 8.1
Posts: 750

Rep: Reputation: 30
Niall, first make copies of files
Secondly,
#################################################
# end of sample-lilo.conf Global section #
#################################################

#
# The first image is the default image
other=/dev/hda1
label=win_2k
table=/dev/hda

image=/dd/boot/vmlinuz-2.4.2
label=2.4.2
root=current
append="reboot=warm"

#
# Yes, we run Windoze, too



#
# This is the backup kernel from RedHat

image=/dd/boot/vmlinuz-2.2.14-5.0
label=RH62
initrd=/dd/boot/initrd-2.2.14-5.0.img
append="reboot=warm"
root=/dev/hda7

#
# The D: drive has a Win98 installation
# Fake booting from drive C: with the map-drive options

other=/dev/hdb1
label=win_98
map-drive=0x80 to=0x81
map-drive=0x81 to=0x80

#
# This is an experimental, small kernel

image=/dd/boot/zImage-2.2.14
label=zI-2.2.14
root=/dev/hda7

#
# And a route back to the Master Boot Record, if wanted

other=/dev/hda
label=MBR

#################################################
# end of sample-lilo.conf #
#################################################

Try that.
By the way, you running so many OS's???
 
Old 07-04-2003, 12:42 PM   #8
NiallC
Member
 
Registered: Feb 2003
Distribution: Suse 8.1
Posts: 102

Original Poster
Rep: Reputation: 15
Thank you,thank you, thank you

I took the easy road and used Yast. But thank you nautilus for the long version too.

BTW - the reason for so many OS's is simply that I do a lot of forensics work and this machine is my test machine. I'm new to LInux, and rapidly learning it's inner workings, but sometimes it's the little things that get me stumped.

In the LILO case, I was simply trying to find a way to NOT have to monitor the boot process every time. More of a laziness thing.

Thanks again, this is, as always, a great resource.

Niall.
 
Old 07-04-2003, 01:38 PM   #9
nautilus_1987
Member
 
Registered: Aug 2002
Distribution: Slackware 8.1
Posts: 750

Rep: Reputation: 30
You are always welcome Nialls, so know everything is as you wanted?
 
Old 07-04-2003, 01:39 PM   #10
nautilus_1987
Member
 
Registered: Aug 2002
Distribution: Slackware 8.1
Posts: 750

Rep: Reputation: 30
if you are hasitating what linux to use, install Slack!
 
  


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
Having trouble configuring Lilo? jacatone Linux - Newbie 6 07-06-2005 08:03 AM
Configuring Lilo? Ricky2004 Linux - Software 5 05-06-2005 04:15 PM
Configuring Lilo Brad4321 Linux - Newbie 6 09-26-2004 11:11 AM
configuring lilo ksd Slackware 30 10-14-2003 10:49 AM
Configuring LILO iqlinux Linux - Software 7 01-31-2001 11:53 PM


All times are GMT -5. The time now is 11:12 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration