LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-01-2004, 11:58 AM   #1
yiang
LQ Newbie
 
Registered: Sep 2004
Distribution: Fedora Core 2/Redhat 9/knoppix 3.6/Linare 2.0/Mandrake 10.1/Linspire 4.5/SuSE 9.1
Posts: 26

Rep: Reputation: 15
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|
 
Old 10-01-2004, 12:18 PM   #2
justin_p
Member
 
Registered: Jan 2004
Location: Virginia, USA
Distribution: slack 13; I've used it all :)
Posts: 433

Rep: Reputation: 30
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.
 
Old 10-01-2004, 12:30 PM   #3
yiang
LQ Newbie
 
Registered: Sep 2004
Distribution: Fedora Core 2/Redhat 9/knoppix 3.6/Linare 2.0/Mandrake 10.1/Linspire 4.5/SuSE 9.1
Posts: 26

Original Poster
Rep: Reputation: 15
okay thanks alot!
 
Old 10-01-2004, 12:34 PM   #4
frogman
Member
 
Registered: Sep 2003
Distribution: Mandrake, Slack, Debian and PicoBSD
Posts: 181

Rep: Reputation: 31
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|
 
Old 10-01-2004, 05:04 PM   #5
yiang
LQ Newbie
 
Registered: Sep 2004
Distribution: Fedora Core 2/Redhat 9/knoppix 3.6/Linare 2.0/Mandrake 10.1/Linspire 4.5/SuSE 9.1
Posts: 26

Original Poster
Rep: Reputation: 15
thank you. I'll try that.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LILO configuration for new OS jmcdonald21 Linux - Software 1 02-21-2005 02:11 PM
lilo configuration zedzdead Linux - Newbie 1 03-29-2004 06:45 AM
LILO Configuration jelmerderonde Linux - Newbie 1 10-25-2003 05:24 AM
LILO Configuration khanhhoan Linux - General 20 07-18-2002 04:55 AM
lilo configuration deepak Linux - Software 5 10-11-2001 03:12 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:49 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration