0

Please this is not a duplicate of anything as I have tried most other things and still can't figure this out.

grub Windows 10 menu entry is wrong and boots to windows recovery instead of going to windows desktop.

Laptop: ASUS ROG G551VW with UEFI GPT partitioning and factory installed windows 10 64bit. XUbuntu 16.04 installed secondary on sda5.

I need help editing grub and correct the windows 10 grub entry.

Currently Windows 10 is booted from Bios boot manager, not grub. XUbuntu 16.04 boots just fine.

If there is a way to create new /etc/default/grub which will have all important information needed?

grub windows 10 not working entry

Current partition table

OBS!: Please don't refer to boot-repair as it does not work with 16.xx. When running it, it will give you commands to paste into terminal and these commands are deprecated so they will fail, then boot-repair can't continue and you can only chose discard which will remove grub totally from the system and delete most files needed to repair or re-install grub - it's a nightmare I had to deal with yesterday - trying to manually re-install grub running from live media fails because boot-repair removed the needed files including grub-install, grub-common, grub-pc, /etc/default/grub /boot/grub/grub.cfg, 40_custom and so on. Supergrub2 disc saved me and re-installed grub but only partially - /etc/default/grub /boot/grub/grub.cfg, 40_custom is still missing. So I got /etc/default/grub /boot/grub/grub.cfg from my own pc and it seem to be the same. Point being, don't use boot-repair with 16.xx.

EDIT: As stated already this is not a duplicate, windows were pre-installed from factory and Xubuntu installed secondary - so please read before making sugesstions! Also boot-repair removed vital grub files and programs(explained in comment further down), so various commands no longer works - neither do grub customizer. So what I need is to get those files and progs re-installed without breaking the system further, as I now have grub back with grub.cfg and /etc/default/grub - but still wrong win10 entry and missing grub-install, grub-common, grub-pc, grub-update, 40_custom

I have a sample win10 entry, just need to know which file to add it - and then I will modify it to fit this laptop with uuid and gpt.

The laptop is not mine, it belong to a friend who need it for work in newspaper office so I can't always get to it. As stated before, windows 10 boots from bios option and this works until a grub solution has been found. Xubuntu boot just fine from grub.

  • 2
    you have to tell us exactly what you have tried and exactly how it failed, otherwise, how will we know not to suggest those conventional fixes again? – Zanna Apr 9 '17 at 6:50
  • Actually I did tell you exactly what I like to do: Edit grub to get windows 10 to boot from grub and not going to recovery + create new /etc/default/grub which will have all important information needed. If i start with all i have tried then this is going to be a very long thread. Right now Windows can boot from bios boot manager and ubuntu from grub. links to screenshot of non working grub entry has been suplied. – insomniacno1 Apr 9 '17 at 8:57
  • Zanna, I'm sorry to say this but you seem to be an endless record! I told you already what I like to do, please stop asking what what I did as that is not relevant. – insomniacno1 Apr 9 '17 at 9:23
  • 1
    Well, you need to tell us everything you've tried here on the site, otherwise some idiot is going to press the Close this as a duplicate button because there is an absolute lack of evidence that it's not a duplicate! – Fabby Apr 11 '17 at 23:23
  • Why do you have Debian's GRUB? Or is that not your photo? – Zanna Apr 12 '17 at 5:07
1

According to your description. I can​ give you a suggestion to install rEFInd bootloader. I also had a similar incident when my GRUB crashed but boot-repair did the job. Please visit the attached link.Hope this works with you

  • Did you use ubuntu 16.04 with boot-repair? If not then that answer is not relevant - boot-repair does not work on 16.04! Im sorry to be harsh, but i have read through about 50+ answers on how to edit grub2 to include Windows 10 and none of them worked for me. I'm not interested in installing another bootloader, only in getting grub2 working! – insomniacno1 Apr 9 '17 at 9:02
  • 4
    Yes 16.04.2 with boot-repair and it restored grub properly – Pranal Narayan Apr 9 '17 at 9:05
  • One more thing there is a sub-menu in GRUB named Advanced options for ubuntu. Check whether Windows boot manager is present here. If so then you can edit the menu using GRUB customizer – Pranal Narayan Apr 9 '17 at 9:07
  • So when using boot-repair and you paste the lines into terminal to purge grub and install grub again - didn't you get a message about --force-yes were depreceated and to use --allow- option instead? Except the only --allow- option I seem to be able to find is --allow-unauthenticated which is not working for this. This is why i say boot-repair is not working with 16.04 – insomniacno1 Apr 9 '17 at 9:27
  • GRUB customizer is not working because of missing /etc/default/grub and 40_custom and DEVICE MAP FILE and grub-install - that boot-repair removed - it comes up with an error saying to contact developer of GRUB customizer. – insomniacno1 Apr 9 '17 at 12:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.