Windows 8 Dual boot lost after Fedora upgrade
Gary Stainburn
gary.stainburn at ringways.co.uk
Wed Jul 15 15:09:29 UTC 2015
On Wednesday 15 July 2015 13:36:53 Chris Murphy wrote:
> ++ GRUB_DISABLE_OS_PROBER=true
>
> This is why it's not making the Windows entry. I mentioned it previously.
> So comment out that line in /etc/default/grub and then rerun grub2-mkconfig
> -o ... to make a new grub.cfg in the proper location.
>
> Chris Murphy
Hi Chris,
Sorry I missed that. It's now included a chain loader entry for Windows,
included below.
As you suggested, I tried looking at the man page for grub2-mkconfig.
Unfortunately, I don't have that man page installed so I tried googling it.
The search pointed me to
https://fedoraproject.org/wiki/GRUB_2
which has only succeeded in confusing me more. Based on the generated config
file below, am I right in thinking that all I need to do to get GRUB to work
and to allow me to boot windows is to:
grub2-mkconfig -o /boot/grub2/grub.cfg
Assuming this is correct, I still need to work out how to get the laptop to
boot GRUB instead of the Windows OS Boot loader.
#
# 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
if [ "${next_entry}" ] ; then
set default="${next_entry}"
set next_entry=
save_env next_entry
set boot_once=true
else
set default="${saved_entry}"
fi
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
}
terminal_output console
set timeout=5
### END /etc/grub.d/00_header ###
### BEGIN /etc/grub.d/10_linux ###
menuentry 'Fedora, with Linux 3.19.8-100.fc20.x86_64' --class fedora --class
gnu-linux --class gnu --class os --unrestricted
$menuentry_id_option 'gnulinux-3.19.8-100.fc20.x86_64-advanced-7bd8b8aa-711f-4195-b6a9-27d1879e3079'
{
load_video
set gfxpayload=keep
insmod gzio
insmod part_gpt
insmod ext2
set root='hd0,gpt3'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt3 --hint-efi=hd0,gpt3 --hint-baremetal=ahci0,gpt3
c0c76610-4d06-4aa7-a0a7-4345a1e74a7b
else
search --no-floppy --fs-uuid --set=root
c0c76610-4d06-4aa7-a0a7-4345a1e74a7b
fi
linuxefi /vmlinuz-3.19.8-100.fc20.x86_64 root=/dev/mapper/fedora-root ro
rd.lvm.lv=fedora/swap vconsole.font=latarcyrheb-sun16 rd.lvm.lv=fedora/root
rhgb quiet
initrdefi /initramfs-3.19.8-100.fc20.x86_64.img
}
menuentry 'Fedora, with Linux 3.19.5-100.fc20.x86_64' --class fedora --class
gnu-linux --class gnu --class os --unrestricted
$menuentry_id_option 'gnulinux-3.19.5-100.fc20.x86_64-advanced-7bd8b8aa-711f-4195-b6a9-27d1879e3079'
{
load_video
set gfxpayload=keep
insmod gzio
insmod part_gpt
insmod ext2
set root='hd0,gpt3'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt3 --hint-efi=hd0,gpt3 --hint-baremetal=ahci0,gpt3
c0c76610-4d06-4aa7-a0a7-4345a1e74a7b
else
search --no-floppy --fs-uuid --set=root
c0c76610-4d06-4aa7-a0a7-4345a1e74a7b
fi
linuxefi /vmlinuz-3.19.5-100.fc20.x86_64 root=/dev/mapper/fedora-root ro
rd.lvm.lv=fedora/swap vconsole.font=latarcyrheb-sun16 rd.lvm.lv=fedora/root
rhgb quiet
initrdefi /initramfs-3.19.5-100.fc20.x86_64.img
}
menuentry 'Fedora, with Linux 3.19.4-100.fc20.x86_64' --class fedora --class
gnu-linux --class gnu --class os --unrestricted
$menuentry_id_option 'gnulinux-3.19.4-100.fc20.x86_64-advanced-7bd8b8aa-711f-4195-b6a9-27d1879e3079'
{
load_video
set gfxpayload=keep
insmod gzio
insmod part_gpt
insmod ext2
set root='hd0,gpt3'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt3 --hint-efi=hd0,gpt3 --hint-baremetal=ahci0,gpt3
c0c76610-4d06-4aa7-a0a7-4345a1e74a7b
else
search --no-floppy --fs-uuid --set=root
c0c76610-4d06-4aa7-a0a7-4345a1e74a7b
fi
linuxefi /vmlinuz-3.19.4-100.fc20.x86_64 root=/dev/mapper/fedora-root ro
rd.lvm.lv=fedora/swap vconsole.font=latarcyrheb-sun16 rd.lvm.lv=fedora/root
rhgb quiet
initrdefi /initramfs-3.19.4-100.fc20.x86_64.img
}
menuentry 'Fedora, with Linux
0-rescue-da98f419484443dab77787b4692f3f8f' --class fedora --class
gnu-linux --class gnu --class os --unrestricted
$menuentry_id_option 'gnulinux-0-rescue-da98f419484443dab77787b4692f3f8f-advanced-7bd8b8aa-711f-4195-b6a9-27d1879e3079'
{
load_video
insmod gzio
insmod part_gpt
insmod ext2
set root='hd0,gpt3'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt3 --hint-efi=hd0,gpt3 --hint-baremetal=ahci0,gpt3
c0c76610-4d06-4aa7-a0a7-4345a1e74a7b
else
search --no-floppy --fs-uuid --set=root
c0c76610-4d06-4aa7-a0a7-4345a1e74a7b
fi
linuxefi /vmlinuz-0-rescue-da98f419484443dab77787b4692f3f8f
root=/dev/mapper/fedora-root ro rd.lvm.lv=fedora/swap
vconsole.font=latarcyrheb-sun16 rd.lvm.lv=fedora/root rhgb quiet
initrdefi /initramfs-0-rescue-da98f419484443dab77787b4692f3f8f.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/20_ppc_terminfo ###
### END /etc/grub.d/20_ppc_terminfo ###
### BEGIN /etc/grub.d/30_os-prober ###
menuentry 'Windows Boot Manager' {
chainloader /EFI/Microsoft/Boot/bootmgfw.efi
boot
}
### END /etc/grub.d/30_os-prober ###
### 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 ###
--
Gary Stainburn
Group I.T. Manager
Ringways Garages
http://www.ringways.co.uk
More information about the users
mailing list