LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   GRUB Default (https://www.linuxquestions.org/questions/linux-software-2/grub-default-344190/)

newuser455 07-18-2005 02:51 AM

GRUB Default
 
I just installed Lindows 5-0 as my secondary OS to Windows XP. How can I reconfigure the Boot Loader to boot Windows by default, if no OS is selected after a certain amount of seconds (that was how FC4 was)?

Thanks in advance.

Chuckinator 07-18-2005 03:13 AM

That's easy! Look in /boot/grub for a file called menu.lst or possibly grub.conf. Open up the file and find the line:
Code:

default 0
Next, look further down the file for the entries for the two operating system. It will look similar to this:
Code:

title=Linux
root (hd0,0)
kernel /boot/kernel root=/dev/sda1 vga=0x318 video=vesafb

title=Windows XP
root (hd0,3)
makeactive
chainloader +1

Change the number after "default" to match the position that the Windows entry appears at (positions start at the number zero). It will probably be the second entry so change the number to "1". I hope that was clear enough.

newuser455 07-18-2005 03:21 AM

Thanks for the help. I have never done a dual boot, or anything to do with grub. :)

newuser455 07-18-2005 03:33 AM

Oh.. one more thing.. how do i specify how long it should wait before booting the default? Currently, it just waits for me to select something..:Pengy:

Chuckinator 07-18-2005 03:51 AM

Once again, very easy :) . Just add
Code:

timeout [number of seconds you want grub to wait]
to the top of the grub configuration file.

newuser455 07-18-2005 06:37 PM

Quote:

Originally posted by Chuckinator
That's easy! Look in /boot/grub for a file called menu.lst or possibly grub.conf. Open up the file and find the line:
Code:

default 0
Next, look further down the file for the entries for the two operating system. It will look similar to this:
Code:

title=Linux
root (hd0,0)
kernel /boot/kernel root=/dev/sda1 vga=0x318 video=vesafb

title=Windows XP
root (hd0,3)
makeactive
chainloader +1

Change the number after "default" to match the position that the Windows entry appears at (positions start at the number zero). It will probably be the second entry so change the number to "1". I hope that was clear enough.

Ok. I just tried to do this... but there is no grub.conf in /boot/grub.

newuser455 07-18-2005 07:02 PM

Nevermind, found it. The file was called something else. I can't remember the exact name, but it was xxxx.list. Thanks for your help. I now have it configureed how I want :D


All times are GMT -5. The time now is 07:20 AM.