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,041
Reva
  • 53
  • 1
  • 5

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,041
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