Jump to content

changing lilo boot order [solved]


largegroh
 Share

Recommended Posts

I want to change the boot order in lilo. this is what is there now:

 

# File generated by DrakX/drakboot

# WARNING: do not forget to run lilo after modifying this file

 

default="linux"

boot=/dev/hda

map=/boot/map

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="acpi=ht resume=/dev/hdb5 splash=silent"

vga=788

read-only

image=/boot/vmlinuz

label="linux-nonfb"

root=/dev/hdb1

initrd=/boot/initrd.img

append="acpi=ht resume=/dev/hdb5"

read-only

image=/boot/vmlinuz

label="failsafe"

root=/dev/hdb1

initrd=/boot/initrd.img

append="failsafe acpi=ht resume=/dev/hdb5 devfs=nomount"

read-only

other=/dev/hda1

label="windows"

table=/dev/hda

~

Type :quit<Enter> to exit Vim

 

What I want to do is have windows the default (so my wife is happy) and Linux the 'other'. I 'think' all I would have to do is copy the 'other' section to the top and rename 'default' and copy the default section(current) to bottom and rename 'other'. However, that seems too easy and there is alot of stuff in those sections.

 

can someone confirm my thoughts or tell me I am way off and give suggestions?

 

also, where in the lilo.conf would I add this line to speed up boot?

"compact" (no double quotes)

Edited by largegroh
Link to comment
Share on other sites

bad communication on my part. i want the windows to be default and to have to choose linux. just not sure if only thing to change is words default and other or if there is more to do.

 

edited above post to show that.

Edited by largegroh
Link to comment
Share on other sites

sigh.. i am slow i guess.

 

would this be correct??

 

# File generated by DrakX/drakboot

# WARNING: do not forget to run lilo after modifying this file

 

default=/dev/hda1

label="windows"

table=/dev/hda

 

other="linux"

boot=/dev/hda

map=/boot/map

keytable=/boot/us.klt

compact

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="acpi=ht resume=/dev/hdb5 splash=silent"

vga=788

read-only

image=/boot/vmlinuz

label="linux-nonfb"

root=/dev/hdb1

initrd=/boot/initrd.img

append="acpi=ht resume=/dev/hdb5"

read-only

image=/boot/vmlinuz

label="failsafe"

root=/dev/hdb1

initrd=/boot/initrd.img

append="failsafe acpi=ht resume=/dev/hdb5 devfs=nomount"

read-only

 

"lilo.conf" 35L, 715C

 

ALL I DID is change 'other' to default and copy all lines to top. then change default to 'other' leaving all lines beneath alone. also inserted 'compact'

 

EDIT: not actually done yet.. just theory so far. :beer:

Edited by largegroh
Link to comment
Share on other sites

in case that hda1 is your windows partition, why do you label it "linux" instead of windows? ;)

other="linux"
boot=/dev/hda

 

edit: oh... i am not sure about windows xp (i don't use it), but ain't there a chainloader +1 missing?

Edited by arctic
Link to comment
Share on other sites

not sure.. this is what i have now, with the changes i mentioned. shrug. maybe i need some more reading. :juggle:

 

two separate hd's:

windows is on hda 9primary hd

 

linux is on hdb secondary hd

 

as to the label stuff..obviously I am in no way sure of what to do. :(

Edited by largegroh
Link to comment
Share on other sites

NO! :)

 

What you want is what you had originally (it did work, didn't it?), with just the default= line changed to default=windows

 

The other bit should be left the same, i.e.

other=/dev/hda1

label="windows"

table=/dev/hda

 

is correct.

windows and linux are just labels - they could just as easily be "inferior_operating_system" and "best_operating_system" , in which case you would want default=inferior_operating_system at the top of the file.

 

other means other operating systems, in other words not Linux.

 

See man lilo.conf

 

Here's an extract from my lilo.conf, altered so windows is the default:

default="windows"
boot=/dev/hda
map=/boot/map
install=menu
vga=ext
keytable=/boot/uk.klt
compact
prompt
nowarn
timeout=300
message=/boot/message
menu-scheme=wb:bw:wb:bw
other=/dev/hda1
         label="windows"
        table=/dev/hda
image=/boot/bzImage.custom
          label="2.6.custom"
          root=/dev/hda5
          append="devfs=mount splash=silent acpi=on resume=/dev/hda8"
          vga=791
          read-only

As you can see, I have indented the lines to make the operating system entries clearer...

The order of the entries does not matter - the windows section could be at the bottom like yours.

 

Hope this helps.

Edited by streeter
Link to comment
Share on other sites

thx.. changed defaultto windows and ran /sbin/lilo

windows showed up as default with * so i rebooted.

 

windows first and went perfect

linux second and not erfect..it booted into colsole mode. i logged into root (may not have had to do it) and closed session and ended up in gui mode of normal boot before change. what might i have done/not done for this to happen? it is obviously all ther just not booting into right place at start.

 

edit:

 

boot console looks like this:

[largegroh@70-33-9-251 ~]$ su

[root@70-33-9-251 largegroh]# cd /

[root@70-33-9-251 /]# cd etc

[root@70-33-9-251 etc]# vi lilo.conf

[root@70-33-9-251 etc]# vi lilo.conf

[root@70-33-9-251 etc]# /var/log/boot.log

bash: /var/log/boot.log: Permission denied

[root@70-33-9-251 etc]# su

[root@70-33-9-251 etc]# /var/log/boot.log

bash: /var/log/boot.log: Permission denied

[root@70-33-9-251 etc]# /

bash: /: is a directory

[root@70-33-9-251 etc]# cd /

[root@70-33-9-251 /]# /var/log/boot.log

bash: /var/log/boot.log: Permission denied

[root@70-33-9-251 /]#

 

never gave me a chance to login..

current lilo.conf is:

 

File generated by DrakX/drakboot

# WARNING: do not forget to run lilo after modifying this file

 

default="Windows"

boot=/dev/hda

map=/boot/map

keytable=/boot/us.klt

compact

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="acpi=ht resume=/dev/hdb5 splash=silent"

vga=788

read-only

image=/boot/vmlinuz

label="linux-nonfb"

root=/dev/hdb1

initrd=/boot/initrd.img

append="acpi=ht resume=/dev/hdb5"

read-only

image=/boot/vmlinuz

label="failsafe"

root=/dev/hdb1

initrd=/boot/initrd.img

append="failsafe acpi=ht resume=/dev/hdb5 devfs=nomount"

read-only

other=/dev/hda1

label="windows"

table=/dev/hda

"lilo.conf" 35L, 717C

Edited by largegroh
Link to comment
Share on other sites

Not really sure what you mean by the last post - can you clarify?

 

To look at /var/boot/boot.log, you need to type cat /var/boot/log (or less /var/boot/boot.log to pause at each screen)

 

lilo.conf is now fine - booting to a console or gui is controlled elsewhere (/etc/inittab - look for default runlevel) But don't mess with it too much - take a copy first....

 

Try control alt F7 (or F1 to F...) to switch between consoles and gui before you touch inittab

 

If the gui doesn't start, try typing startx or init 5

 

Or were you choosing failsafe?

 

Chris

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...