5

My laptop was running the latest Ubuntu, because of a minor issue, the motherboard was replaced. The new motherboard has the same specifications as old. But after replacing, the OS is not detected.

  • Is there some setting in BIOS which can fix the issue or should I really re-install Ubuntu?
  • If I re-install Ubuntu, will I lose the data?

Help appreciated.

enter image description here

Pilot6
  • 92,169
Reva
  • 53

2 Answers2

4

The path to Ubuntu efi loader should be added to your motherboard UEFI.

Boot from Ubuntu LiveUSB and run in terminal:

sudo efibootmgr -c -l "\EFI\UBUNTU\SHIMX64.EFI" -L ubuntu

Then reboot normally. You will get a boot option "ubuntu".

If your EFI partition is not the default /dev/sda1, then the command will look this way:

sudo efibootmgr -c -l "\EFI\UBUNTU\SHIMX64.EFI" -L ubuntu -d /dev/sdX -p N

where /dev/sdX is the disk and N is the partition number. If your EFI partition is /dev/sdb2, then it will look as -d /dev/sdb -p 2.

Pilot6
  • 92,169
  • Thank you, that did bring up the ubuntu option in bios. Even after selecting that, the screen says no boot device found – Reva Sep 02 '15 at 17:28
  • all I see in boot priority order are, ubuntu, onboard nic-ipv4, onboard nic-ipv6. So, no HDD right? – Reva Sep 02 '15 at 17:37
  • I made a mistake. There should be quotes. Run sudo efibootmgr -Bb 0000 and run the updated command. @Reva Without qoutes it does not work for me too. – Pilot6 Sep 02 '15 at 17:51
  • You are the man. The one with quotes worked. I guess you need to update the other version of the command as well. – Reva Sep 02 '15 at 18:05
  • "The path to Ubuntu efi loader should be added to your motherboard UEFI." are you sure it's saved "on the motherboard"? It seems it's saved in the EFI partition, but not saved on the motherboard. – Basj Jun 27 '20 at 13:22
1

Following Pilot6's post, I was able to solve my problem with a few changes. My system was running Ubuntu 16.04 LTS Server when this strange issue occurred due to a possible power loss with the Intel® Server Board S2600WF. I tried to solve it with a live Ubuntu 20.04 LTS, but it did not have the command efibootmgr or internet connectivity, so I couldn't install the software. I finally decided to boot with Boot-Repair and run it. Running the command:

sudo efibootmgr -c -l "\EFI\UBUNTU\SHIMX64.EFI" -L ubuntu

and restarting the system I was able to see Ubuntu in the boot options. Operation was back to normal afterwards.

kyrlon
  • 174