Click to See Complete Forum and Search --> : Stupid question about LILO
Lorucin
11-25-2001, 07:24 PM
Ok here is the situation heh,
Somehow i got Linux to be the defualt OS when booting. It comes up with the non graphical LILO where it says "Enter image name or hit TAB for options" or something similar.
Anyway, how do i get rid of this. I want windows to be the defualt and i dont know enough about LILO to do this.
Any suggestions would be most helpful =)
You'll have to edit the "default=" line in main body of /etc/lilo.conf to match the name used on the "label=" line in the Windows section of that file. The default currently is using the label which identifies the Linux section.
boot=/dev/hda
map=/boot/map
install=/boot/boot.b
vga=normal
default=linux <--change this
keytable=/boot/us.klt |
lba32 |
prompt |
timeout=600 |
|
image=/boot/vmlinuz-2.0.36 |
label=linux |
root=/dev/hda2 |
read-only |
|
other=/dev/hda1 |
label=win <--To match this If the default line doesn't exist, add it.
[ 25 November 2001: Message edited by: DMR ]
m3rlin
11-25-2001, 08:02 PM
this is kind of simple realy, all you need to do is to change the order of the boot, for example, if you have the linux boot first, all you need to do is put the windows boot first and put the linux for last.
Im not sure if this works for all distro, but i have suse 6.3 and is working like that, my default system is linux :), but i can put windows as the default system, just changing the order.
Just try, if it doesn't work, please post here, thanks
Lorucin
11-25-2001, 11:07 PM
I removed the Linux partition as it was damaged (Numerous errors, wouldnt boot, etc..). LILO is still trying to load it though even though it is now a windows partition.
How do I remove LILO completly from the computer? As it is now, it defaults to linux then it just craps out when it realizes Linux isnt even on the computer heh.
I just installed Linux on my laptop as only OS so i wont have this problem again heh
Thanks again for the help =)
[ 25 November 2001: Message edited by: Lorucin ]
Linuxcool
11-26-2001, 12:18 AM
If you can boot into windows, in a dos window run fdisk /mbr. If you can't, then you'll need to use an msdos or windows boot disk to run the command.
fancypiper
11-26-2001, 12:22 AM
To remove a bootloader in the master boot record of a hard drive, use your Windows install disk and boot the computer with cd-rom support. Switch to the disk you wish to repair (cd c:, perhaps), then type fdisk /mbr.
This uses the Microsoft fdisk utility.
A better option would be to remove the Windows partition(s) completely and install Linux. It will live happily with any other OS except Microsoft, if you wish to use others.
My sig when I use Windows is: "I am forced to use Windows for this e-mail and this sucks!"
Lorucin
11-26-2001, 12:25 PM
lol!
Thanks that was the command i was looking for - coundnt remember the mbr switch =)
Nice sig btw =)