Default OS

amexblue

Member
Mar 11, 2002
139
0
0
I have Linux 7.2 and Win2K on my machine. When my computer starts, if I do not select windows, it will boot up linux.
I was wondering if there is a way to change the configuration so that the default OS is windows.( that is windows boots up if I do not select linux within 10 seconds or so)

thanks
 

Barnaby W. Füi

Elite Member
Aug 14, 2001
12,343
0
0
read the man page for lilo.conf, but this is what you need to know for your question:

each entry has a label. its probably something like "Linux" and "win" or something like that. now look for a line that says "default=xxxxx"

change from the label of your linux partition to the label of your windows partition, save changes, then run "lilo -v -v" as root and make sure all is good, then it should be changed next time you boot.

edit: or you can just run "lilo", the two -v's make it extra verbose, which is not needed, but doesnt hurt :)
 

n0cmonkey

Elite Member
Jun 10, 2001
42,936
1
0
Oh yeah, you will have to run /sbin/lilo as root afterwards to push the config.

Look for the "Default=" line and change it to the windows config. duh.
 

amexblue

Member
Mar 11, 2002
139
0
0
Thank you.

Yesterday after going home, i edited /etc/lilo.conf. there was no default. So I used default=windows
the label for win2k was "windows"

Then I tried running lilo.conf as root from /sbin/lilo. It said the cylinder size was larger than 1024 or something.

I restarted the computer, but the changes did not take place.
Then I edited /etc/lilo.conf.anaconda. It had default=linux which I changed to default=DOS.
Then I tried running /sbin/lilo several times. It says the cylinder size was larger than 1024 :-(

:disgust::eek::(:confused:

If anyone has any suggestions, please let me know. I will try them after I reach home.
Thank you
 

Electrode

Diamond Member
May 4, 2001
6,063
2
81


<< Then I tried running /sbin/lilo several times. It says the cylinder size was larger than 1024 >>

run lilo -L (capital L) and it should work.
 

amexblue

Member
Mar 11, 2002
139
0
0
:( It didn't work.
after running lilo -L, I got something like this:

-Added
skipping /usr/sr/linux/arch/i386/boot/bzImage
Added NT *
Fatal: Kernel doesn't support initial RAM disks.
__________________________________________________

my lilo.conf looks like this as of now:
boot="/dev/hda"
timeout="50"
default=NT
message=/boot/message
root=/dev/hda3

image="/boot/vmlinuz-2.4.7-10"
label="2.4.7-10"
root="/dev/hda3"
read-only
initrd="/boot/initrd-2.4.7-10.img"

image="/usr/src/linux/arch/i386/boot/bzImage"
label="Linux_Compiled"
root="/dev/hda3"
read-only
optional

other=/dev/hda1
label="NT"

image="/dev/hda1"
root="/dev/hda3"
initrd="/boot/initrd-2.4.7-10.img"

default=NT
 

amexblue

Member
Mar 11, 2002
139
0
0
my lilo.conf.anaconda looks like this:
prompt
timeout=50
default=DOS
boot=/dev/hda
map=/boot/map
install=/boot/boot.b
message=/boot/message
lba32

image=/boot/vmlinuz-2.4.7-10
label=linux
initrd=/boot/initrd-2.4.7-10.img
read-only
root=/dev/hda3
append="hdd=ide-scsi"

other=/dev/hda1
optional
label=DOS

default=DOS
 

amexblue

Member
Mar 11, 2002
139
0
0
my lilo.conf.anaconda looks like this:
prompt
timeout=50
default=DOS
boot=/dev/hda
map=/boot/map
install=/boot/boot.b
message=/boot/message
lba32

image=/boot/vmlinuz-2.4.7-10
label=linux
initrd=/boot/initrd-2.4.7-10.img
read-only
root=/dev/hda3
append="hdd=ide-scsi"

other=/dev/hda1
optional
label=DOS

default=DOS