Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

enter image description here


Windows 8 menuentry works before I set a theme but not after. Why does this happen and how can I fix it?

Note: Please let me know if I should provide any other information.


Worked prior to 13.04

This bootloader theme(Script and setup instructions) for Grub2 worked with Win8 and Ubuntu 11.04 to 12.10 without problem.

With Ubuntu 13.04 / 13.10 it still works ( visually ) but the Win8 menuentry settings will not work after the theme.txt is set in /etc/default/grub.


Info obtained via bootinfoscript.

============================= Boot Info Summary: ===============================

 => Windows is installed in the MBR of /dev/sda.
 => Grub2 (v1.97-1.98) 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 in partition 6 for /boot/burg.

sda1: __________________________________________________________________________

    File system:       ntfs
    Boot sector type:  Windows Vista/7: NTFS
    Boot sector info:  No errors found in the Boot Parameter Block.
    Operating System:  
    Boot files:        

sda2: __________________________________________________________________________

    File system:       vfat
    Boot sector type:  Unknown
    Boot sector info:  No errors found in the Boot Parameter Block.
    Operating System:  
    Boot files:        /efi/Boot/bkpbootx64.efi /efi/Boot/bootx64.efi 
                       /efi/grub/grubx64.efi /efi/ubuntu/grubx64.efi 
                       /efi/ubuntu/shimx64.efi

sda3: __________________________________________________________________________

    File system:       
    Boot sector type:  -
    Boot sector info: 
    Mounting failed:   mount: unknown filesystem type ''

sda4: __________________________________________________________________________

    File system:       ntfs
    Boot sector type:  Windows Vista/7: NTFS
    Boot sector info:  No errors found in the Boot Parameter Block.
    Operating System:  
    Boot files:        /bootmgr /Boot/BCD /Windows/System32/winload.exe

sda5: __________________________________________________________________________

    File system:       swap
    Boot sector type:  -
    Boot sector info: 

sda6: __________________________________________________________________________

    File system:       ext4
    Boot sector type:  -
    Boot sector info: 
    Operating System:  Ubuntu Saucy Salamander 
                       (development branch)
    Boot files:        /boot/grub/grub.cfg /etc/fstab

sdb1: __________________________________________________________________________

    File system:       vfat
    Boot sector type:  Unknown
    Boot sector info:  No errors found in the Boot Parameter Block.
    Operating System:  
    Boot files:        

============================ Drive/Partition Info: =============================

Drive: sda _____________________________________________________________________

Disk /dev/sda: 128.0 GB, 128035676160 bytes
255 heads, 63 sectors/track, 15566 cylinders, total 250069680 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes

Partition  Boot  Start Sector    End Sector  # of Sectors  Id System

/dev/sda1                   1   250,069,679   250,069,679  ee GPT


GUID Partition Table detected.

Partition    Start Sector    End Sector  # of Sectors System
/dev/sda1           2,048     1,230,847     1,228,800 Windows Recovery Environment (Windows)
/dev/sda2       1,230,848     1,640,447       409,600 EFI System partition
/dev/sda3       1,640,448     1,902,591       262,144 Microsoft Reserved Partition (Windows)
/dev/sda4       1,902,592   187,144,779   185,242,188 Data partition (Windows/Linux)
/dev/sda5     187,146,240   188,315,647     1,169,408 Swap partition (Linux)
/dev/sda6     188,315,648   250,068,991    61,753,344 Data partition (Linux)

Drive: sdb _____________________________________________________________________

Disk /dev/sdb: 31.5 GB, 31486640128 bytes
255 heads, 63 sectors/track, 3828 cylinders, total 61497344 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes

Partition  Boot  Start Sector    End Sector  # of Sectors  Id System

/dev/sdb1    *          8,192    61,496,472    61,488,281   c W95 FAT32 (LBA)


"blkid" output: ________________________________________________________________

Device           UUID                                   TYPE       LABEL

/dev/sda1        1A5234C05234A305                       ntfs       Windows RE tools
/dev/sda2        BE36-A896                              vfat       SYSTEM
/dev/sda4        70C8115EC81123BE                       ntfs       Windows
/dev/sda5        c000eea6-7a85-49dd-a8a5-43c684e0d45e   swap       
/dev/sda6        a52a4d8b-25f8-4532-9681-c337e3cd4076   ext4       
/dev/sdb1        D20D-AA2D                              vfat       MIDMIND

================================ Mount points: =================================

Device           Mount_Point              Type       Options

/dev/sda2        /boot/efi                vfat       (rw)
/dev/sda6        /                        ext4       (rw,errors=remount-ro)
/dev/sdb1        /media/brandon/MIDMIND3  vfat       (rw,nosuid,nodev,uid=1000,gid=1000,shortname=mixed,dmask=0077,utf8=1,showexec,flush,uhelper=udisks2)


=========================== sda6/boot/grub/grub.cfg: ===========================

--------------------------------------------------------------------------------
#
# 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_gpt
insmod ext2
set root='hd0,gpt6'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt6 --hint-efi=hd0,gpt6 --hint-baremetal=ahci0,gpt6  a52a4d8b-25f8-4532-9681-c337e3cd4076
else
  search --no-floppy --fs-uuid --set=root a52a4d8b-25f8-4532-9681-c337e3cd4076
fi
    font="/usr/share/grub/unicode.pf2"
fi

if loadfont $font ; then
  set gfxmode=1920x1020
  load_video
  insmod gfxterm
  set locale_dir=$prefix/locale
  set lang=en_US
  insmod gettext
