LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to repair Boot Loader (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-repair-boot-loader-427232/)

ariestruong 03-22-2006 05:40 AM

How to repair Boot Loader
 
I have just installed Linux when I use Windows. I forget choice Windows as default OS so when restart Linux always begin after 3 second. How to change "boot loader" to Windows is default OS. How to "increase time" to choice OS because it only has 3 second but i want 10 second.
Please help!
Thanhk you.

reddazz 03-22-2006 05:48 AM

What Linux distribution did you install and what bootloader are you using. If using Lilo, you need to edit /etc/lilo.conf and change "timeout=30" to "timeout=100". If using grub, you need to edit /boot/grub/menu.lst (or /boot/grub/grub.conf) and change "timeout 3" to "timeout 10".

TigerOC 03-22-2006 05:49 AM

Please tell us which boot loader you are using.

Nylex 03-22-2006 05:51 AM

If you're using GRUB, you need to edit the file called grub.conf or menu.lst (as root). Look for these in /boot or /boot/grub.

To change the default OS, look for the line that says "default x", where x is a number, which may be 0. You will need to change the 0 to whatever number corresponds to your Windows entry. If your Windows entry is second in the file, then change it to 1. If it's the third entry, change it to 2, etc.

To change the time before booting the default, look for the line that says "timeout x", again x is a number - the number of seconds before booting the default entry. Change this to 10 for 10 seconds, or whatever else you want.

If you're using LILO, the file you need to edit is called lilo.conf (again as root). I'm not sure where it'd be on your distribution, but on mine, it's in /etc.

To change the timeout, look for the line that says "timeout = x". For LILO, x is the number of tenths of a second to wait, so if you want 10 seconds, change x to 100.

To change the default entry, look for the line that says "default = xxxx", where xxxx is the label of the default entry. Change this to whatever is appropriate for your Windows entry (i.e. if your Windows entry has "label = Windows", then you'd put "default = Windows").

Note that for LILO, you'll need to run the command lilo (as root) after making changes to the configuration file.

reddazz 03-22-2006 06:00 AM

Quote:

Note that for LILO, you'll need to run the command lilo (as root) after making changes to the configuration file.
After 7 years with Linux, I still keep forgetting to do this.

ariestruong 03-22-2006 08:12 PM

I did as you guide but when I open menu.lst or grub.conf the it warn I can't open. I see my others partition but I can't read my others partition. How should I do ? Please help me.

Nylex 03-23-2006 12:20 AM

Can you post the exact error message please? Did you try to edit the file as root?


All times are GMT -5. The time now is 09:49 AM.