Difference between revisions of "Grub"
From Blue-IT.org Wiki
(→Grub2) |
|||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
== Grub2 == | == Grub2 == | ||
− | + | Example for a ''/etc/grub.d/'' file (for kubuntu on /dev/sda10) [http://wiki.ubuntuusers.de/GRUB_2/]: | |
− | Example for a ''/etc/grub.d/'' file (for kubuntu on /dev/sda10): | ||
> vim /etc/grub.d/kubuntu | > vim /etc/grub.d/kubuntu | ||
Line 12: | Line 11: | ||
menuentry "kubuntu" { | menuentry "kubuntu" { | ||
set root=(hd0,10) | set root=(hd0,10) | ||
− | + | chainloader +1 | |
} | } | ||
Line 19: | Line 18: | ||
Reload the configuration an write grub2 files: | Reload the configuration an write grub2 files: | ||
> sudo grub-mkconfig -o /boot/grub/grub.cfg | > sudo grub-mkconfig -o /boot/grub/grub.cfg | ||
+ | |||
+ | [[Category:Debian]] | ||
+ | [[Category:Ubuntu]] |
Latest revision as of 19:43, 8 January 2012
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