From Fedora Project Wiki

m (more fixes)
(clean up some)
Line 1: Line 1:
This is a place holder for grub2
+
= Grub2 =
  
I will try to work on it , need to wait for F16 to be out of alpha on my end -)
+
Starting with Fedora 16, grub2 is used for new installs (upgrades still keep grub1).
  
 +
= Tasks / Common issues =
  
== Adding more operating systems to the grub2 menu ==
+
== Adding Other operating systems to the grub2 menu ==
  
After installing Fedora 16 Alpha RC 5, i've did this to add more operating systems to the grub2 menu:
+
If you have other operating systems setup and wish to boot them via grub2:  
  
<nowiki>#</nowiki> yum install os-prober
+
<pre>
 +
# yum install os-prober
  
<nowiki>#</nowiki> grub2-mkconfig -o /boot/grub2/grub.cfg
+
# grub2-mkconfig -o /boot/grub2/grub.cfg
 +
</pre>
  
Then, to select the default menu entry (5, in my case) i had to edit /boot/grub2/grub.cfg, and change the line
 
  
 +
== Setting default entry ==
 +
 +
1.  edit /boot/grub2/grub.cfg, and change the line
 +
 +
<pre>
 
set default="0"  
 
set default="0"  
 +
</pre>
  
 
to  
 
to  
 +
<pre>
 +
set default="5"
 +
</pre>
  
set default="5"
+
== Other issues ==
 +
 
 +
'''Other grub2 issues''': it refuses to install on partition's boot sector (maybe can be forced?) and, !!! this is important !!!, it fails to install if for whatever reason your floppy controller is activated in BIOS and there's no drive connected or floppy disk inserted. The workaround is to run (post OS install) from rescue mode:
  
because
+
<pre>
 +
grub2-install <target device> --no-floppy
 +
</pre>
  
<nowiki>#</nowiki> grub2-set-default 5
+
= Further Reading =
  
didn't worked.
+
http://www.gnu.org/software/grub/manual/grub.html
  
'''Other grub2 issues''': it refuses to install on partition's boot sector (maybe can be forced?) and, !!! this is important !!!, it fails to install if for whatever reason your floppy controller is activated in BIOS and there's no drive connected or floppy disk inserted. The workaround is to run (post OS install) from rescue mode:
+
http://fedoraproject.org/wiki/Features/Grub2
  
<nowiki>#</nowiki> grub2-install <target device> --no-floppy
+
http://fedoraproject.org/wiki/Anaconda/Features/Grub2Migration

Revision as of 23:43, 19 August 2011

Grub2

Starting with Fedora 16, grub2 is used for new installs (upgrades still keep grub1).

Tasks / Common issues

Adding Other operating systems to the grub2 menu

If you have other operating systems setup and wish to boot them via grub2:

# yum install os-prober

# grub2-mkconfig -o /boot/grub2/grub.cfg


Setting default entry

1. edit /boot/grub2/grub.cfg, and change the line

set default="0" 

to

set default="5"

Other issues

Other grub2 issues: it refuses to install on partition's boot sector (maybe can be forced?) and, !!! this is important !!!, it fails to install if for whatever reason your floppy controller is activated in BIOS and there's no drive connected or floppy disk inserted. The workaround is to run (post OS install) from rescue mode:

grub2-install <target device> --no-floppy

Further Reading

http://www.gnu.org/software/grub/manual/grub.html

http://fedoraproject.org/wiki/Features/Grub2

http://fedoraproject.org/wiki/Anaconda/Features/Grub2Migration