Score:0

Execution of grub-install/dev/sda failed. Now I can't boot either Windows 10 or Ubuntu

ro flag

I tried installing Ubuntu 22.04.1 on my PC which already had Windows 10 installed. I created a 30GB or so partition to install Ubuntu using logical partitions: one for the root, mounting in /, one for the /boot, a swap area and a EFI dedicated partition (I think the problem is in this one?)

After the installation an error popped up: "Execution of grub-install/dav/sda failed. This is a fatal error".

I then restarted the PC and what happens is that it automatically opens the BIOS. So I can't use either Ubuntu or Windows (I use my only hard disk as the first boot device)

Is there a way to fix this? My priority now is to rescue at least windows. I know all the data is still there: I can see it with gparted on Ubuntu (using it with "try Ubuntu" from the USB).

David avatar
cn flag
Was Windows not already installed in EFI mode? BTW your 30 gig is not enough. Root needs at least 40 gig itself. You do not need a swap partition now a days you use a swap file.
Filippo avatar
ro flag
>Was Windows not already installed in EFI mode? How do I check this? Sorry for my ignorance
Filippo avatar
ro flag
I followed this tutorial: https://www.youtube.com/watch?v=fleF4qDtwDE and it worked. Now Ubuntu boots just fine. I just have to fix the fact that Windows 10 doesn't show up in the boot menu.
David avatar
cn flag
Have you tried grub the following command in a terminal? sudo update-grub ?
Filippo avatar
ro flag
It worked! Thank you so much.
David avatar
cn flag
I will make it an answer so you can accept it. Done.
Score:1
cn flag

When you have a dual boot setup you may at some time find yourself with not all the OS s being in the Grub menu.

This is actually a quite easy fix.

Open a terminal.

Type the following command and press enter.

sudo update-grub

You will be prompted for your password, enter it.

Reboot and you will see that the Grub menu now has both OS s to choose from.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.