Thursday, May 2, 2024
1
rated 0 times [  1] [ 0]  / answers: 1 / hits: 3446  / 3 Years ago, tue, november 9, 2021, 9:09:19

I have here a new bought laptop. It's the first device with (U)EFI I was working with. At first I did not get the installation running, so I switched back to BIOS legacy mode and installed ubuntu in that mode.



All right. Now I want to add the preinstalled windows back into the boot loader to allow multiboot. This works only via EFI. So I googled around and found this link. I modified things a bit as I was after some tasting able to boot in efi mode the grub on the live cd and then booted manually into linux.



So in the end I have a grub installed on my EFI system partition and I am able to boot into linux directly from EFI. Now I have seen, that the grub.cfg has two locations: /boot/grub/ and /boot/efi/EFI/grub/. On runing update-grub only the version in /boot/grub/ will be affected. For the (manual) installation this is not an issue but any kernel update will NOT alter the important /boot/efi/EFI/grub/grub.cfg. I tried creating a symlink but it seems that the file gets deleted before rewriting. So the link is lost.



So my questions in detail:




  • What have I to do to make the updates automatically? Should I mount -o bind the directory /boot/efi/EFI/grub to /boot/grub? Any better solutions?

  • Is it possible to make grub look into another position?

  • Where will an updated grub.efi be installed?

  • Are there other issues that I forgot so far?


More From » installation

 Answers
2

If grub has no configuration in the EFI partition it seems to look under /boot/grub.



boot-repair crashed my EFI partition. I was no more able to boot any of the EFI boot options. Unfortunately I have no clue what exactly did result in the crash so I cannot file a bug.



As I crashed my whole EFI setup, I had to reinstall Windows and Ubuntu once to get all running, but now it seems that all is set up correctly.


[#31278] Thursday, November 11, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
utonmbo

Total Points: 134
Total Questions: 104
Total Answers: 118

Location: Argentina
Member since Mon, Jan 3, 2022
2 Years ago
;