Grub error: premature end .. HP Laptop Ubuntu/Win10
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.
Grub error: premature end .. HP Laptop Ubuntu/Win10
In the Grub menu, Ubuntu boots ok but the Win10 selection receives the following error: Premature end of file /EFI/Microsoft/Boot/bootmgfw.efi
Grub works fine on several other of my dual boot machines - but the HP Laptop is UEFI rather than BIOS. The directory of:
/boot/efi/EFI/Microsoft/Boot/ has both the bootmgfw.efi AND the grubx64.efi files in it. I've tried removing the bootmgfw.efi file (backed up to a level down) but that doesn't work either.
Is there a way to edit the grub file so it does not find a "premature end" with the bootmgfw.efi file - or is there a better way?
Location: Montreal, Quebec and Dartmouth, Nova Scotia CANADA
Distribution: Arch, AntiX, ArtiX
Posts: 1,364
Rep:
Hey loftus49 - it sounds more like there is an integrity problem with the file instead of the file's actual presence or the GRUB configuration being the problem. The bootmgfw.efi file is the "stub" that your boot manager is looking to use to boot Windows - the error message seems to indicate some kind of corruption.
If this is the case, it is likely to be the type of problem requiring you to boot into your Windows installation media or recovery partition. There are tools there to troubleshoot and repair Windows booting problems. Successful repair using such methods will almost certainly result in your computer booting straight into Windows, not GRUB.
Thereafter, if you wish to restore dual-boot functionality, I have had much success with the Boot-Repair utility, available as a live ISO.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.