LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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 08-14-2007, 11:24 PM   #1
brianmay27
Member
 
Registered: Apr 2006
Posts: 74

Rep: Reputation: 15
edit bootloader in fc7


ok i just installed fc7 and put windows in last. but i want it to be in first. i know in fc6 there was a program but i cant find it is there a way i can change it?
 
Old 08-14-2007, 11:43 PM   #2
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Edit your GRUB config file, which is likely /boot/grub/menu.lst.
 
Old 08-15-2007, 04:52 AM   #3
decrepit
Member
 
Registered: May 2006
Distribution: Ubuntu10.04, < fedora12
Posts: 347

Rep: Reputation: 34
Are you saying you want to boot into windows by default, or you just want to change the order of the boot menu?

As Nylex says you need to edit grub, in Fedora it's usually recommended to do it with /boot/grub/grub.conf

There's a line that says "default" with a number against it. This is what controls which OS boots. here's my grub.conf from a core4 installation

default=0
timeout=9
splashimage=(hd0,4)/grub/splash.xpm.gz
#hiddenmenu
title Fedora Core 4
root (hd0,4)
kernel /vmlinuz-2.6.17-1.2142_FC4 ro root=LABEL=/ rhgb quiet
initrd /initrd-2.6.17-1.2142_FC4.img
title XP
rootnoverify (hd0,0)
chainloader +1
title MEPIS
root (hd1,0)
kernel /boot/vmlinuz-2.6.15-26-386 root=/dev/hda1 nomce quiet vga=791
boot

Here default=0 boots core4. If it was default=1 it would boot XP, 2 would boot mepis
 
Old 08-15-2007, 04:59 AM   #4
b0uncer
Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
If you wanted XP to be the default choice to boot, independent of where it is in the list, you could also use 'savedefault'. I think GRUB's configuration man-page (or GRUB man-page) explains it in more depth; at least their site docs should. Basically here's how it goes:

1) set the default= option to point to 'saved':
Code:
default saved
now the default choice to pick, if nothing else is selected by the user, is the one that has last been saved as default.
2) set the XP section save itself as default: add this line into the XP section
Code:
savedefault
3) don't add 'savedefault' to the other sections (or if you do, the default one will be the one of those that was last booted -- the one that last 'savedefault'ed)

So here would be the configuration, base copied from decrepit's post, after the changes:
Code:
default=saved
timeout=9
splashimage=(hd0,4)/grub/splash.xpm.gz
#hiddenmenu

title Fedora Core 4
root (hd0,4)
kernel /vmlinuz-2.6.17-1.2142_FC4 ro root=LABEL=/ rhgb quiet
initrd /initrd-2.6.17-1.2142_FC4.img

title XP
rootnoverify (hd0,0)
chainloader +1
savedefault

title MEPIS
root (hd1,0)
kernel /boot/vmlinuz-2.6.15-26-386 root=/dev/hda1 nomce quiet vga=791
boot
Notice the red parts. Because XP is the only section that has 'savedefault', it will always be saved as the default choice that default=saved will boot. Therefore XP is the default boot choice no matter where it is in the menu; it can be first, last or somewhere in between, and you can move it around and it still stays default (you just need to boot it once, after which 'savedefault' is remembered).

Like I said, you can add 'savedefault' to another section also, and then if default=saved, GRUB will boot the section of those that have 'savedefault' that was last booted.

Last edited by b0uncer; 08-15-2007 at 05:00 AM.
 
  


Reply

Tags
boot loader, edit, grub


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
Windows 2000 Bootloader vs. Mandriva LILO Bootloader Dregnan Mandriva 7 12-03-2007 09:55 PM
Can you get FC7 on CD Gortex Fedora 5 09-23-2007 02:09 PM
help to edit Edit my bootloader's config file from kernel prompt jagdishpandey Linux - Kernel 5 07-03-2007 06:59 AM
How can I disable the grub bootloader and enable the lilo bootloader? abefroman Linux - General 1 08-06-2005 08:53 AM
I need create bootloader. How make bootloader? swipple Fedora - Installation 3 01-23-2005 12:22 PM


All times are GMT -5. The time now is 08:01 AM.

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