diff options
Diffstat (limited to 'zarb-ml/mageia-dev/2013-January/022243.html')
-rw-r--r-- | zarb-ml/mageia-dev/2013-January/022243.html | 383 |
1 files changed, 383 insertions, 0 deletions
diff --git a/zarb-ml/mageia-dev/2013-January/022243.html b/zarb-ml/mageia-dev/2013-January/022243.html new file mode 100644 index 000000000..010b650c2 --- /dev/null +++ b/zarb-ml/mageia-dev/2013-January/022243.html @@ -0,0 +1,383 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> +<HTML> + <HEAD> + <TITLE> [Mageia-dev] Grub2 vs. Grub Legacy in M3 + </TITLE> + <LINK REL="Index" HREF="index.html" > + <LINK REL="made" HREF="mailto:mageia-dev%40mageia.org?Subject=Re%3A%20%5BMageia-dev%5D%20Grub2%20vs.%20Grub%20Legacy%20in%20M3&In-Reply-To=%3C510956E3.8080101%40jkerr82508.free-online.co.uk%3E"> + <META NAME="robots" CONTENT="index,nofollow"> + <META http-equiv="Content-Type" content="text/html; charset=us-ascii"> + <LINK REL="Previous" HREF="022242.html"> + <LINK REL="Next" HREF="022296.html"> + </HEAD> + <BODY BGCOLOR="#ffffff"> + <H1>[Mageia-dev] Grub2 vs. Grub Legacy in M3</H1> + <B>James Kerr</B> + <A HREF="mailto:mageia-dev%40mageia.org?Subject=Re%3A%20%5BMageia-dev%5D%20Grub2%20vs.%20Grub%20Legacy%20in%20M3&In-Reply-To=%3C510956E3.8080101%40jkerr82508.free-online.co.uk%3E" + TITLE="[Mageia-dev] Grub2 vs. Grub Legacy in M3">jim at jkerr82508.free-online.co.uk + </A><BR> + <I>Wed Jan 30 18:22:43 CET 2013</I> + <P><UL> + <LI>Previous message: <A HREF="022242.html">[Mageia-dev] Grub2 vs. Grub Legacy in M3 +</A></li> + <LI>Next message: <A HREF="022296.html">[Mageia-dev] Grub2 vs. Grub Legacy in M3 +</A></li> + <LI> <B>Messages sorted by:</B> + <a href="date.html#22243">[ date ]</a> + <a href="thread.html#22243">[ thread ]</a> + <a href="subject.html#22243">[ subject ]</a> + <a href="author.html#22243">[ author ]</a> + </LI> + </UL> + <HR> +<!--beginarticle--> +<PRE>On 30/01/2013 11:54, Maurice Batey wrote: +><i> On Sun, 20 Jan 2013 14:39:26 +0000, James Kerr wrote: +</I>><i> +</I>>><i> Grub2 created a boot menu that enables me to +</I>>><i> successfully boot the pre-existing Mageia2 installation. +</I>><i> +</I>><i> James, does the Mageia2 installation have GRUB-Legacy in the PBR? +</I> +No. Mageia 2's Grub boot-loader was installed to the MBR of the boot disk. + +><i> +</I>><i> What is the GRUB2 boot stanza that boots Mageia2? +</I> +This is the stanza in /boot/grub2/grub.cfg for Mageia 2: + + +menuentry 'linux (on /dev/sdb1)' --class gnu-linux --class gnu --class +os $menuentry_id_option +'osprober-gnulinux-/boot/vmlinuz--20599988-d027-4cd2-80c4-b834e1013a80' { + insmod part_msdos + insmod ext2 + set root='hd1,msdos1' + if [ x$feature_platform_search_hint = xy ]; then + search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 +--hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1 +20599988-d027-4cd2-80c4-b834e1013a80 + else + search --no-floppy --fs-uuid --set=root +20599988-d027-4cd2-80c4-b834e1013a80 + fi + linux /boot/vmlinuz BOOT_IMAGE=linux root=LABEL=mga-root splash quiet +nokmsboot resume=UUID=a3dabcb9-c43e-4035-8bbe-576aa9c5573b vga=788 + initrd /boot/initrd.img + + +I've attached grub.cfg, in case it's of some help. + +os-prober creates a boot menu which lists the first entry from Grub's +menu.lst on the top-level Grub2 boot menu, even when the first entry in +menu.lst is not the default. As a result, in order to reach the menu +entry for Mageia 2, I have to access the second level "Advanced options" +menu. + +On this system /dev/sdb is the boot disk. + +Jim + + + +-------------- next part -------------- +# +# DO NOT EDIT THIS FILE +# +# It is automatically generated by grub2-mkconfig using templates +# from /etc/grub.d and settings from /etc/default/grub +# + +### BEGIN /etc/grub.d/00_header ### +if [ -s $prefix/grubenv ]; then + load_env +fi +set default="0" + +if [ x"${feature_menuentry_id}" = xy ]; then + menuentry_id_option="--id" +else + menuentry_id_option="" +fi + +export menuentry_id_option + +if [ "${prev_saved_entry}" ]; then + set saved_entry="${prev_saved_entry}" + save_env saved_entry + set prev_saved_entry= + save_env prev_saved_entry + set boot_once=true +fi + +function savedefault { + if [ -z "${boot_once}" ]; then + saved_entry="${chosen}" + save_env saved_entry + fi +} + +function load_video { + if [ x$feature_all_video_module = xy ]; then + insmod all_video + else + insmod efi_gop + insmod efi_uga + insmod ieee1275_fb + insmod vbe + insmod vga + insmod video_bochs + insmod video_cirrus + fi +} + +if loadfont unicode ; then + set gfxmode=1024x768x32 + load_video + insmod gfxterm + set locale_dir=$prefix/locale + set lang=en_GB + insmod gettext +fi +terminal_output gfxterm +insmod part_msdos +insmod ext2 +set root='hd1,msdos8' +if [ x$feature_platform_search_hint = xy ]; then + search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos8 --hint-efi=hd1,msdos8 --hint-baremetal=ahci1,msdos8 f64c1cea-d7d7-44f6-8c3f-90d4dc886511 +else + search --no-floppy --fs-uuid --set=root f64c1cea-d7d7-44f6-8c3f-90d4dc886511 +fi +insmod gfxmenu +insmod png +set theme=($root)/boot/grub2/themes/maggy/theme.txt +export theme +set timeout=5 +### END /etc/grub.d/00_header ### + +### BEGIN /etc/grub.d/10_linux ### +menuentry 'Mageia GNU/Linux' --class mageia --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-f64c1cea-d7d7-44f6-8c3f-90d4dc886511' { + set gfxpayload=text + insmod gzio + insmod part_msdos + insmod ext2 + set root='hd1,msdos8' + if [ x$feature_platform_search_hint = xy ]; then + search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos8 --hint-efi=hd1,msdos8 --hint-baremetal=ahci1,msdos8 f64c1cea-d7d7-44f6-8c3f-90d4dc886511 + else + search --no-floppy --fs-uuid --set=root f64c1cea-d7d7-44f6-8c3f-90d4dc886511 + fi + echo 'Loading Linux desktop ...' + linux /boot/vmlinuz-desktop root=UUID=f64c1cea-d7d7-44f6-8c3f-90d4dc886511 ro splash + echo 'Loading initial ramdisk ...' + initrd /boot/initrd-desktop.img +} +submenu 'Advanced options for Mageia GNU/Linux' $menuentry_id_option 'gnulinux-advanced-f64c1cea-d7d7-44f6-8c3f-90d4dc886511' { + menuentry 'Mageia GNU/Linux, with Linux desktop' --class mageia --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-desktop-advanced-f64c1cea-d7d7-44f6-8c3f-90d4dc886511' { + set gfxpayload=text + insmod gzio + insmod part_msdos + insmod ext2 + set root='hd1,msdos8' + if [ x$feature_platform_search_hint = xy ]; then + search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos8 --hint-efi=hd1,msdos8 --hint-baremetal=ahci1,msdos8 f64c1cea-d7d7-44f6-8c3f-90d4dc886511 + else + search --no-floppy --fs-uuid --set=root f64c1cea-d7d7-44f6-8c3f-90d4dc886511 + fi + echo 'Loading Linux desktop ...' + linux /boot/vmlinuz-desktop root=UUID=f64c1cea-d7d7-44f6-8c3f-90d4dc886511 ro splash + echo 'Loading initial ramdisk ...' + initrd /boot/initrd-desktop.img + } + menuentry 'Mageia GNU/Linux, with Linux 3.8.0-desktop-0.rc5.1.mga3' --class mageia --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.8.0-desktop-0.rc5.1.mga3-advanced-f64c1cea-d7d7-44f6-8c3f-90d4dc886511' { + set gfxpayload=text + insmod gzio + insmod part_msdos + insmod ext2 + set root='hd1,msdos8' + if [ x$feature_platform_search_hint = xy ]; then + search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos8 --hint-efi=hd1,msdos8 --hint-baremetal=ahci1,msdos8 f64c1cea-d7d7-44f6-8c3f-90d4dc886511 + else + search --no-floppy --fs-uuid --set=root f64c1cea-d7d7-44f6-8c3f-90d4dc886511 + fi + echo 'Loading Linux 3.8.0-desktop-0.rc5.1.mga3 ...' + linux /boot/vmlinuz-3.8.0-desktop-0.rc5.1.mga3 root=UUID=f64c1cea-d7d7-44f6-8c3f-90d4dc886511 ro splash + echo 'Loading initial ramdisk ...' + initrd /boot/initrd-3.8.0-desktop-0.rc5.1.mga3.img + } + menuentry 'Mageia GNU/Linux, with Linux 3.8.0-desktop-0.rc4.1.mga3' --class mageia --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.8.0-desktop-0.rc4.1.mga3-advanced-f64c1cea-d7d7-44f6-8c3f-90d4dc886511' { + set gfxpayload=text + insmod gzio + insmod part_msdos + insmod ext2 + set root='hd1,msdos8' + if [ x$feature_platform_search_hint = xy ]; then + search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos8 --hint-efi=hd1,msdos8 --hint-baremetal=ahci1,msdos8 f64c1cea-d7d7-44f6-8c3f-90d4dc886511 + else + search --no-floppy --fs-uuid --set=root f64c1cea-d7d7-44f6-8c3f-90d4dc886511 + fi + echo 'Loading Linux 3.8.0-desktop-0.rc4.1.mga3 ...' + linux /boot/vmlinuz-3.8.0-desktop-0.rc4.1.mga3 root=UUID=f64c1cea-d7d7-44f6-8c3f-90d4dc886511 ro splash + echo 'Loading initial ramdisk ...' + initrd /boot/initrd-3.8.0-desktop-0.rc4.1.mga3.img + } +} + +### END /etc/grub.d/10_linux ### + +### BEGIN /etc/grub.d/20_linux_xen ### + +### END /etc/grub.d/20_linux_xen ### + +### BEGIN /etc/grub.d/30_os-prober ### +menuentry 'Windows 7 (loader) (on /dev/sda1)' --class windows --class os $menuentry_id_option 'osprober-chain-9A008B35008B1801' { + insmod part_msdos + insmod ntfs + set root='hd0,msdos1' + if [ x$feature_platform_search_hint = xy ]; then + search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 9A008B35008B1801 + else + search --no-floppy --fs-uuid --set=root 9A008B35008B1801 + fi + chainloader +1 +} +menuentry 'Mageia 2 (2)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-simple-20599988-d027-4cd2-80c4-b834e1013a80' { + insmod part_msdos + insmod ext2 + set root='hd1,msdos1' + if [ x$feature_platform_search_hint = xy ]; then + search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1 20599988-d027-4cd2-80c4-b834e1013a80 + else + search --no-floppy --fs-uuid --set=root 20599988-d027-4cd2-80c4-b834e1013a80 + fi + linux /boot/vmlinuz-all BOOT_IMAGE=install_beta_1 root=/dev/ram3 ramdisk_size=32000 vga=791 + initrd /boot/all.rdz +} +submenu 'Advanced options for Mageia 2 (2)' $menuentry_id_option 'osprober-gnulinux-advanced-20599988-d027-4cd2-80c4-b834e1013a80' { + menuentry 'install cauldron (on /dev/sdb1)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-all--20599988-d027-4cd2-80c4-b834e1013a80' { + insmod part_msdos + insmod ext2 + set root='hd1,msdos1' + if [ x$feature_platform_search_hint = xy ]; then + search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1 20599988-d027-4cd2-80c4-b834e1013a80 + else + search --no-floppy --fs-uuid --set=root 20599988-d027-4cd2-80c4-b834e1013a80 + fi + linux /boot/vmlinuz-all BOOT_IMAGE=install_beta_1 root=/dev/ram3 ramdisk_size=32000 vga=791 + initrd /boot/all.rdz + } + menuentry 'linux (on /dev/sdb1)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz--20599988-d027-4cd2-80c4-b834e1013a80' { + insmod part_msdos + insmod ext2 + set root='hd1,msdos1' + if [ x$feature_platform_search_hint = xy ]; then + search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1 20599988-d027-4cd2-80c4-b834e1013a80 + else + search --no-floppy --fs-uuid --set=root 20599988-d027-4cd2-80c4-b834e1013a80 + fi + linux /boot/vmlinuz BOOT_IMAGE=linux root=LABEL=mga-root splash quiet nokmsboot resume=UUID=a3dabcb9-c43e-4035-8bbe-576aa9c5573b vga=788 + initrd /boot/initrd.img + } + menuentry 'linux-nonfb (on /dev/sdb1)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz--20599988-d027-4cd2-80c4-b834e1013a80' { + insmod part_msdos + insmod ext2 + set root='hd1,msdos1' + if [ x$feature_platform_search_hint = xy ]; then + search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1 20599988-d027-4cd2-80c4-b834e1013a80 + else + search --no-floppy --fs-uuid --set=root 20599988-d027-4cd2-80c4-b834e1013a80 + fi + linux /boot/vmlinuz BOOT_IMAGE=linux-nonfb root=LABEL=mga-root nokmsboot resume=UUID=a3dabcb9-c43e-4035-8bbe-576aa9c5573b + initrd /boot/initrd.img + } + menuentry 'failsafe (on /dev/sdb1)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz--20599988-d027-4cd2-80c4-b834e1013a80' { + insmod part_msdos + insmod ext2 + set root='hd1,msdos1' + if [ x$feature_platform_search_hint = xy ]; then + search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1 20599988-d027-4cd2-80c4-b834e1013a80 + else + search --no-floppy --fs-uuid --set=root 20599988-d027-4cd2-80c4-b834e1013a80 + fi + linux /boot/vmlinuz BOOT_IMAGE=failsafe root=LABEL=mga-root failsafe + initrd /boot/initrd.img + } + menuentry 'desktop 3.3.6-2.mga2 (on /dev/sdb1)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-3.3.6-desktop-2.mga2--20599988-d027-4cd2-80c4-b834e1013a80' { + insmod part_msdos + insmod ext2 + set root='hd1,msdos1' + if [ x$feature_platform_search_hint = xy ]; then + search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1 20599988-d027-4cd2-80c4-b834e1013a80 + else + search --no-floppy --fs-uuid --set=root 20599988-d027-4cd2-80c4-b834e1013a80 + fi + linux /boot/vmlinuz-3.3.6-desktop-2.mga2 BOOT_IMAGE=desktop_3.3.6-2.mga2 root=LABEL=mga-root splash quiet nokmsboot resume=UUID=a3dabcb9-c43e-4035-8bbe-576aa9c5573b vga=788 + initrd /boot/initrd-3.3.6-desktop-2.mga2.img + } + menuentry 'desktop 3.3.8-2.mga2 (on /dev/sdb1)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-3.3.8-desktop-2.mga2--20599988-d027-4cd2-80c4-b834e1013a80' { + insmod part_msdos + insmod ext2 + set root='hd1,msdos1' + if [ x$feature_platform_search_hint = xy ]; then + search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1 20599988-d027-4cd2-80c4-b834e1013a80 + else + search --no-floppy --fs-uuid --set=root 20599988-d027-4cd2-80c4-b834e1013a80 + fi + linux /boot/vmlinuz-3.3.8-desktop-2.mga2 BOOT_IMAGE=desktop_3.3.8-2.mga2 root=LABEL=mga-root splash quiet nokmsboot resume=UUID=a3dabcb9-c43e-4035-8bbe-576aa9c5573b vga=788 + initrd /boot/initrd-3.3.8-desktop-2.mga2.img + } + menuentry 'desktop 3.4.24-3.mga2 (on /dev/sdb1)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-3.4.24-desktop-3.mga2--20599988-d027-4cd2-80c4-b834e1013a80' { + insmod part_msdos + insmod ext2 + set root='hd1,msdos1' + if [ x$feature_platform_search_hint = xy ]; then + search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1 20599988-d027-4cd2-80c4-b834e1013a80 + else + search --no-floppy --fs-uuid --set=root 20599988-d027-4cd2-80c4-b834e1013a80 + fi + linux /boot/vmlinuz-3.4.24-desktop-3.mga2 BOOT_IMAGE=desktop_3.4.24-3.mga2 root=LABEL=mga-root splash quiet nokmsboot resume=UUID=a3dabcb9-c43e-4035-8bbe-576aa9c5573b vga=788 + initrd /boot/initrd-3.4.24-desktop-3.mga2.img + } +} + +### END /etc/grub.d/30_os-prober ### + +### BEGIN /etc/grub.d/40_custom ### +# This file provides an easy way to add custom menu entries. Simply type the +# menu entries you want to add after this comment. Be careful not to change +# the 'exec tail' line above. +### END /etc/grub.d/40_custom ### + +### BEGIN /etc/grub.d/41_custom ### +if [ -f ${config_directory}/custom.cfg ]; then + source ${config_directory}/custom.cfg +elif [ -z "${config_directory}" -a -f $prefix/custom.cfg ]; then + source $prefix/custom.cfg; +fi +### END /etc/grub.d/41_custom ### + +### BEGIN /etc/grub.d/90_persistent ### +### END /etc/grub.d/90_persistent ### +</PRE> + + +<!--endarticle--> + <HR> + <P><UL> + <!--threads--> + <LI>Previous message: <A HREF="022242.html">[Mageia-dev] Grub2 vs. Grub Legacy in M3 +</A></li> + <LI>Next message: <A HREF="022296.html">[Mageia-dev] Grub2 vs. Grub Legacy in M3 +</A></li> + <LI> <B>Messages sorted by:</B> + <a href="date.html#22243">[ date ]</a> + <a href="thread.html#22243">[ thread ]</a> + <a href="subject.html#22243">[ subject ]</a> + <a href="author.html#22243">[ author ]</a> + </LI> + </UL> + +<hr> +<a href="https://www.mageia.org/mailman/listinfo/mageia-dev">More information about the Mageia-dev +mailing list</a><br> +</body></html> |