largegroh Posted May 21, 2005 Report Share Posted May 21, 2005 (edited) 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 May 21, 2005 by largegroh Quote Link to comment Share on other sites More sharing options...
SoulSe Posted May 21, 2005 Report Share Posted May 21, 2005 All you have to do is alter the Default line. But I'm not sure which you want to be default, because you said you want them both to be default in your post ^ Quote Link to comment Share on other sites More sharing options...
largegroh Posted May 21, 2005 Author Report Share Posted May 21, 2005 (edited) 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 May 21, 2005 by largegroh Quote Link to comment Share on other sites More sharing options...
streeter Posted May 21, 2005 Report Share Posted May 21, 2005 yes - just change the line to default="windows" compact can go anywhere before the label="linux" line Then type lilo as root. Quote Link to comment Share on other sites More sharing options...
largegroh Posted May 21, 2005 Author Report Share Posted May 21, 2005 (edited) 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. Edited May 21, 2005 by largegroh Quote Link to comment Share on other sites More sharing options...
arctic Posted May 21, 2005 Report Share Posted May 21, 2005 (edited) 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 May 21, 2005 by arctic Quote Link to comment Share on other sites More sharing options...
largegroh Posted May 21, 2005 Author Report Share Posted May 21, 2005 (edited) not sure.. this is what i have now, with the changes i mentioned. shrug. maybe i need some more reading. 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 May 21, 2005 by largegroh Quote Link to comment Share on other sites More sharing options...
streeter Posted May 21, 2005 Report Share Posted May 21, 2005 (edited) 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 May 21, 2005 by streeter Quote Link to comment Share on other sites More sharing options...
largegroh Posted May 21, 2005 Author Report Share Posted May 21, 2005 (edited) 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 May 21, 2005 by largegroh Quote Link to comment Share on other sites More sharing options...
streeter Posted May 21, 2005 Report Share Posted May 21, 2005 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 Quote Link to comment Share on other sites More sharing options...
largegroh Posted May 21, 2005 Author Report Share Posted May 21, 2005 no was booting into linux itself.. i rebooted a second time and it seems to have taken care of the problem.. linux came up normal after second boot and windows still default.. all is good, i think. thx for all t he help. i will mark this as solved. Quote Link to comment Share on other sites More sharing options...
arctic Posted May 22, 2005 Report Share Posted May 22, 2005 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.