Re: (fedora) Re: Fedora and Windows fighting for the bootsector
Chris Murphy wrote on 16-DEC-2014 21:49:23.97 >On Tue, Dec 16, 2014 at 12:07 PM, Jouk Jansen > wrote: > >> BootCurrent: 0005 >> Timeout: 0 seconds >> Bootorder: 0005,0003,,0001,0002 >> Boot* Fedora >> Boot0001* UEFI: IP4 Realtek PCIe FE Family Controller >> Boot0002* UEFI: IP6 Realtek PCIe FE Family Controller >> Boot0003* Windows Boot Manager >> Boot0005* grub > >It's UEFI, and you have two GRUBs now, the Fedora prebaked one as part >of the grub2-efi package, which is the Boot Fedora entry and is >found in /boot/efi/EFI/fedora, and the grub2-install one which is the >Boot0005 grub entry and is found in /boot/efi/EFI/grub. They also have >different grub.cfgs; the Fedora one goes in /boot/efi/EFI/fedora and >the grub one goes in /boot/grub2. Thanks for the explenation. This is my first UEFI machine, so it is easy to make mistakes. >Please do this first and post all results: >$ parted /dev/sda u s p >$ efibootmgr -v >$ tree /boot/efi >$ os-prober > >And then to fix the NVRAM extra grub entry and reset the boot order >and make a new grub.cfg: > >$ efibootmgr -b 0005 -B >$ efibootmgr -o ,0003,0001,0002 >$ grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg > >Optional: > ?$ rm -rf boot/efi/EFI/grub I'm away from the laptop now. I will try in the next couple of days. But this looks like the right thing to do. I will let you now if it is succesful. >If you can put the new grub.cfg somewhere to download that'd be >useful, I'd like to confirm it finds \efi\microsoft\boot\bootmgfw.efi >and has the entry correct. > >> Error message: >> >> error: file `EFI/Microsoft/Boot/bootmgfw.efi' not found >> error: you need to load the kernel first. >> >> Press any key to continue... > >OK this is a GRUB error message, not a Windows boot loader error >message. GRUB can't find the Windows EFI OS Loader for some reason, so >hopefully things will either be fixed or enlightened after I see the >tree output and the new grub.cfg. I hope the change in boot-order as decribed above, will solve the problem. Thanks Jouk Jansen Pax, vel iniusta, utilior est quam iustissimum bellum. (free after Marcus Tullius Cicero (106 b.Chr.-46 b.Chr.) Epistularum ad Atticum 7.1.4.3) Touch not the cat bot a glove >--< Jouk Jansen jo...@hrem.nano.tudelft.nl Technische Universiteit Delfttt uu uu ddd Kavli Institute of Nanoscience tt uu uu dddd Nationaal centrum voor HREM tt uu uu dd dd Lorentzweg 1 tt uu uu dd dd 2628 CJ Delfttt uu uu dd dd Nederlandtt uu uu dddd tel. 31-15-2782272 tt uuu ddd >--< -- users mailing list users@lists.fedoraproject.org To unsubscribe or change subscription options: https://admin.fedoraproject.org/mailman/listinfo/users Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines Have a question? Ask away: http://ask.fedoraproject.org
Re: (fedora) Re: Fedora and Windows fighting for the bootsector
On 12/16/2014 07:53 PM, Jouk Jansen wrote: Ralf wrote on 16-DEC-2014 19:16:02.04 On 12/16/2014 06:54 PM, Jouk Jansen wrote: Hi all, I have a Toshiba (Satelite C50-B-14C). Window 8 was preinstalled. I turned it into a dual boot by shrinking the Windows partition and installing F20. All was fine until I installed some Windows-updates the other day. The machine then only booted windows. On my GPT/UEFI Win + F21 system, the last round of Win patches had modified the boot order of the UEFI boot devices. The solution had been to enter the BIOS and move Fedora up in the UEFI-Boot order setup. This is a laptop with one device and F20 and Windows on 2 partitions. So I have no idea how to change the boot-order. How to enter the BIOS largely varies between models and manufactures. Mine is a Lenovo Flex 2. To enter the BIOS, you have to press the "Novo button", then you'll find an entry in its BIOS to change the boot order. Ralf -- users mailing list users@lists.fedoraproject.org To unsubscribe or change subscription options: https://admin.fedoraproject.org/mailman/listinfo/users Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines Have a question? Ask away: http://ask.fedoraproject.org
Re: (fedora) Re: Fedora and Windows fighting for the bootsector
On Tue, Dec 16, 2014 at 1:38 PM, Chris Murphy wrote: > Optional: > > $ rm -rf boot/efi/EFI/grub DOH! rm -rf /boot/efi/EFI/grub That leading / should be there or it will fail. -- Chris Murphy -- users mailing list users@lists.fedoraproject.org To unsubscribe or change subscription options: https://admin.fedoraproject.org/mailman/listinfo/users Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines Have a question? Ask away: http://ask.fedoraproject.org
Re: (fedora) Re: Fedora and Windows fighting for the bootsector
On Tue, Dec 16, 2014 at 12:07 PM, Jouk Jansen wrote: > BootCurrent: 0005 > Timeout: 0 seconds > Bootorder: 0005,0003,,0001,0002 > Boot* Fedora > Boot0001* UEFI: IP4 Realtek PCIe FE Family Controller > Boot0002* UEFI: IP6 Realtek PCIe FE Family Controller > Boot0003* Windows Boot Manager > Boot0005* grub It's UEFI, and you have two GRUBs now, the Fedora prebaked one as part of the grub2-efi package, which is the Boot Fedora entry and is found in /boot/efi/EFI/fedora, and the grub2-install one which is the Boot0005 grub entry and is found in /boot/efi/EFI/grub. They also have different grub.cfgs; the Fedora one goes in /boot/efi/EFI/fedora and the grub one goes in /boot/grub2. Please do this first and post all results: $ parted /dev/sda u s p $ efibootmgr -v $ tree /boot/efi $ os-prober And then to fix the NVRAM extra grub entry and reset the boot order and make a new grub.cfg: $ efibootmgr -b 0005 -B $ efibootmgr -o ,0003,0001,0002 $ grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg Optional: $ rm -rf boot/efi/EFI/grub If you can put the new grub.cfg somewhere to download that'd be useful, I'd like to confirm it finds \efi\microsoft\boot\bootmgfw.efi and has the entry correct. > Error message: > > error: file `EFI/Microsoft/Boot/bootmgfw.efi' not found > error: you need to load the kernel first. > > Press any key to continue... OK this is a GRUB error message, not a Windows boot loader error message. GRUB can't find the Windows EFI OS Loader for some reason, so hopefully things will either be fixed or enlightened after I see the tree output and the new grub.cfg. -- Chris Murphy -- users mailing list users@lists.fedoraproject.org To unsubscribe or change subscription options: https://admin.fedoraproject.org/mailman/listinfo/users Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines Have a question? Ask away: http://ask.fedoraproject.org
Re: (fedora) Re: Fedora and Windows fighting for the bootsector
Chris Murphy wrote on 16-DEC-2014 19:53:19.22 16-DEC-2014 19:53:19.22 >On Tue, Dec 16, 2014 at 10:54 AM, Jouk Jansen > wrote: >> Hi all, >> >> I have a Toshiba (Satelite C50-B-14C). Window 8 was preinstalled. I turned >> it into a dual boot by shrinking the Windows partition and installing F20. >> All was fine until I installed some Windows-updates the other day. The >> machine then only booted windows. I made Fedora boot again by >> grub2-install/grub2-mkconfig. However now when you select windows in the >> grub menu it will not start because it lost its boot-block. >> I'm not eager to try windows writing its bootsector again, because I'm >> afraid I will loose grub2 again. >> Does anyone know this problem? and how to solve it. > >Can you boot Fedora and run > >$ efibootmgr > >and post the results? I can't tell if this computer has BIOS or UEFI >firmware. I thought all Windows 8 pre-installed hardware are UEFI. BootCurrent: 0005 Timeout: 0 seconds Bootorder: 0005,0003,,0001,0002 Boot* Fedora Boot0001* UEFI: IP4 Realtek PCIe FE Family Controller Boot0002* UEFI: IP6 Realtek PCIe FE Family Controller Boot0003* Windows Boot Manager Boot0005* grub So I think it is an UEFI. > >Also, what do you mean by "will not start because it lost its boot >block" - what's the actual error message? If you can take a cell phone >photo and post that somewhere it might be useful to determine if this >is a Windows bootloader error or GRUB error. Error message: error: file `EFI/Microsoft/Boot/bootmgfw.efi' not found error: you need to load the kernel first. Press any key to continue... > >On BIOS computers, grub-install only replaces the first 440 bytes of >bootloader code on the 1st sector, none of the other Windows >bootloader stages are touched. > >OnUEFI computers, the bootloaders co-exist on the EFI System partition >in different directories. There's no longer such a thing as boot >blocks or boot sectors. And grub2-install should be avoided. Any idea how to proceed? Regards Jouk Pax, vel iniusta, utilior est quam iustissimum bellum. (free after Marcus Tullius Cicero (106 b.Chr.-46 b.Chr.) Epistularum ad Atticum 7.1.4.3) Touch not the cat bot a glove >--< Jouk Jansen jo...@hrem.nano.tudelft.nl Technische Universiteit Delfttt uu uu ddd Kavli Institute of Nanoscience tt uu uu dddd Nationaal centrum voor HREM tt uu uu dd dd Lorentzweg 1 tt uu uu dd dd 2628 CJ Delfttt uu uu dd dd Nederlandtt uu uu dddd tel. 31-15-2782272 tt uuu ddd >--< -- users mailing list users@lists.fedoraproject.org To unsubscribe or change subscription options: https://admin.fedoraproject.org/mailman/listinfo/users Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines Have a question? Ask away: http://ask.fedoraproject.org
Re: (fedora) Re: Fedora and Windows fighting for the bootsector
Ralf wrote on 16-DEC-2014 19:16:02.04 >On 12/16/2014 06:54 PM, Jouk Jansen wrote: >> Hi all, >> >> I have a Toshiba (Satelite C50-B-14C). Window 8 was preinstalled. I turned >> it into a dual boot by shrinking the Windows partition and installing F20. >> All was fine until I installed some Windows-updates the other day. The >> machine then only booted windows. > >On my GPT/UEFI Win + F21 system, the last round of Win patches had >modified the boot order of the UEFI boot devices. > >The solution had been to enter the BIOS and move Fedora up in the >UEFI-Boot order setup. This is a laptop with one device and F20 and Windows on 2 partitions. So I have no idea how to change the boot-order. Regards Jouk Pax, vel iniusta, utilior est quam iustissimum bellum. (free after Marcus Tullius Cicero (106 b.Chr.-46 b.Chr.) Epistularum ad Atticum 7.1.4.3) Touch not the cat bot a glove >--< Jouk Jansen jo...@hrem.nano.tudelft.nl Technische Universiteit Delfttt uu uu ddd Kavli Institute of Nanoscience tt uu uu dddd Nationaal centrum voor HREM tt uu uu dd dd Lorentzweg 1 tt uu uu dd dd 2628 CJ Delfttt uu uu dd dd Nederlandtt uu uu dddd tel. 31-15-2782272 tt uuu ddd >--< -- users mailing list users@lists.fedoraproject.org To unsubscribe or change subscription options: https://admin.fedoraproject.org/mailman/listinfo/users Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines Have a question? Ask away: http://ask.fedoraproject.org
Re: Fedora and Windows fighting for the bootsector
On Tue, Dec 16, 2014 at 10:54 AM, Jouk Jansen wrote: > Hi all, > > I have a Toshiba (Satelite C50-B-14C). Window 8 was preinstalled. I turned > it into a dual boot by shrinking the Windows partition and installing F20. > All was fine until I installed some Windows-updates the other day. The > machine then only booted windows. I made Fedora boot again by > grub2-install/grub2-mkconfig. However now when you select windows in the > grub menu it will not start because it lost its boot-block. > I'm not eager to try windows writing its bootsector again, because I'm > afraid I will loose grub2 again. > Does anyone know this problem? and how to solve it. Can you boot Fedora and run $ efibootmgr and post the results? I can't tell if this computer has BIOS or UEFI firmware. I thought all Windows 8 pre-installed hardware are UEFI. Also, what do you mean by "will not start because it lost its boot block" - what's the actual error message? If you can take a cell phone photo and post that somewhere it might be useful to determine if this is a Windows bootloader error or GRUB error. On BIOS computers, grub-install only replaces the first 440 bytes of bootloader code on the 1st sector, none of the other Windows bootloader stages are touched. OnUEFI computers, the bootloaders co-exist on the EFI System partition in different directories. There's no longer such a thing as boot blocks or boot sectors. And grub2-install should be avoided. -- Chris Murphy -- users mailing list users@lists.fedoraproject.org To unsubscribe or change subscription options: https://admin.fedoraproject.org/mailman/listinfo/users Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines Have a question? Ask away: http://ask.fedoraproject.org
Re: Fedora and Windows fighting for the bootsector
On 12/16/2014 06:54 PM, Jouk Jansen wrote: Hi all, I have a Toshiba (Satelite C50-B-14C). Window 8 was preinstalled. I turned it into a dual boot by shrinking the Windows partition and installing F20. All was fine until I installed some Windows-updates the other day. The machine then only booted windows. On my GPT/UEFI Win + F21 system, the last round of Win patches had modified the boot order of the UEFI boot devices. The solution had been to enter the BIOS and move Fedora up in the UEFI-Boot order setup. Ralf -- users mailing list users@lists.fedoraproject.org To unsubscribe or change subscription options: https://admin.fedoraproject.org/mailman/listinfo/users Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines Have a question? Ask away: http://ask.fedoraproject.org
Fedora and Windows fighting for the bootsector
Hi all, I have a Toshiba (Satelite C50-B-14C). Window 8 was preinstalled. I turned it into a dual boot by shrinking the Windows partition and installing F20. All was fine until I installed some Windows-updates the other day. The machine then only booted windows. I made Fedora boot again by grub2-install/grub2-mkconfig. However now when you select windows in the grub menu it will not start because it lost its boot-block. I'm not eager to try windows writing its bootsector again, because I'm afraid I will loose grub2 again. Does anyone know this problem? and how to solve it. Regards Jouk Pax, vel iniusta, utilior est quam iustissimum bellum. (free after Marcus Tullius Cicero (106 b.Chr.-46 b.Chr.) Epistularum ad Atticum 7.1.4.3) Touch not the cat bot a glove >--< Jouk Jansen jo...@hrem.nano.tudelft.nl Technische Universiteit Delfttt uu uu ddd Kavli Institute of Nanoscience tt uu uu dddd Nationaal centrum voor HREM tt uu uu dd dd Lorentzweg 1 tt uu uu dd dd 2628 CJ Delfttt uu uu dd dd Nederlandtt uu uu dddd tel. 31-15-2782272 tt uuu ddd >--< -- users mailing list users@lists.fedoraproject.org To unsubscribe or change subscription options: https://admin.fedoraproject.org/mailman/listinfo/users Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines Have a question? Ask away: http://ask.fedoraproject.org