Difference between revisions of "Grub"
From Blue-IT.org Wiki
(Created page with "== Grub2 == http://wiki.ubuntuusers.de/GRUB_2/ Beispiel für eine /etc/grub.d/ Datei: #! /bin/sh -e echo "Adding Kubuntu Karmic" >&2 cat << EOF menuentry "kubuntu" { ...") |
(→Grub2) |
||
Line 1: | Line 1: | ||
== Grub2 == | == Grub2 == | ||
http://wiki.ubuntuusers.de/GRUB_2/ | http://wiki.ubuntuusers.de/GRUB_2/ | ||
− | + | Example for a ''/etc/grub.d/'' file (for kubuntu on /dev/sda10): | |
− | #! /bin/sh -e | + | > vim /etc/grub.d/kubuntu |
− | + | ||
− | echo "Adding Kubuntu Karmic" >&2 | + | #! /bin/sh -e |
+ | |||
+ | echo "Adding Kubuntu Karmic" >&2 | ||
cat << EOF | cat << EOF | ||
− | + | ||
− | menuentry "kubuntu" { | + | menuentry "kubuntu" { |
set root=(hd0,10) | set root=(hd0,10) | ||
chainloader +1 | chainloader +1 | ||
− | } | + | } |
− | + | ||
− | EOF | + | EOF |
− | |||
− | |||
− | sudo grub-mkconfig -o /boot/grub/grub.cfg | + | Reload the configuration an write grub2 files: |
+ | > sudo grub-mkconfig -o /boot/grub/grub.cfg |
Revision as of 10:52, 4 October 2010
Grub2
http://wiki.ubuntuusers.de/GRUB_2/ Example for a /etc/grub.d/ file (for kubuntu on /dev/sda10):
> 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