LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   LILO question (https://www.linuxquestions.org/questions/linux-newbie-8/lilo-question-188394/)

DiscoBiscuit 06-01-2004 07:55 AM

LILO question
 
Is it possible to re-configure LILO to make windows the default OS again?

Baldrick65 06-01-2004 08:05 AM

It depends on which flavour of Linux you are running, but most distros have some kind of gui to do this, or you can edit /etc/lilo.conf by hand. For example, my lilo.conf as follows:
Code:

boot=/dev/hda
map=/boot/map
default="linux"
keytable=/boot/us.klt
prompt
nowarn
timeout=100
message=/boot/message
menu-scheme=wb:bw:wb:bw
image=/boot/vmlinuz
        label="linux"
        root=/dev/hdb1
        initrd=/boot/initrd.img
        append="devfs=mount hdd=ide-scsi acpi=off quiet"
        vga=788
        read-only
image=/boot/vmlinuz
        label="linux-nonfb"
        root=/dev/hdb1
        initrd=/boot/initrd.img
        append="devfs=mount hdd=ide-scsi acpi=off"
        read-only
image=/boot/vmlinuz
        label="failsafe"
        root=/dev/hdb1
        initrd=/boot/initrd.img
        append="devfs=nomount hdd=ide-scsi acpi=off failsafe"
        read-only
other=/dev/hda1
        label="windows"
        table=/dev/hda
other=/dev/fd0
        label="floppy"
        unsafe

As you can see, i've highlighted the relevant labels. In my case, I would change the default="linux" to default="windows"

Just remember you can only edit this file as root, and you must run /sbin/lilo to effect changes

Baldrick

lyceum 06-01-2004 08:05 AM

if i'm not mistaken, lilo defaults to the first one that is listed in lilo.conf if not specified by a default= option. take a look at this file, and if there is a line that says default=0 then it boots to the first os listed (which is the default lilo option i think) if it says default=1 then it would boot into the second one listed, etc...(this keeps with the computer science convention of counting starting with 0).

hope this helps.

DiscoBiscuit 06-01-2004 09:29 AM

Thanks:)


All times are GMT -5. The time now is 07:13 AM.