I am trying to install Ubuntu from past 3 days and constantly getting the above mentioned error. I have windows 10 with UEFI and want to dual boot it with windows using Ubuntu image in USB. For the first time it installed properly but efibootmgr was not able to detect Ubuntu so I was not able to change boot preference. So I deleted the partition and again created the partition and booted into Ubuntu. Since then I'm getting that error. Please help me.


You have to install grub into /dev/sda2 as it is the ESP where bootloder belong in UEFI boot.

Why? on preinstalled windows 10 there is following partion created befor installing linux for the firtst time:

  • 300 MiB restore
  • 100 MiB ESP (needs the mount point /boot/EFI in the system later)
  • most of the disk windows C
  • optional windows D for data, videos programs, document stiff like that

so to install grub rigt you have to install it on sda2.

sudo grub-install [options] /dev/sda2

see grub-install --help for details for options. Also man 8 grub for more details on grub or the grub Manual online here.

  • This machine came with windows 8 and I have upgraded it to 10. @kupferdrache – lord_ozb Jul 2 '16 at 10:53
  • Can you please tell me the process? – lord_ozb Jul 2 '16 at 10:53
  • Which point do you need intructions for? – Kupferdrache Jul 2 '16 at 10:54
  • How do I get the installing path for grub to sda2? According to gparted the 50 gb partition that i have created is sda4. – lord_ozb Jul 2 '16 at 10:59
  • I edit the answer this may take while to get approved. here a preview: issue grub-install --helpto see the documenation. – Kupferdrache Jul 2 '16 at 11:13

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.