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 |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
07-04-2003, 09:02 AM
|
#1
|
Member
Registered: Feb 2003
Distribution: Suse 8.1
Posts: 102
Rep:
|
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
|
|
|
07-04-2003, 09:40 AM
|
#2
|
Member
Registered: Aug 2002
Distribution: Slackware 8.1
Posts: 750
Rep:
|
very simple, put windows section in lilo.conf above linux section
|
|
|
07-04-2003, 10:15 AM
|
#3
|
Member
Registered: Feb 2003
Distribution: Suse 8.1
Posts: 102
Original Poster
Rep:
|
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.
|
|
|
07-04-2003, 10:26 AM
|
#4
|
Member
Registered: Aug 2002
Distribution: Slackware 8.1
Posts: 750
Rep:
|
Ok, NiallC, please post both files here. I will examine them ( and put name of your OS in your profile  )
|
|
|
07-04-2003, 10:44 AM
|
#5
|
Member
Registered: Feb 2003
Distribution: Suse 8.1
Posts: 102
Original Poster
Rep:
|
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
|
|
|
07-04-2003, 12:01 PM
|
#6
|
Member
Registered: Jul 2002
Distribution: OpenSuSE 11
Posts: 441
Rep:
|
You can do it through YaST2 > System > Bootloader config
|
|
|
07-04-2003, 12:29 PM
|
#7
|
Member
Registered: Aug 2002
Distribution: Slackware 8.1
Posts: 750
Rep:
|
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???
|
|
|
07-04-2003, 12:42 PM
|
#8
|
Member
Registered: Feb 2003
Distribution: Suse 8.1
Posts: 102
Original Poster
Rep:
|
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.
|
|
|
07-04-2003, 01:38 PM
|
#9
|
Member
Registered: Aug 2002
Distribution: Slackware 8.1
Posts: 750
Rep:
|
You are always welcome Nialls, so know everything is as you wanted?
|
|
|
07-04-2003, 01:39 PM
|
#10
|
Member
Registered: Aug 2002
Distribution: Slackware 8.1
Posts: 750
Rep:
|
if you are hasitating what linux to use, install Slack!
|
|
|
All times are GMT -5. The time now is 12:18 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|