Linux-Noob Forums
Setting the default OS for GRUB boot - Printable Version

+- Linux-Noob Forums (https://www.linux-noob.com/forums)
+-- Forum: Linux Noob (https://www.linux-noob.com/forums/forum-3.html)
+--- Forum: Tips and Tricks (https://www.linux-noob.com/forums/forum-59.html)
+---- Forum: Grub and Lilo (https://www.linux-noob.com/forums/forum-31.html)
+---- Thread: Setting the default OS for GRUB boot (/thread-1952.html)



Setting the default OS for GRUB boot - eggnog - 2006-05-28


I just installed suse 10.1

 

i already had xp installed

 

so now when i start up i get the grub boot loader with an option for both operating systems

 

currently i get about 10 seconds before it boots suse by default? how can i get it to boot xp as default?

 

thanks




Setting the default OS for GRUB boot - xDamox - 2006-05-29


Hi,

 

You will need to edit the menu.lst file which is located in the /boot/grub/ directory when you open the file you should see:

 



Code:
default=1




 

Change the 1 to your selection of OS. In the menu.lst file you will have entries like:

 



Code:
title Memtest86+ (1.65)
    root (hd0,0)
    kernel /memtest86+-1.65 ro root=/dev/VolGroup00/LogVol01 rhgb quiet
title Fedora Core (2.6.16-1.2122_FC5)
    root (hd0,0)
    kernel /vmlinuz-2.6.16-1.2122_FC5 ro root=/dev/VolGroup00/LogVol01 rhgb quiet
    initrd /initrd-2.6.16-1.2122_FC5.img




 

Notice how my default was set to 1 thats because the first entry starts from 0 so if I wanted my default to boot the Memtest86+ I would set the default to 0.

 

Hope this helps




Setting the default OS for GRUB boot - eggnog - 2006-05-30


i can't open my menu.lst file in the first place...

 

it says permission denied

 

=(

 

i don't know how to get it open




Setting the default OS for GRUB boot - xDamox - 2006-05-30


Hi,

 

You will have to become the super user root to become super user root you will need to type:

 



Code:
su -




 

Then enter your root password