fi
terminal_output gfxterm
insmod part_gpt
insmod ext2
set root='hd0,gpt6'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt6 --hint-efi=hd0,gpt6 --hint-baremetal=ahci0,gpt6  a52a4d8b-25f8-4532-9681-c337e3cd4076
else
  search --no-floppy --fs-uuid --set=root a52a4d8b-25f8-4532-9681-c337e3cd4076
fi
insmod gfxmenu
loadfont ($root)/usr/share/grub/themes/mindo/ubuntu-thin-36.pf2
loadfont ($root)/usr/share/grub/themes/mindo/ubuntu.pf2
insmod png
set theme=($root)/usr/share/grub/themes/mindo/theme.txt
export theme
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 0,0,0; 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
menuentry 'Ubuntu  13.10' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-a52a4d8b-25f8-4532-9681-c337e3cd4076' {
recordfail
    load_video
    gfxmode $linux_gfx_mode
    insmod gzio
    insmod part_gpt
    insmod ext2
    set root='hd0,gpt6'
    if [ x$feature_platform_search_hint = xy ]; then
      search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt6 --hint-efi=hd0,gpt6 --hint-baremetal=ahci0,gpt6  a52a4d8b-25f8-4532-9681-c337e3cd4076
    else
      search --no-floppy --fs-uuid --set=root a52a4d8b-25f8-4532-9681-c337e3cd4076
    fi
    linux   /boot/vmlinuz-3.11.0-rc7 root=UUID=a52a4d8b-25f8-4532-9681-c337e3cd4076 ro   quiet splash $vt_handoff
    initrd  /boot/initrd.img-3.11.0-rc7
}
submenu 'Ubuntu Repair' --class recovery --class repair $menuentry_id_option 'gnulinux-advanced-a52a4d8b-25f8-4532-9681-c337e3cd4076' {
    menuentry 'Ubuntu, Refresh 3.11.0-rc7' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.11.0-rc7-advanced-a52a4d8b-25f8-4532-9681-c337e3cd4076' {
    recordfail
        load_video
        gfxmode $linux_gfx_mode
        insmod gzio
        insmod part_gpt
        insmod ext2
        set root='hd0,gpt6'
        if [ x$feature_platform_search_hint = xy ]; then
          search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt6 --hint-efi=hd0,gpt6 --hint-baremetal=ahci0,gpt6  a52a4d8b-25f8-4532-9681-c337e3cd4076
        else
          search --no-floppy --fs-uuid --set=root a52a4d8b-25f8-4532-9681-c337e3cd4076
        fi
        echo    'Loading Linux 3.11.0-rc7 ...'
        linux   /boot/vmlinuz-3.11.0-rc7 root=UUID=a52a4d8b-25f8-4532-9681-c337e3cd4076 ro   quiet splash $vt_handoff
        echo    'Loading initial ramdisk ...'
        initrd  /boot/initrd.img-3.11.0-rc7
    }
    menuentry 'Ubuntu, Repair 3.11.0-rc7' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.11.0-rc7-recovery-a52a4d8b-25f8-4532-9681-c337e3cd4076' {
    recordfail
        load_video
        insmod gzio
        insmod part_gpt
        insmod ext2
        set root='hd0,gpt6'
        if [ x$feature_platform_search_hint = xy ]; then
          search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt6 --hint-efi=hd0,gpt6 --hint-baremetal=ahci0,gpt6  a52a4d8b-25f8-4532-9681-c337e3cd4076
        else
          search --no-floppy --fs-uuid --set=root a52a4d8b-25f8-4532-9681-c337e3cd4076
        fi
        echo    'Loading Linux 3.11.0-rc7 ...'
        linux   /boot/vmlinuz-3.11.0-rc7 root=UUID=a52a4d8b-25f8-4532-9681-c337e3cd4076 ro recovery nomodeset 
        echo    'Loading initial ramdisk ...'
        initrd  /boot/initrd.img-3.11.0-rc7
    }
}

### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_linux_xen ###

### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/25_custom ###

menuentry "Windows 8 (A)" --class windows {
search --fs-uuid --no-floppy --set=root BE36-A896
chainloader (${root})/EFI/Microsoft/Boot/bootmgfw.efi
}

menuentry "Windows 8 (B)" --class windows {
search --fs-uuid --no-floppy --set=root BE36-A896
chainloader (${root})/EFI/Boot/bkpbootx64.efi
}
### END /etc/grub.d/25_custom ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Windows Boot Manager (C)" --class windows --class os {
    insmod part_gpt
    insmod fat
    set root='hd0,gpt2'
    if [ x$feature_platform_search_hint = xy ]; then
      search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2  BE36-A896
    else
      search --no-floppy --fs-uuid --set=root BE36-A896
    fi
    chainloader /EFI/Microsoft/Boot/bootmgfw.efi
}
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/30_uefi-firmware ###
menuentry "Secure Boot" --class secure --class recovery $menuentry_id_option 'uefi-firmware' {
    fwsetup
}
### 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 ###
--------------------------------------------------------------------------------

=============================== sda6/etc/fstab: ================================

--------------------------------------------------------------------------------
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/sda6 during installation
UUID=a52a4d8b-25f8-4532-9681-c337e3cd4076 /               ext4    errors=remount-ro 0       1
# /boot/efi was on /dev/sda2 during installation
#UUID=BE36-A896  /boot/efi       vfat    defaults        0       1
# swap was on /dev/sda5 during installation
UUID=c000eea6-7a85-49dd-a8a5-43c684e0d45e none            swap    sw              0       0
UUID=BE36-A896  /boot/efi   vfat    defaults    0   1
--------------------------------------------------------------------------------
share|improve this question

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.