LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices

Reply
 
Search this Thread
Old 03-28-2007, 12:55 PM   #1
Jose Rivas
Member
 
Registered: Jul 2006
Posts: 54

Rep: Reputation: 15
How to modify GRUB options


I was installing FC6 32-bit on a Toshiba Satellite A70, using GRUB to make dual boot WinXP or Linux. I remember a option to manage delay time, let default one OS, etc.
How to do by using the KDE/Gnome or console methods.
 
Old 03-28-2007, 01:06 PM   #2
b0uncer
Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
You can use any text editor you prefer, either graphical or non-graphical. You need to have root privileges to edit the file we're dealing with (menu.lst), so for example you could open it with kate as follows:
Code:
su
<give root password>
kate /boot/grub/menu.lst
or, if you've configured sudo for your user, prefer to use this:
Code:
sudo kate /boot/grub/menu.lst
The file should be quite easy to understand and is probably commented so it explains itself. For example to set the time (in seconds) before booting the default choice, set timeout value:
Code:
timeout     5
would wait 5 seconds before booting.
To set the default OS to load, use default:
Code:
default 3
would boot the fourth menu entry by default (1st menu entry is number 0 [zero]). The rest of the file should be easy to understand..

NOTE: if you set the default to some numeric value and update the kernel, it's possible that the newly added kernel "messes up" the default value so that it's wrong by one; some distribution(s) are "clever" enough to set the default value to the entry you want it to be, but most will just add the new kernel in the list, thus making the list longer, and because the new kernel is added to the beginning of the list, your default value becomes one too big (i.e. if the default was '3', it would boot fourth entry by default, but when a new kernel was added to the beginning of the list, that number was still '3' but now it pointed to the new fourth entry and not the one that was fourth before the list update). So after doing a kernel upgrade make sure your menu.lst's default value is in order
 
  


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
How to modify Grub boot loader MEI God MEPIS 2 10-27-2005 01:13 PM
Modify grub.conf DanielTan Linux - Newbie 9 01-02-2005 11:35 AM
cannot modify grub configuration ythevenot Linux - General 2 11-22-2004 06:07 PM
How to modify grub.conf george_mercury Linux - Newbie 1 06-14-2004 09:16 AM
1st HDD = RH9.0 (grub) ... How do I modify grub when adding 2nd hard disk ? Onyx^ Linux - Software 1 09-05-2003 09:16 AM


All times are GMT -5. The time now is 09:34 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration