LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   lilo configuration (https://www.linuxquestions.org/questions/linux-newbie-8/lilo-configuration-237569/)

yiang 10-01-2004 11:58 AM

lilo configuration
 
hello

I just installed Linspire and I'm new to lilo boot loader. I'm used to grub but I'm not sure how to configure lilo. How do I make the boot default to windows XP and how do I run lilo afterwards to get it started?

Thanks!!

Code:

# Generated by jiffyboot version 5.0.228.  If this file is edited, the
# system will stop modifying it.  To allow the system to resume
# management of this file, remove it and run /sbin/jiffyboot.

boot=/dev/discs/disc0/disc
install=/boot/cboot.b
message = /boot/splash.lilo
map=/boot/map
fix-table
lba32
prompt
delay=70
timeout=70
image=/boot/vmlinuz-2.4.24
        label=Linspire
        vga=0xf04
        root=/dev/hdb5
        initrd=/boot/initrd-2.4.24.gz
        append="resume=/dev/hdb6"
image=/boot/vmlinuz-2.4.24
        label=Redetect
        vga=normal
        root=/dev/hdb5
        initrd=/boot/initrd-2.4.24.gz
        append="noresume redetect resume=/dev/hdb6"
image=/boot/vmlinuz-2.4.24
        label=Diagnostics
        vga=normal
        root=/dev/hdb5
        initrd=/boot/initrd-2.4.24.gz
        append="noresume resume=/dev/hdb6 single"
other=/dev/hda1
        label=MS_W<>®_XP
other=/dev/hdb1
        label=MS_D|


justin_p 10-01-2004 12:18 PM

To make your WinXP partition the default choice on the lilo screen, make it first on the list. Lilo will read from the file and pick the first one it comes to as the first choice and therefore the default. So above the first image = blah, put the sequence for the WinXP partition (other = /dev/hda1
label = blah)

After you make and save those changes run /sbin/lilo and the changes will be applied. reboot and check it out.

yiang 10-01-2004 12:30 PM

okay thanks alot!

frogman 10-01-2004 12:34 PM

You just need to add a

default="<whatever>"

...where <whatever> is the label of your Windows partition. Then run /sbin/lilo as root. This will show something like this if you don't have any errors:

Code:

[root@tomsk pete]# /sbin/lilo
Added failsafe
Added old
Added linux *
[root@tomsk pete]#


The "*" next to linux marks the partition booted by default. If you do get errors, go back and check your work. Save a copy of lilo.conf somewhere else before you start editing.

Your modified lilo.conf would look like this, you want to look at the 5th line down (and I've relabelled your windows partition /dev/hda1 to "windows"). remember to remove the pointy arrow labels if you copy this or Bad Things Will Happen:

Code:

boot=/dev/discs/disc0/disc
install=/boot/cboot.b
message = /boot/splash.lilo
map=/boot/map
default="windows"    <------------default can be set to any partition label, in this case "windows"
fix-table
lba32
prompt
delay=70
timeout=70

image=/boot/vmlinuz-2.4.24
        label=Linspire
        vga=0xf04
        root=/dev/hdb5
        initrd=/boot/initrd-2.4.24.gz
        append="resume=/dev/hdb6"

image=/boot/vmlinuz-2.4.24
        label=Redetect
        vga=normal
        root=/dev/hdb5
        initrd=/boot/initrd-2.4.24.gz
        append="noresume redetect resume=/dev/hdb6"

image=/boot/vmlinuz-2.4.24
        label=Diagnostics
        vga=normal
        root=/dev/hdb5
        initrd=/boot/initrd-2.4.24.gz
        append="noresume resume=/dev/hdb6 single"

other=/dev/hda1
        label=windows  <---------------relabelled to windows - not necessary.....

other=/dev/hdb1 <------------If this is just a W32 data partition, you can remove these last 2 lines.
        label=MS_D|


yiang 10-01-2004 05:04 PM

thank you. I'll try that.


All times are GMT -5. The time now is 10:42 AM.