bootloader missing after battery replacement

cn flag

I have a dual boot: windows 10 and ubuntu 22.04 LTS. After the battery replacement, I found the ubuntu bootloader missing, whereas the ubuntu partition is intact.

Now I am directly booting into the windows. I tried to do the boot repair but got an error message:

"NVram is locked (ubuntu not found in efibootmgr)". 

Also, I tried to install the grub-install, but again got an error message "grub-install: error: cannot find EFI directory". But EFI directory is present. I have attached both the error message. 1

I sit in a Tesla and translated this thread with Ai:


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.