LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook
User Name
Password
Linux - Laptop and Netbook Having 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


Reply
  Search this Thread
Old 03-08-2017, 11:40 AM   #1
loftus49
Member
 
Registered: May 2010
Location: Phoenix
Distribution: Ubuntu, CentOS5, Fedora, Mint, MX Linux
Posts: 178
Blog Entries: 1

Rep: Reputation: 20
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?
 
Old 03-08-2017, 03:06 PM   #2
Rickkkk
Senior Member
 
Registered: Dec 2014
Location: Montreal, Quebec and Dartmouth, Nova Scotia CANADA
Distribution: Arch, AntiX, ArtiX
Posts: 1,364

Rep: Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511
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.

Please feel free to ask if more info is required.
 
  


Reply

Tags
dual boot, grub 2, hp laptop, uefi



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
error : Premature end of script headers gszabo Linux - Server 2 09-30-2015 01:04 AM
Premature end of script Headers error in openwebmail silverstag Linux - Server 4 07-04-2012 04:35 AM
Internal server error (Premature end of cgi script) cbtshare Linux - Server 16 02-07-2011 03:17 PM
Error - Premature end of script headers for C CGI Files pramod.srk Linux - Newbie 9 05-14-2009 07:38 AM
Premature End of Script Headers (Error 500) bsdb3 Red Hat 5 05-06-2004 11:55 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook

All times are GMT -5. The time now is 02:30 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration