[SOLVED] Windows stopped booting after Linux Fedora 30 install
Linux - Laptop and NetbookHaving a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Windows stopped booting after Linux Fedora 30 install
I had been using Fedora 25. So I backed up my data and installed Fedora over that.
My Windows 8 installation still shows up in the netbook boot menu, as does the Windows recovery. But it just reboots when I select them.
I did not change the laptop BIOS settings. So I guess this can't be a problem where one boot was UEFI and one wasn't.
I found that my recovery backup, made years ago on DVD, doesn't work now. The DVDs must be knackered. I have the data on my Linux backup. If I could find a way to turn that proprietary HP format into an image. I will look it up if needed.
Was your Fedora 25 install an EFI install? When you mount the EFI partition, do you have a fedora directory with the EFI boot files and are they current, for Fedora 30?
Quote:
I did not change the laptop BIOS settings. So I guess this can't be a problem where one boot was UEFI and one wasn't.
Not sure that is necessarily the case as Legacy may have been enabled but Fedora 25 was installed EFI. Having Legacy enabled doesn't mean the install will be Legacy. Check your EFI partition for starters.
Presumably F30 boots ok - if so go here, do as it says and post the RESULTS.txt here so we can see the full boot environment. No personal data, but partitions and such.
Fedora 30 works great. Here is the output from that script
To get this all in I deleted the information for partitions sda9 and sda10 which are just places I store data. Turned out I needed two posts to get it all in anyway.
Quote:
Boot Info Script 0.77 [10 June 2018]
============================= Boot Info Summary: ===============================
=> Grub2 (v2.00) is installed in the MBR of /dev/sda and looks at sector
1279105024 of the same hard drive for core.img. core.img is at this
location and looks for (,gpt8)/grub2. It also embeds following components:
--------------------------------------------------------------------------------
#
# 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 ###
set pager=1
if [ -f ${config_directory}/grubenv ]; then
load_env -f ${config_directory}/grubenv
elif [ -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
if [ x$feature_timeout_style = xy ] ; then
set timeout_style=menu
set timeout=5
# Fallback normal timeout code in case the timeout_style feature is
# unavailable.
else
set timeout=5
fi
### END /etc/grub.d/00_header ###
### BEGIN /etc/grub.d/01_fallback_counting ###
insmod increment
# Check if boot_counter exists and boot_success=0 to activate this behaviour.
if [ -n "${boot_counter}" -a "${boot_success}" = "0" ]; then
# if countdown has ended, choose to boot rollback deployment (default=1 on
# OSTree-based systems)
if [ "${boot_counter}" = "0" -o "${boot_counter}" = "-1" ]; then
set default=1
set boot_counter=-1
# otherwise decrement boot_counter
else
decrement boot_counter
fi
save_env boot_counter
fi
### END /etc/grub.d/01_fallback_counting ###
### BEGIN /etc/grub.d/01_menu_auto_hide ###
if [ "${boot_success}" = "1" -o "${boot_indeterminate}" = "1" ]; then
set last_boot_ok=1
else
set last_boot_ok=0
fi
# Reset boot_indeterminate after a successful boot
if [ "${boot_success}" = "1" ] ; then
set boot_indeterminate=0
# Avoid boot_indeterminate causing the menu to be hidden more then once
elif [ "${boot_indeterminate}" = "1" ]; then
set boot_indeterminate=2
fi
set boot_success=0
save_env boot_success boot_indeterminate
if [ x$feature_timeout_style = xy ] ; then
if [ "${menu_show_once}" ]; then
unset menu_show_once
save_env menu_show_once
set timeout_style=menu
set timeout=60
elif [ "${menu_auto_hide}" -a "${last_boot_ok}" = "1" ]; then
set orig_timeout_style=${timeout_style}
set orig_timeout=${timeout}
if [ "${fastboot}" = "1" ]; then
# timeout_style=menu + timeout=0 avoids the countdown code keypress check
set timeout_style=menu
set timeout=0
else
set timeout_style=hidden
set timeout=1
fi
fi
fi
### END /etc/grub.d/01_menu_auto_hide ###
### BEGIN /etc/grub.d/01_users ###
if [ -f ${prefix}/user.cfg ]; then
source ${prefix}/user.cfg
if [ -n "${GRUB2_PASSWORD}" ]; then
set superusers="root"
export superusers
password_pbkdf2 root ${GRUB2_PASSWORD}
fi
fi
### END /etc/grub.d/01_users ###
### BEGIN /etc/grub.d/10_linux ###
insmod part_gpt
insmod ext2
set root='hd0,gpt8'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt8 --hint-efi=hd0,gpt8 --hint-baremetal=ahci0,gpt8 --hint='hd0,gpt8' eb0a0327-7ec2-4412-8c20-9d9d386ebc65
else
search --no-floppy --fs-uuid --set=root eb0a0327-7ec2-4412-8c20-9d9d386ebc65
fi
insmod part_gpt
insmod ext2
set boot='hd0,gpt8'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=boot --hint-bios=hd0,gpt8 --hint-efi=hd0,gpt8 --hint-baremetal=ahci0,gpt8 --hint='hd0,gpt8' eb0a0327-7ec2-4412-8c20-9d9d386ebc65
else
search --no-floppy --fs-uuid --set=boot eb0a0327-7ec2-4412-8c20-9d9d386ebc65
fi
# This section was generated by a script. Do not modify the generated file - all changes
# will be lost the next time file is regenerated. Instead edit the BootLoaderSpec files.
#
# The blscfg command parses the BootLoaderSpec files stored in /boot/loader/entries and
# populates the boot menu. Please refer to the Boot Loader Specification documentation
# for the files format: https://www.freedesktop.org/wiki/Spe...ootLoaderSpec/.
set default_kernelopts="root=/dev/mapper/fedora_localhost--live-root ro resume=/dev/mapper/fedora_localhost--live-swap rd.lvm.lv=fedora_localhost-live/root rd.luks.uuid=luks-b18f0c65-a00d-4d50-9579-35c46d033f86 rd.lvm.lv=fedora_localhost-live/swap rhgb quiet "
insmod blscfg
blscfg
if [ -s $prefix/grubenv ]; then
load_env
fi
### 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 8 (on /dev/sda2)' --class windows --class os $menuentry_id_option 'osprober-chain-6C33-49E9' {
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 --hint='hd0,gpt2' 6C33-49E9
else
search --no-floppy --fs-uuid --set=root 6C33-49E9
fi
drivemap -s (hd0) ${root}
chainloader +1
}
menuentry 'Windows 8 (on /dev/sda4)' --class windows --class os $menuentry_id_option 'osprober-chain-C8764A65764A53FA' {
insmod part_gpt
insmod ntfs
set root='hd0,gpt4'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt4 --hint-efi=hd0,gpt4 --hint-baremetal=ahci0,gpt4 --hint='hd0,gpt4' C8764A65764A53FA
else
search --no-floppy --fs-uuid --set=root C8764A65764A53FA
fi
drivemap -s (hd0) ${root}
chainloader +1
}
menuentry 'Windows Recovery Environment (on /dev/sda6)' --class windows --class os $menuentry_id_option 'osprober-chain-32EEFEDAEEFE94F7' {
insmod part_gpt
insmod ntfs
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 --hint='hd0,gpt6' 32EEFEDAEEFE94F7
else
search --no-floppy --fs-uuid --set=root 32EEFEDAEEFE94F7
fi
drivemap -s (hd0) ${root}
chainloader +1
}
# Other OS found, undo autohiding of menu unless menu_auto_hide=2
if [ "${orig_timeout_style}" -a "${menu_auto_hide}" != "2" ]; then
set timeout_style=${orig_timeout_style}
set timeout=${orig_timeout}
fi
### 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 ###
--------------------------------------------------------------------------------
=================== sda8: Location of files loaded by Grub: ====================
============== sda8: Version of COM32(R) files used by Syslinux: ===============
extlinux/cat.c32 : not a COM32/COM32R module
extlinux/chain.c32 : not a COM32/COM32R module
extlinux/cmd.c32 : not a COM32/COM32R module
extlinux/cmenu.c32 : not a COM32/COM32R module
extlinux/config.c32 : not a COM32/COM32R module
extlinux/cptime.c32 : not a COM32/COM32R module
extlinux/cpu.c32 : not a COM32/COM32R module
extlinux/cpuid.c32 : not a COM32/COM32R module
extlinux/cpuidtest.c32 : not a COM32/COM32R module
extlinux/debug.c32 : not a COM32/COM32R module
extlinux/dhcp.c32 : not a COM32/COM32R module
extlinux/dir.c32 : not a COM32/COM32R module
extlinux/disk.c32 : not a COM32/COM32R module
extlinux/dmi.c32 : not a COM32/COM32R module
extlinux/dmitest.c32 : not a COM32/COM32R module
extlinux/elf.c32 : not a COM32/COM32R module
extlinux/ethersel.c32 : not a COM32/COM32R module
extlinux/gfxboot.c32 : not a COM32/COM32R module
extlinux/gpxecmd.c32 : not a COM32/COM32R module
extlinux/hdt.c32 : not a COM32/COM32R module
extlinux/hexdump.c32 : not a COM32/COM32R module
extlinux/host.c32 : not a COM32/COM32R module
extlinux/ifcpu64.c32 : not a COM32/COM32R module
extlinux/ifcpu.c32 : not a COM32/COM32R module
extlinux/ifmemdsk.c32 : not a COM32/COM32R module
extlinux/ifplop.c32 : not a COM32/COM32R module
extlinux/kbdmap.c32 : not a COM32/COM32R module
extlinux/kontron_wdt.c32 : not a COM32/COM32R module
extlinux/ldlinux.c32 : not a COM32/COM32R module
extlinux/lfs.c32 : not a COM32/COM32R module
extlinux/libcom32.c32 : not a COM32/COM32R module
extlinux/libgpl.c32 : not a COM32/COM32R module
extlinux/liblua.c32 : not a COM32/COM32R module
extlinux/libmenu.c32 : not a COM32/COM32R module
extlinux/libutil.c32 : not a COM32/COM32R module
extlinux/linux.c32 : not a COM32/COM32R module
extlinux/ls.c32 : not a COM32/COM32R module
extlinux/lua.c32 : not a COM32/COM32R module
extlinux/mboot.c32 : not a COM32/COM32R module
extlinux/meminfo.c32 : not a COM32/COM32R module
extlinux/menu.c32 : not a COM32/COM32R module
extlinux/pci.c32 : not a COM32/COM32R module
extlinux/pcitest.c32 : not a COM32/COM32R module
extlinux/pmload.c32 : not a COM32/COM32R module
extlinux/poweroff.c32 : not a COM32/COM32R module
extlinux/prdhcp.c32 : not a COM32/COM32R module
extlinux/pwd.c32 : not a COM32/COM32R module
extlinux/pxechn.c32 : not a COM32/COM32R module
extlinux/reboot.c32 : not a COM32/COM32R module
extlinux/rosh.c32 : not a COM32/COM32R module
extlinux/sanboot.c32 : not a COM32/COM32R module
extlinux/sdi.c32 : not a COM32/COM32R module
extlinux/sysdump.c32 : not a COM32/COM32R module
extlinux/syslinux.c32 : not a COM32/COM32R module
extlinux/vesa.c32 : not a COM32/COM32R module
extlinux/vesainfo.c32 : not a COM32/COM32R module
extlinux/vesamenu.c32 : not a COM32/COM32R module
extlinux/vpdtest.c32 : not a COM32/COM32R module
extlinux/whichsys.c32 : not a COM32/COM32R module
extlinux/zzjson.c32 : not a COM32/COM32R module
You have a Legacy/CSM install in addition to an EFI install which you can see at the top of the bootinfoscript report where it states that Grub is installed in the MBR and there is a BIOS Boot partition (sda7). You will be able to boot a Linux system on a GPT drive this way but not windows. Windows needs to be UEFI on a GPT disk. You also have an EFI paartition (sda2) which appears to have the correct EFI files for both Fedora and windows.
To boot a windows EFI system, you need Grub pointing to the correct file on the EFI partition which should be: chainloader /efi/Microsoft/Boot/bootmgfw.efi
I don't think the entries you currently have for windows will boot an EFI system. Disable Legacy/CSM in the BIOS so you boot UEFI and boot Fedora and run the following command as root to update Grub:
Code:
grub2-mkconfig -o /boot/grub2/grub.cfg
Watch the output for a windows entry and report specific results if it fails to boot windows on reboot. The link below gives details on Grub2 for Fedora.
It fails to boot and says "Hardsisk (3FO) . Boot device not found" when I disable legacy.
That would indicate that you are booting in Legacy mode and your windows install is EFI/GPT and the menuentries in grub.cfg won't boot windows. Not sure what happened but it appears you previously had an EFI install of Fedora 25/windows and when you installed Fedora 30 you did a Legacy install. Don't know any other reason you would have a BIOS boot partition and Grub in the MBR. You might try re-installing Fedora 30 and make sure you do an EFI install. I've not used Fedora for years so don't have any additional suggestions.
That would indicate that you are booting in Legacy mode and your windows install is EFI/GPT and the menuentries in grub.cfg won't boot windows. Not sure what happened but it appears you previously had an EFI install of Fedora 25/windows and when you installed Fedora 30 you did a Legacy install. Don't know any other reason you would have a BIOS boot partition and Grub in the MBR. You might try re-installing Fedora 30 and make sure you do an EFI install. I've not used Fedora for years so don't have any additional suggestions.
That sounds possible. Back when I first installed Fedora, in 2013, I had trouble with UEFI/Legacy, to get Windows and Fedora both booting, and had to fiddle around to make it work. I never re-installed Windows 8, which came with the machine, because I never got a disk for it and because I am always afraid that Windows will trash everything else on the hard drive.
I thought I had lost Windows until some kind of recovery thing (can't remember a tiny bit about it's nature or operating system) got Windows and Fedora both working.
Perhaps stopping legacy mode and running Fedora 30 recovery disk will sort everything out? But, if that would work, why has my laptop been in legacy mode all these years?
But, if that would work, why has my laptop been in legacy mode all these years?
If you mean having Legacy mode enabled in the BIOS, that won't prevent booting or installing UEFI. With Legacy enabled, an EFI install will generally take precedence over Legacy. Example, with a computer with EFI installs on an internal drive and a Legacy install on an external, you can have Legacy enabled in the BIOS and have the machine set to boot the internal EFI insstall(s). In a case like this it would be possible to then boot the Legacy install from Boot Options in the BIOS.
It will never boot up. There are two listed Windows partitions to boot, one is correctly the boot partition, the other is the windows data partition. There is also a recovery partition.
All of them say they there is a problem with \boot\BCD
It is EXACTLY the problem detailed here, except I can't get to the command prompt or recovery or any kind of boot in Windows:
I never used Win8, but a lot of what is being discussed here doesn't make a lot of sense.
Quote:
Originally Posted by Chortle Buffer
I am downloading Windows 8.1 now. Nothing to do unless that is downloaded, I guess.
What happened with this download ?. Have you booted it - did it offer a recovery option ?. I would get Win8 fixed if you feel you still need it - the recovery/re-install of Linux is much more flexible, and can be done later.
IMHO everybody should use UEFI always when available - especially for something like F30.
Last edited by syg00; 09-19-2019 at 08:26 PM.
Reason: IMHO ...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.