Changed the UEFI motherboard on a dell laptop, now it says no OS detected
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.
92 Answers
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 ubuntuThen 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 Nwhere /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.
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 ubuntuand restarting the system I was able to see Ubuntu in the boot options. Operation was back to normal afterwards.