Difference between revisions of "Grub"

From Blue-IT.org Wiki

(Grub2)
(Grub2)
Line 11: Line 11:
 
  menuentry "kubuntu" {
 
  menuentry "kubuntu" {
 
         set root=(hd0,10)
 
         set root=(hd0,10)
chainloader +1
+
chainloader +1
 
  }
 
  }
 
   
 
   

Revision as of 10:53, 4 October 2010

Grub2

Example for a /etc/grub.d/ file (for kubuntu on /dev/sda10) [1]:

> vim /etc/grub.d/kubuntu

#! /bin/sh -e

echo "Adding Kubuntu Karmic" >&2
cat << EOF

menuentry "kubuntu" {
       set root=(hd0,10)
	chainloader +1
}

EOF

Reload the configuration an write grub2 files:

> sudo grub-mkconfig -o /boot/grub/grub.cfg