grub2.00x and grub1.99x do not mix at all on multiboot !

Discussion in 'all things UNIX' started by Ocky, Nov 24, 2012.

Thread Status:
Not open for further replies.
  1. Ocky

    Ocky Registered Member

    Joined:
    May 6, 2006
    Posts:
    2,677
    Location:
    George, S.Africa
    Further to my post earlier on https://www.wilderssecurity.com/showpost.php?p=2148283&postcount=1 I have done an upgrade from Kubuntu 12.04 to 12.10 on sdb (the OS from which I boot everything is Kubuntu 12.04 on sda).
    The upgrade itself went smoothly but here's the crunch. I am getting the 12.04 splash and am booting into the 12.04 kernel, although I am running 12.10 and have the 3.5x kernel installed.

    severin@severin-desktop:~$ uname -a Linux severin-desktop 3.2.0-33-generic #52-Ubuntu SMP Thu Oct 18 16:29:15 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux severin@severin-desktop:~$ cat /etc/lsb-release DISTRIB_ID=Ubuntu DISTRIB_RELEASE=12.10 DISTRIB_CODENAME=quantal DISTRIB_DESCRIPTION="Ubuntu 12.10" severin@severin-desktop:~$

    severin@severin-desktop:~$ sudo grub-install --force /dev/sdb1
    /usr/sbin/grub-bios-setup: warning: File system `ext2' doesn't support embedding.
    /usr/sbin/grub-bios-setup: warning: Embedding is not possible. GRUB can only be installed in this setup by using blocklists. However, blocklists are UNRELIABLE and their use is discouraged..
    Installation finished. No error reported.
    severin@severin-desktop:~$ sudo update-grub
    Generating grub.cfg ...
    Found linux image: /boot/vmlinuz-3.5.0-18-generic
    Found initrd image: /boot/initrd.img-3.5.0-18-generic
    Found linux image: /boot/vmlinuz-3.2.0-33-generic
    Found initrd image: /boot/initrd.img-3.2.0-33-generic
    Found memtest86+ image: /boot/memtest86+.bin
    Found Ubuntu 12.04.1 LTS (12.04) on /dev/sda1
    Found Scientific Linux release 6.3 (Carbon) on /dev/sdb5
    done
    severin@severin-desktop:~$

    Even after disabling OS prober there is no change.

    This seems to be a big problem with multiboot setups as borne out by this thread ...
    http://ubuntuforums.org/showthread.php?t=2065520&highlight=grub2 lubuntu

    Any ideas ?

    For some reason 12.10 is using the 1.99 grub of 12.04.

    => Grub2 (v1.99) is installed in the MBR of /dev/sda and looks at sector 1 of
    the same hard drive for core.img. core.img is at this location and looks
    for (,msdos1)/boot/grub on this drive.
    => Grub2 (v1.99) is installed in the MBR of /dev/sdb and looks at sector 1 of
    the same hard drive for core.img. core.img is at this location and looks
    for (,msdos1)/boot/grub on this drive.
     
    Last edited: Nov 24, 2012
  2. mack_guy911

    mack_guy911 Registered Member

    Joined:
    Mar 21, 2007
    Posts:
    2,677
    i never like grub2 sorry ocky no idea

    i upgrade from 12.04 to 12.10 my

    i have 1st partition 512 MB for grub only

    grub here

    Code:
    #
    # DO NOT EDIT THIS FILE
    #
    # It is automatically generated by grub-mkconfig using templates
    # from /etc/grub.d and settings from /etc/default/grub
    #
    
    ### BEGIN /etc/grub.d/00_header ###
    if [ -s $prefix/grubenv ]; then
      set have_grubenv=true
      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 recordfail {
      set recordfail=1
      if [ -n "${have_grubenv}" ]; then if [ -z "${boot_once}" ]; then save_env recordfail; fi; 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 [ x$feature_default_font_path = xy ] ; then
       font=unicode
    else
    insmod part_msdos
    insmod ext2
    set root='hd1,msdos7'
    if [ x$feature_platform_search_hint = xy ]; then
      search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos7 --hint-efi=hd1,msdos7 --hint-baremetal=ahci1,msdos7  7be70ac4-1d5d-4eae-bf63-d6bd16a69e55
    else
      search --no-floppy --fs-uuid --set=root 7be70ac4-1d5d-4eae-bf63-d6bd16a69e55
    fi
        font="/usr/share/grub/unicode.pf2"
    fi
    
    if loadfont $font ; then
      set gfxmode=auto
      load_video
      insmod gfxterm
      set locale_dir=$prefix/locale
      set lang=en_IN
      insmod gettext
    fi
    terminal_output gfxterm
    if [ "${recordfail}" = 1 ]; then
      set timeout=-1
    else
      set timeout=10
    fi
    ### END /etc/grub.d/00_header ###
    
    ### BEGIN /etc/grub.d/05_debian_theme ###
    set menu_color_normal=white/black
    set menu_color_highlight=black/light-gray
    if background_color 44,0,30; then
      clear
    fi
    ### END /etc/grub.d/05_debian_theme ###
    
    ### BEGIN /etc/grub.d/10_linux ###
    function gfxmode {
    	set gfxpayload="${1}"
    	if [ "${1}" = "keep" ]; then
    		set vt_handoff=vt.handoff=7
    	else
    		set vt_handoff=
    	fi
    }
    if [ "${recordfail}" != 1 ]; then
      if [ -e ${prefix}/gfxblacklist.txt ]; then
        if hwmatch ${prefix}/gfxblacklist.txt 3; then
          if [ ${match} = 0 ]; then
            set linux_gfx_mode=keep
          else
            set linux_gfx_mode=text
          fi
        else
          set linux_gfx_mode=text
        fi
      else
        set linux_gfx_mode=keep
      fi
    else
      set linux_gfx_mode=text
    fi
    export linux_gfx_mode
    if [ "${linux_gfx_mode}" != "text" ]; then load_video; fi
    menuentry 'Ubuntu' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-7be70ac4-1d5d-4eae-bf63-d6bd16a69e55' {
    recordfail
    	gfxmode $linux_gfx_mode
    	insmod gzio
    	insmod part_msdos
    	insmod ext2
    	set root='hd1,msdos7'
    	if [ x$feature_platform_search_hint = xy ]; then
    	  search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos7 --hint-efi=hd1,msdos7 --hint-baremetal=ahci1,msdos7  7be70ac4-1d5d-4eae-bf63-d6bd16a69e55
    	else
    	  search --no-floppy --fs-uuid --set=root 7be70ac4-1d5d-4eae-bf63-d6bd16a69e55
    	fi
    	linux	/boot/vmlinuz-3.5.0-18-generic root=UUID=7be70ac4-1d5d-4eae-bf63-d6bd16a69e55 ro   quiet splash $vt_handoff
    	initrd	/boot/initrd.img-3.5.0-18-generic
    }
    submenu 'Advanced options for Ubuntu' $menuentry_id_option 'gnulinux-advanced-7be70ac4-1d5d-4eae-bf63-d6bd16a69e55' {
    	menuentry 'Ubuntu, with Linux 3.5.0-18-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.5.0-18-generic-advanced-7be70ac4-1d5d-4eae-bf63-d6bd16a69e55' {
    	recordfail
    		gfxmode $linux_gfx_mode
    		insmod gzio
    		insmod part_msdos
    		insmod ext2
    		set root='hd1,msdos7'
    		if [ x$feature_platform_search_hint = xy ]; then
    		  search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos7 --hint-efi=hd1,msdos7 --hint-baremetal=ahci1,msdos7  7be70ac4-1d5d-4eae-bf63-d6bd16a69e55
    		else
    		  search --no-floppy --fs-uuid --set=root 7be70ac4-1d5d-4eae-bf63-d6bd16a69e55
    		fi
    		echo	'Loading Linux 3.5.0-18-generic ...'
    		linux	/boot/vmlinuz-3.5.0-18-generic root=UUID=7be70ac4-1d5d-4eae-bf63-d6bd16a69e55 ro   quiet splash $vt_handoff
    		echo	'Loading initial ramdisk ...'
    		initrd	/boot/initrd.img-3.5.0-18-generic
    	}
    	menuentry 'Ubuntu, with Linux 3.5.0-18-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.5.0-18-generic-recovery-7be70ac4-1d5d-4eae-bf63-d6bd16a69e55' {
    	recordfail
    		insmod gzio
    		insmod part_msdos
    		insmod ext2
    		set root='hd1,msdos7'
    		if [ x$feature_platform_search_hint = xy ]; then
    		  search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos7 --hint-efi=hd1,msdos7 --hint-baremetal=ahci1,msdos7  7be70ac4-1d5d-4eae-bf63-d6bd16a69e55
    		else
    		  search --no-floppy --fs-uuid --set=root 7be70ac4-1d5d-4eae-bf63-d6bd16a69e55
    		fi
    		echo	'Loading Linux 3.5.0-18-generic ...'
    		linux	/boot/vmlinuz-3.5.0-18-generic root=UUID=7be70ac4-1d5d-4eae-bf63-d6bd16a69e55 ro recovery nomodeset 
    		echo	'Loading initial ramdisk ...'
    		initrd	/boot/initrd.img-3.5.0-18-generic
    	}
    	menuentry 'Ubuntu, with Linux 3.2.0-32-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.2.0-32-generic-advanced-7be70ac4-1d5d-4eae-bf63-d6bd16a69e55' {
    	recordfail
    		gfxmode $linux_gfx_mode
    		insmod gzio
    		insmod part_msdos
    		insmod ext2
    		set root='hd1,msdos7'
    		if [ x$feature_platform_search_hint = xy ]; then
    		  search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos7 --hint-efi=hd1,msdos7 --hint-baremetal=ahci1,msdos7  7be70ac4-1d5d-4eae-bf63-d6bd16a69e55
    		else
    		  search --no-floppy --fs-uuid --set=root 7be70ac4-1d5d-4eae-bf63-d6bd16a69e55
    		fi
    		echo	'Loading Linux 3.2.0-32-generic ...'
    		linux	/boot/vmlinuz-3.2.0-32-generic root=UUID=7be70ac4-1d5d-4eae-bf63-d6bd16a69e55 ro   quiet splash $vt_handoff
    		echo	'Loading initial ramdisk ...'
    		initrd	/boot/initrd.img-3.2.0-32-generic
    	}
    	menuentry 'Ubuntu, with Linux 3.2.0-32-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.2.0-32-generic-recovery-7be70ac4-1d5d-4eae-bf63-d6bd16a69e55' {
    	recordfail
    		insmod gzio
    		insmod part_msdos
    		insmod ext2
    		set root='hd1,msdos7'
    		if [ x$feature_platform_search_hint = xy ]; then
    		  search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos7 --hint-efi=hd1,msdos7 --hint-baremetal=ahci1,msdos7  7be70ac4-1d5d-4eae-bf63-d6bd16a69e55
    		else
    		  search --no-floppy --fs-uuid --set=root 7be70ac4-1d5d-4eae-bf63-d6bd16a69e55
    		fi
    		echo	'Loading Linux 3.2.0-32-generic ...'
    		linux	/boot/vmlinuz-3.2.0-32-generic root=UUID=7be70ac4-1d5d-4eae-bf63-d6bd16a69e55 ro recovery nomodeset 
    		echo	'Loading initial ramdisk ...'
    		initrd	/boot/initrd.img-3.2.0-32-generic
    	}
    }
    
    ### END /etc/grub.d/10_linux ###
    
    ### BEGIN /etc/grub.d/20_linux_xen ###
    
    ### END /etc/grub.d/20_linux_xen ###
    
    ### BEGIN /etc/grub.d/20_memtest86+ ###
    menuentry "Memory test (memtest86+)" {
    	insmod part_msdos
    	insmod ext2
    	set root='hd1,msdos7'
    	if [ x$feature_platform_search_hint = xy ]; then
    	  search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos7 --hint-efi=hd1,msdos7 --hint-baremetal=ahci1,msdos7  7be70ac4-1d5d-4eae-bf63-d6bd16a69e55
    	else
    	  search --no-floppy --fs-uuid --set=root 7be70ac4-1d5d-4eae-bf63-d6bd16a69e55
    	fi
    	linux16	/boot/memtest86+.bin
    }
    menuentry "Memory test (memtest86+, serial console 115200)" {
    	insmod part_msdos
    	insmod ext2
    	set root='hd1,msdos7'
    	if [ x$feature_platform_search_hint = xy ]; then
    	  search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos7 --hint-efi=hd1,msdos7 --hint-baremetal=ahci1,msdos7  7be70ac4-1d5d-4eae-bf63-d6bd16a69e55
    	else
    	  search --no-floppy --fs-uuid --set=root 7be70ac4-1d5d-4eae-bf63-d6bd16a69e55
    	fi
    	linux16	/boot/memtest86+.bin console=ttyS0,115200n8
    }
    ### END /etc/grub.d/20_memtest86+ ###
    
    ### BEGIN /etc/grub.d/30_os-prober ###
    menuentry 'Windows Vista (loader) (on /dev/sda1)' --class windows --class os $menuentry_id_option 'osprober-chain-0A2C06002C05E791' {
    	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  0A2C06002C05E791
    	else
    	  search --no-floppy --fs-uuid --set=root 0A2C06002C05E791
    	fi
    	chainloader +1
    }
    menuentry 'Scientific Linux release 6.3 (Carbon)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-simple-d3be6bbf-bde6-4f4e-a10b-c8224c8ac5ad' {
    	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  b297add1-d36c-49e8-9fc8-79c447219555
    	else
    	  search --no-floppy --fs-uuid --set=root b297add1-d36c-49e8-9fc8-79c447219555
    	fi
    	linux /vmlinuz-2.6.32-279.14.1.el6.x86_64 ro root=UUID=d3be6bbf-bde6-4f4e-a10b-c8224c8ac5ad rd_NO_LUKS rd_NO_LVM LANG=en_US.UTF-8 rd_NO_MD quiet SYSFONT=latarcyrheb-sun16 rhgb crashkernel=auto KEYBOARDTYPE=pc KEYTABLE=us rd_NO_DM vga=788 rdblacklist=nouveau nouveau.modeset=0
    	initrd /initramfs-2.6.32-279.14.1.el6.x86_64.img
    }
    submenu 'Advanced options for Scientific Linux release 6.3 (Carbon)' $menuentry_id_option 'osprober-gnulinux-advanced-d3be6bbf-bde6-4f4e-a10b-c8224c8ac5ad' {
    	menuentry 'Scientific Linux (2.6.32-279.14.1.el6.x86_64) (on /dev/sdb2)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/vmlinuz-2.6.32-279.14.1.el6.x86_64--d3be6bbf-bde6-4f4e-a10b-c8224c8ac5ad' {
    		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  b297add1-d36c-49e8-9fc8-79c447219555
    		else
    		  search --no-floppy --fs-uuid --set=root b297add1-d36c-49e8-9fc8-79c447219555
    		fi
    		linux /vmlinuz-2.6.32-279.14.1.el6.x86_64 ro root=UUID=d3be6bbf-bde6-4f4e-a10b-c8224c8ac5ad rd_NO_LUKS rd_NO_LVM LANG=en_US.UTF-8 rd_NO_MD quiet SYSFONT=latarcyrheb-sun16 rhgb crashkernel=auto KEYBOARDTYPE=pc KEYTABLE=us rd_NO_DM vga=788 rdblacklist=nouveau nouveau.modeset=0
    		initrd /initramfs-2.6.32-279.14.1.el6.x86_64.img
    	}
    	menuentry 'Scientific Linux (2.6.32-279.11.1.el6.x86_64) (on /dev/sdb2)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/vmlinuz-2.6.32-279.11.1.el6.x86_64--d3be6bbf-bde6-4f4e-a10b-c8224c8ac5ad' {
    		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  b297add1-d36c-49e8-9fc8-79c447219555
    		else
    		  search --no-floppy --fs-uuid --set=root b297add1-d36c-49e8-9fc8-79c447219555
    		fi
    		linux /vmlinuz-2.6.32-279.11.1.el6.x86_64 ro root=UUID=d3be6bbf-bde6-4f4e-a10b-c8224c8ac5ad rd_NO_LUKS rd_NO_LVM LANG=en_US.UTF-8 rd_NO_MD quiet SYSFONT=latarcyrheb-sun16 rhgb crashkernel=auto KEYBOARDTYPE=pc KEYTABLE=us rd_NO_DM vga=788 rdblacklist=nouveau nouveau.modeset=0
    		initrd /initramfs-2.6.32-279.11.1.el6.x86_64.img
    	}
    	menuentry 'Scientific Linux (2.6.32-279.9.1.el6.x86_64) (on /dev/sdb2)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/vmlinuz-2.6.32-279.9.1.el6.x86_64--d3be6bbf-bde6-4f4e-a10b-c8224c8ac5ad' {
    		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  b297add1-d36c-49e8-9fc8-79c447219555
    		else
    		  search --no-floppy --fs-uuid --set=root b297add1-d36c-49e8-9fc8-79c447219555
    		fi
    		linux /vmlinuz-2.6.32-279.9.1.el6.x86_64 ro root=UUID=d3be6bbf-bde6-4f4e-a10b-c8224c8ac5ad rd_NO_LUKS rd_NO_LVM LANG=en_US.UTF-8 rd_NO_MD quiet SYSFONT=latarcyrheb-sun16 rhgb crashkernel=auto KEYBOARDTYPE=pc KEYTABLE=us rd_NO_DM vga=788 rdblacklist=nouveau nouveau.modeset=0
    		initrd /initramfs-2.6.32-279.9.1.el6.x86_64.img
    	}
    }
    
    ### END /etc/grub.d/30_os-prober ###
    
    ### BEGIN /etc/grub.d/30_uefi-firmware ###
    ### END /etc/grub.d/30_uefi-firmware ###
    
    ### 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 ###
     
    Last edited: Nov 24, 2012
  3. Ocky

    Ocky Registered Member

    Joined:
    May 6, 2006
    Posts:
    2,677
    Location:
    George, S.Africa
    Hmm.. with your separate boot partition, you are probably not seeing those lengthy grub menu entries. There is no way around that in my setup, unless I install grub 2.00 to the mbr of sda of my Kubuntu 12.04 overwriting the grub 1.99 loader.
    Anyway, although I booted into 12.10 on the other hdd (by enabling os prober again on 12.04 and getting those messy menu entries), I had some trouble with the clean install I decided to do. Everytime I added the Terminal to the panel I was taken back to login screen. :argh:
    So I wiped Kubuntu 12.10 as I think the burned cd disk may have errors. I am back to my neat grub 1.99 menu now and will wait till January when 12.04 point release will give me grub 2.00 which will sort out the conflicts between a mix of 1.99 and 2.00
     
  4. Ocky

    Ocky Registered Member

    Joined:
    May 6, 2006
    Posts:
    2,677
    Location:
    George, S.Africa
    All sorted. The reason I had panel troubles with Kubuntu 12.10 was that I had not yet installed nvidia drivers. Once I did that all was hunky dory.

    Am booting from my main OS being Kubuntu 12.04 LTS with symlink and chainloader for Kubuntu 12.10 and Scientific 6.3 respectively.
    my grub menu is now 'clean'. :thumb:

    Code:
    #
    # DO NOT EDIT THIS FILE
    #
    # It is automatically generated by grub-mkconfig using templates
    # from /etc/grub.d and settings from /etc/default/grub
    #
    
    ### BEGIN /etc/grub.d/00_header ###
    if [ -s $prefix/grubenv ]; then
      set have_grubenv=true
      load_env
    fi
    set default="0"
    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 recordfail {
      set recordfail=1
      if [ -n "${have_grubenv}" ]; then if [ -z "${boot_once}" ]; then save_env recordfail; fi; fi
    }
    
    function load_video {
      insmod vbe
      insmod vga
      insmod video_bochs
      insmod video_cirrus
    }
    
    insmod part_msdos
    insmod ext2
    set root='(hd0,msdos1)'
    search --no-floppy --fs-uuid --set=root 07bf4675-24a8-43df-9ee6-24c8461e08c1
    if loadfont /usr/share/grub/unicode.pf2 ; then
      set gfxmode=auto
      load_video
      insmod gfxterm
      insmod part_msdos
      insmod ext2
      set root='(hd0,msdos1)'
      search --no-floppy --fs-uuid --set=root 07bf4675-24a8-43df-9ee6-24c8461e08c1
      set locale_dir=($root)/boot/grub/locale
      set lang=en_ZA
      insmod gettext
    fi
    terminal_output gfxterm
    if [ "${recordfail}" = 1 ]; then
      set timeout=-1
    else
      set timeout=10
    fi
    ### END /etc/grub.d/00_header ###
    
    ### BEGIN /etc/grub.d/05_debian_theme ###
    set menu_color_normal=white/black
    set menu_color_highlight=black/light-gray
    if background_color 75,75,75; then
      clear
    fi
    ### END /etc/grub.d/05_debian_theme ###
    
    ### BEGIN /etc/grub.d/10_linux ###
    function gfxmode {
    	set gfxpayload="${1}"
    	if [ "${1}" = "keep" ]; then
    		set vt_handoff=vt.handoff=7
    	else
    		set vt_handoff=
    	fi
    }
    if [ "${recordfail}" != 1 ]; then
      if [ -e ${prefix}/gfxblacklist.txt ]; then
        if hwmatch ${prefix}/gfxblacklist.txt 3; then
          if [ ${match} = 0 ]; then
            set linux_gfx_mode=keep
          else
            set linux_gfx_mode=text
          fi
        else
          set linux_gfx_mode=text
        fi
      else
        set linux_gfx_mode=keep
      fi
    else
      set linux_gfx_mode=text
    fi
    export linux_gfx_mode
    if [ "${linux_gfx_mode}" != "text" ]; then load_video; fi
    menuentry 'Ubuntu, with Linux 3.2.0-33-generic' --class ubuntu --class gnu-linux --class gnu --class os {
    	recordfail
    	gfxmode $linux_gfx_mode
    	insmod gzio
    	insmod part_msdos
    	insmod ext2
    	set root='(hd0,msdos1)'
    	search --no-floppy --fs-uuid --set=root 07bf4675-24a8-43df-9ee6-24c8461e08c1
    	linux	/boot/vmlinuz-3.2.0-33-generic root=UUID=07bf4675-24a8-43df-9ee6-24c8461e08c1 ro   quiet splash $vt_handoff
    	initrd	/boot/initrd.img-3.2.0-33-generic
    }
    menuentry 'Ubuntu, with Linux 3.2.0-33-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
    	recordfail
    	insmod gzio
    	insmod part_msdos
    	insmod ext2
    	set root='(hd0,msdos1)'
    	search --no-floppy --fs-uuid --set=root 07bf4675-24a8-43df-9ee6-24c8461e08c1
    	echo	'Loading Linux 3.2.0-33-generic ...'
    	linux	/boot/vmlinuz-3.2.0-33-generic root=UUID=07bf4675-24a8-43df-9ee6-24c8461e08c1 ro recovery nomodeset 
    	echo	'Loading initial ramdisk ...'
    	initrd	/boot/initrd.img-3.2.0-33-generic
    }
    submenu "Previous Linux versions" {
    menuentry 'Ubuntu, with Linux 3.2.0-32-generic' --class ubuntu --class gnu-linux --class gnu --class os {
    	recordfail
    	gfxmode $linux_gfx_mode
    	insmod gzio
    	insmod part_msdos
    	insmod ext2
    	set root='(hd0,msdos1)'
    	search --no-floppy --fs-uuid --set=root 07bf4675-24a8-43df-9ee6-24c8461e08c1
    	linux	/boot/vmlinuz-3.2.0-32-generic root=UUID=07bf4675-24a8-43df-9ee6-24c8461e08c1 ro   quiet splash $vt_handoff
    	initrd	/boot/initrd.img-3.2.0-32-generic
    }
    menuentry 'Ubuntu, with Linux 3.2.0-32-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
    	recordfail
    	insmod gzio
    	insmod part_msdos
    	insmod ext2
    	set root='(hd0,msdos1)'
    	search --no-floppy --fs-uuid --set=root 07bf4675-24a8-43df-9ee6-24c8461e08c1
    	echo	'Loading Linux 3.2.0-32-generic ...'
    	linux	/boot/vmlinuz-3.2.0-32-generic root=UUID=07bf4675-24a8-43df-9ee6-24c8461e08c1 ro recovery nomodeset 
    	echo	'Loading initial ramdisk ...'
    	initrd	/boot/initrd.img-3.2.0-32-generic
    }
    }
    ### END /etc/grub.d/10_linux ###
    
    ### BEGIN /etc/grub.d/20_linux_xen ###
    ### END /etc/grub.d/20_linux_xen ###
    
    ### BEGIN /etc/grub.d/20_memtest86+ ###
    menuentry "Memory test (memtest86+)" {
    	insmod part_msdos
    	insmod ext2
    	set root='(hd0,msdos1)'
    	search --no-floppy --fs-uuid --set=root 07bf4675-24a8-43df-9ee6-24c8461e08c1
    	linux16	/boot/memtest86+.bin
    }
    menuentry "Memory test (memtest86+, serial console 115200)" {
    	insmod part_msdos
    	insmod ext2
    	set root='(hd0,msdos1)'
    	search --no-floppy --fs-uuid --set=root 07bf4675-24a8-43df-9ee6-24c8461e08c1
    	linux16	/boot/memtest86+.bin console=ttyS0,115200n8
    }
    ### END /etc/grub.d/20_memtest86+ ###
    
    ### BEGIN /etc/grub.d/30_os-prober ###
    ### 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.
    
    menuentry "Kubuntu 12.10" {
      set root=(hd1,1)
         linux /vmlinuz root=/dev/sdb1 ro quiet splash
         initrd /initrd.img
    }
    
    menuentry "Scientific linux 6.3 Chainload Boot" {
        set root=(hd1,5)
        chainloader +1    
    }
    ### END /etc/grub.d/40_custom ###
    
    ### BEGIN /etc/grub.d/41_custom ###
    if [ -f  $prefix/custom.cfg ]; then
      source $prefix/custom.cfg;
    fi
    ### END /etc/grub.d/41_custom ###
    
     
  5. mack_guy911

    mack_guy911 Registered Member

    Joined:
    Mar 21, 2007
    Posts:
    2,677
    good news man now all you need is windows 8 to test it :p
     
Loading...
Thread Status:
Not open for further replies.