* docs/grub.texi: Fix search syntax.
(Multi-boot manual config): Put msdos rather than GPT example. Grammar corrections.
This commit is contained in:
parent
c890ba78ca
commit
1fa097dc98
2 changed files with 29 additions and 22 deletions
|
@ -1,3 +1,10 @@
|
||||||
|
2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
|
||||||
|
2012-06-23 Jordan Uggla <jordan.uggla@gmail.com>
|
||||||
|
|
||||||
|
* docs/grub.texi: Fix search syntax.
|
||||||
|
(Multi-boot manual config): Put msdos rather than GPT example.
|
||||||
|
Grammar corrections.
|
||||||
|
|
||||||
2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
|
2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
|
||||||
|
|
||||||
* docs/grub.texi (Multi-boot manual config): Use --set. Improve remark.
|
* docs/grub.texi (Multi-boot manual config): Use --set. Improve remark.
|
||||||
|
|
|
@ -911,7 +911,7 @@ root partition to the kernel.
|
||||||
@enumerate
|
@enumerate
|
||||||
@item
|
@item
|
||||||
Set GRUB's root device to the same drive as GNU/Hurd's. The command
|
Set GRUB's root device to the same drive as GNU/Hurd's. The command
|
||||||
@code{search --file --set /boot/gnumach.gz} or similar may help you
|
@code{search --set=root --file /boot/gnumach.gz} or similar may help you
|
||||||
(@pxref{search}).
|
(@pxref{search}).
|
||||||
|
|
||||||
@item
|
@item
|
||||||
|
@ -944,7 +944,7 @@ resembles to boot a Multiboot-compliant OS.
|
||||||
@enumerate
|
@enumerate
|
||||||
@item
|
@item
|
||||||
Set GRUB's root device to the same drive as GNU/Linux's. The command
|
Set GRUB's root device to the same drive as GNU/Linux's. The command
|
||||||
@code{search --file --set /vmlinuz} or similar may help you
|
@code{search --set=root --file /vmlinuz} or similar may help you
|
||||||
(@pxref{search}).
|
(@pxref{search}).
|
||||||
|
|
||||||
@item
|
@item
|
||||||
|
@ -1495,10 +1495,12 @@ next release, meanwhile you can make use of the power of GRUB syntax and do it
|
||||||
yourself. A possible configuration is detailed here, feel free to adjust to your
|
yourself. A possible configuration is detailed here, feel free to adjust to your
|
||||||
needs.
|
needs.
|
||||||
|
|
||||||
First create a separate GRUB partition, big enough to hold GRUB and
|
First create a separate GRUB partition, big enough to hold GRUB. Some of the
|
||||||
few OS network installers you want to use. Mount this partition on
|
following entries show how to load OS installer images from this same partition,
|
||||||
/mnt/boot and disable GRUB in all OSes and manually install
|
for that you obviously need to make the partition large enough to hold those
|
||||||
self-compiled latest GRUB with:
|
images as well.
|
||||||
|
Mount this partition on/mnt/boot and disable GRUB in all OSes and manually
|
||||||
|
install self-compiled latest GRUB with:
|
||||||
|
|
||||||
@code{grub-install --boot-directory=/mnt/boot /dev/sda}
|
@code{grub-install --boot-directory=/mnt/boot /dev/sda}
|
||||||
|
|
||||||
|
@ -1510,39 +1512,37 @@ use by setting:
|
||||||
|
|
||||||
in /etc/default/grub
|
in /etc/default/grub
|
||||||
|
|
||||||
Then write grub.cfg as following in /mnt/boot/grub/grub.cfg:
|
Then write a grub.cfg (/mnt/boot/grub/grub.cfg):
|
||||||
|
|
||||||
@example
|
@example
|
||||||
|
|
||||||
menuentry "OS using grub2" @{
|
menuentry "OS using grub2" @{
|
||||||
insmod xfs
|
insmod xfs
|
||||||
search --set=root -l OS1 --hint hd0,gpt2
|
search --set=root --label OS1 --hint hd0,msdos8
|
||||||
configfile /boot/grub/grub.cfg
|
configfile /boot/grub/grub.cfg
|
||||||
@}
|
@}
|
||||||
|
|
||||||
menuentry "OS using grub2-legacy" @{
|
menuentry "OS using grub2-legacy" @{
|
||||||
insmod ext2
|
insmod ext2
|
||||||
search --set=root -l OS2 --hint hd0,gpt3
|
search --set=root --label OS2 --hint hd0,msdos6
|
||||||
legacy_configfile /boot/grub/menu.lst
|
legacy_configfile /boot/grub/menu.lst
|
||||||
@}
|
@}
|
||||||
|
|
||||||
menuentry "Windows XP" @{
|
menuentry "Windows XP" @{
|
||||||
insmod ntfs
|
insmod ntfs
|
||||||
search --set=root -l WINDOWS_XP --hint hd0,gpt4
|
search --set=root --label WINDOWS_XP --hint hd0,msdos1
|
||||||
gptsync hd0 4+7
|
|
||||||
ntldr /ntldr
|
ntldr /ntldr
|
||||||
@}
|
@}
|
||||||
|
|
||||||
menuentry "Windows 7" @{
|
menuentry "Windows 7" @{
|
||||||
insmod ntfs
|
insmod ntfs
|
||||||
search --set=root -l WINDOWS_7 --hint hd0,gpt5
|
search --set=root --label WINDOWS_7 --hint hd0,msdos2
|
||||||
gptsync hd0 5+7
|
|
||||||
ntldr /bootmgr
|
ntldr /bootmgr
|
||||||
@}
|
@}
|
||||||
|
|
||||||
menuentry "FreeBSD" @{
|
menuentry "FreeBSD" @{
|
||||||
insmod zfs
|
insmod zfs
|
||||||
search --set=root -l freepool --hint hd0,gpt6
|
search --set=root --label freepool --hint hd0,msdos7
|
||||||
kfreebsd /freebsd@@/boot/kernel/kernel
|
kfreebsd /freebsd@@/boot/kernel/kernel
|
||||||
kfreebsd_module_elf /freebsd@@/boot/kernel/opensolaris.ko
|
kfreebsd_module_elf /freebsd@@/boot/kernel/opensolaris.ko
|
||||||
kfreebsd_module_elf /freebsd@@/boot/kernel/zfs.ko
|
kfreebsd_module_elf /freebsd@@/boot/kernel/zfs.ko
|
||||||
|
@ -1552,24 +1552,24 @@ menuentry "FreeBSD" @{
|
||||||
@}
|
@}
|
||||||
|
|
||||||
menuentry "experimental GRUB" @{
|
menuentry "experimental GRUB" @{
|
||||||
search --set=root -l GRUB --hint hd0,gpt1
|
search --set=root --label GRUB --hint hd0,msdos5
|
||||||
multiboot /experimental/grub/i386-pc/core.img
|
multiboot /experimental/grub/i386-pc/core.img
|
||||||
@}
|
@}
|
||||||
|
|
||||||
menuentry "Fedora 16 install" @{
|
menuentry "Fedora 16 installer" @{
|
||||||
search --set=root -l GRUB --hint hd0,gpt1
|
search --set=root --label GRUB --hint hd0,msdos5
|
||||||
linux /fedora/vmlinuz lang=en_US keymap=sg resolution=1280x800
|
linux /fedora/vmlinuz lang=en_US keymap=sg resolution=1280x800
|
||||||
initrd /fedora/initrd.img
|
initrd /fedora/initrd.img
|
||||||
@}
|
@}
|
||||||
|
|
||||||
menuentry "Fedora rawhide install" @{
|
menuentry "Fedora rawhide installer" @{
|
||||||
search --set=root -l GRUB --hint hd0,gpt1
|
search --set=root --label GRUB --hint hd0,msdos5
|
||||||
linux /fedora/vmlinuz repo=ftp://mirror.switch.ch/mirror/fedora/linux/development/rawhide/x86_64 lang=en_US keymap=sg resolution=1280x800
|
linux /fedora/vmlinuz repo=ftp://mirror.switch.ch/mirror/fedora/linux/development/rawhide/x86_64 lang=en_US keymap=sg resolution=1280x800
|
||||||
initrd /fedora/initrd.img
|
initrd /fedora/initrd.img
|
||||||
@}
|
@}
|
||||||
|
|
||||||
menuentry "Debian sid install" @{
|
menuentry "Debian sid installer" @{
|
||||||
search --set=root -l GRUB --hint hd0,gpt1
|
search --set=root --label GRUB --hint hd0,msdos5
|
||||||
linux /debian/dists/sid/main/installer-amd64/current/images/hd-media/vmlinuz
|
linux /debian/dists/sid/main/installer-amd64/current/images/hd-media/vmlinuz
|
||||||
initrd /debian/dists/sid/main/installer-amd64/current/images/hd-media/initrd.gz
|
initrd /debian/dists/sid/main/installer-amd64/current/images/hd-media/initrd.gz
|
||||||
@}
|
@}
|
||||||
|
@ -1578,7 +1578,7 @@ menuentry "Debian sid install" @{
|
||||||
|
|
||||||
Notes:
|
Notes:
|
||||||
@itemize
|
@itemize
|
||||||
@item Argument to search after -l is FS LABEL. You can also use UUIDs with -u UUID instead of -l LABEL. You could also use direct @code{root=hd0,gptX} but this is not recommened due to device name instability.
|
@item Argument to search after --label is FS LABEL. You can also use UUIDs with --fs-uuid UUID instead of --label LABEL. You could also use direct @code{root=hd0,msdosX} but this is not recommened due to device name instability.
|
||||||
@end itemize
|
@end itemize
|
||||||
|
|
||||||
@node Embedded configuration
|
@node Embedded configuration
|
||||||
|
|
Loading…
Reference in a new issue