LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-22-2006, 06:40 AM   #1
ariestruong
LQ Newbie
 
Registered: Mar 2006
Posts: 18

Rep: Reputation: 0
Question 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.
 
Old 03-22-2006, 06:48 AM   #2
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 75
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".
 
Old 03-22-2006, 06:49 AM   #3
TigerOC
Senior Member
 
Registered: Jan 2003
Location: Devon, UK
Distribution: Debian Etc/kernel 2.6.18-4K7
Posts: 2,380

Rep: Reputation: 49
Please tell us which boot loader you are using.
 
Old 03-22-2006, 06:51 AM   #4
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
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.
 
Old 03-22-2006, 07:00 AM   #5
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 75
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.
 
Old 03-22-2006, 09:12 PM   #6
ariestruong
LQ Newbie
 
Registered: Mar 2006
Posts: 18

Original Poster
Rep: Reputation: 0
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.
 
Old 03-23-2006, 01:20 AM   #7
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

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


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
master boot record repair danielanson *BSD 2 05-22-2005 12:26 AM
base gentoo installed, can't boot, need to repair lilo. how? Junior41180 Linux - Distributions 6 11-10-2004 05:45 AM
GRUB repair on dual boot system NickTheBubble Linux - Newbie 2 10-07-2004 02:06 PM
Using the installation CD to boot and repair the MBR in Mandrake 10 dvela Mandriva 5 08-19-2004 10:17 AM
kernel can not boot / fsck can not repair rabby Linux - Hardware 7 04-11-2004 11:10 AM


All times are GMT -5. The time now is 03:31 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration