You are not logged in.

#1 2022-01-15 23:53:57

sc6ut
Member
Registered: 2021-08-18
Posts: 26

[SOLVED] grub efi entry is being removed on reboot

hey, I have arch linux and win10 installed on my laptop. when I installed the system I have mounted the efi partition to /boot/efi. now everytime I reboot the laptop, the grub entry disappears. I read that I supposed to move efi partition mount point to /boot to prevent that. so my question how can I do it safely? thanks in advance.

Last edited by sc6ut (2022-01-16 14:35:08)

Offline

#2 2022-01-16 01:14:18

solskog
Member
Registered: 2020-09-05
Posts: 416

Re: [SOLVED] grub efi entry is being removed on reboot

Did you followed these steps to generate grub.cfg ?

grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=grub-efi
grub-mkconfig -o /boot/grub/grub.cfg

https://wiki.archlinux.org/title/GRUB#Installation_2

https://wiki.archlinux.org/title/Unifie … boot_order

Last edited by solskog (2022-01-16 01:17:20)

Offline

#3 2022-01-16 05:07:06

sc6ut
Member
Registered: 2021-08-18
Posts: 26

Re: [SOLVED] grub efi entry is being removed on reboot

yes, I tried to regenerate grub not one time but is being deleted everytime.

Offline

#4 2022-01-16 05:31:43

solskog
Member
Registered: 2020-09-05
Posts: 416

Re: [SOLVED] grub efi entry is being removed on reboot

Are you still be able to boot into archlinux from your dualboot system? try with arch-iso and What is the output from

$ cat /etc/fstab
$ lsblk -f

Offline

#5 2022-01-16 06:28:32

sc6ut
Member
Registered: 2021-08-18
Posts: 26

Re: [SOLVED] grub efi entry is being removed on reboot

after I regenerate grub I can reboot into it and boot into arch, then when I reboot the arch, the grub entry is being removed from efi entries.

Last edited by sc6ut (2022-01-16 06:57:49)

Offline

#6 2022-01-16 10:05:27

Head_on_a_Stick
Member
From: London
Registered: 2014-02-20
Posts: 7,732
Website

Re: [SOLVED] grub efi entry is being removed on reboot

sc6ut wrote:

the grub entry is being removed from efi entries.

Your motherboard UEFI firmware is defective. This is not uncommon.

Try using Windows to chainload GRUB:

bcdedit /set "{bootmgr}" path "\EFI\grub-efi\grubx64.efi"

^ Run that from a Windows Administrator prompt. Check the path to grubx64.efi is correct (given relative to the EFI system partition).

This suggestion is given in the second ArchWiki link provided by solskog. Did you not bother reading that?

sc6ut wrote:

I read that I supposed to move efi partition mount point to /boot to prevent that.

Where did you read that? I don't think that's true.

Offline

#7 2022-01-16 10:36:46

sc6ut
Member
Registered: 2021-08-18
Posts: 26

Re: [SOLVED] grub efi entry is being removed on reboot

Head_on_a_Stick wrote:
sc6ut wrote:

the grub entry is being removed from efi entries.

Your motherboard UEFI firmware is defective. This is not uncommon.

Try using Windows to chainload GRUB:

bcdedit /set "{bootmgr}" path "\EFI\grub-efi\grubx64.efi"

^ Run that from a Windows Administrator prompt. Check the path to grubx64.efi is correct (given relative to the EFI system partition).

This suggestion is given in the second ArchWiki link provided by solskog. Did you not bother reading that?

sc6ut wrote:

I read that I supposed to move efi partition mount point to /boot to prevent that.

Where did you read that? I don't think that's true.

I have tried to run bcdedit now and it has not helped. the mount point moving has not helped too.

Last edited by sc6ut (2022-01-16 10:47:02)

Offline

#8 2022-01-16 10:43:50

sc6ut
Member
Registered: 2021-08-18
Posts: 26

Re: [SOLVED] grub efi entry is being removed on reboot

should I try to update my bios from windows or try legacy boot instead?

Offline

#9 2022-01-16 10:54:29

Head_on_a_Stick
Member
From: London
Registered: 2014-02-20
Posts: 7,732
Website

Re: [SOLVED] grub efi entry is being removed on reboot

sc6ut wrote:

I have tried to run bcdedit now and it has not helped.

How about the other suggestions given in the second ArchWiki link provided by solskog?

Offline

#10 2022-01-16 11:29:09

sc6ut
Member
Registered: 2021-08-18
Posts: 26

Re: [SOLVED] grub efi entry is being removed on reboot

I have noticed that grub is being deleted only after that I remove the usb from my laptop. can the problem be related to that? may be bios removes both usb and grub entries when I remove the usb?

Offline

#11 2022-01-16 11:35:24

Head_on_a_Stick
Member
From: London
Registered: 2014-02-20
Posts: 7,732
Website

Re: [SOLVED] grub efi entry is being removed on reboot

Is Arch installed to this mysterious USB of which you speak? If so then add the --removable flag to the grub-install command.

Offline

#12 2022-01-16 11:37:23

sc6ut
Member
Registered: 2021-08-18
Posts: 26

Re: [SOLVED] grub efi entry is being removed on reboot

nope, it's installed next to windows on the ssd.

Offline

#13 2022-01-16 11:43:39

sc6ut
Member
Registered: 2021-08-18
Posts: 26

Re: [SOLVED] grub efi entry is being removed on reboot

usb is usb flash drive with archlinux iso

Offline

#14 2022-01-16 13:32:44

solskog
Member
Registered: 2020-09-05
Posts: 416

Re: [SOLVED] grub efi entry is being removed on reboot

sc6ut wrote:

I tried to regenerate grub not one time but is being deleted everytime.

Did you do this through arch-chroot inside archlinux partition?
And pls provide output from

$ cat /etc/fstab
$ lsblk -f

Offline

#15 2022-01-16 13:51:52

sc6ut
Member
Registered: 2021-08-18
Posts: 26

Re: [SOLVED] grub efi entry is being removed on reboot

solskog wrote:
sc6ut wrote:

I tried to regenerate grub not one time but is being deleted everytime.

Did you do this through arch-chroot inside archlinux partition?
And pls provide output from

$ cat /etc/fstab
$ lsblk -f

yes, and I checked that grub is being removed only when I remove the usb flash drive with archiso not when I just rebooting.

[sc6ut@europa ~]$ cat /etc/fstab
# Static information about the filesystems.
# See fstab(5) for details.

# <file system> <dir> <type> <options> <dump> <pass>
# /dev/nvme0n1p5
UUID=37024a30-c95b-4994-821b-85f36dd8154d       /               btrfs           rw,noatime,compress=zstd:3,ssd,discard=async,space_cache=v2,subvolid=256,subvol=/@  0 0

# /dev/nvme0n1p1
UUID=A64D-BABB          /boot/efi       vfat            rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,utf8,errors=remount-ro       0 2

# /dev/nvme0n1p5
UUID=37024a30-c95b-4994-821b-85f36dd8154d       /home           btrfs           rw,noatime,compress=zstd:3,ssd,discard=async,space_cache=v2,subvolid=257,subvol=/@home      0 0

# /dev/nvme0n1p5
UUID=37024a30-c95b-4994-821b-85f36dd8154d       /var            btrfs           rw,noatime,compress=zstd:3,ssd,discard=async,space_cache=v2,subvolid=258,subvol=/@var       0 0

[sc6ut@europa ~]$ lsblk -f
NAME        FSTYPE  FSVER            LABEL       UUID                                 FSAVAIL FSUSE% MOUNTPOINTS
sda         iso9660 Joliet Extension ARCH_202201 2022-01-01-10-11-06-00                              
├─sda1      iso9660 Joliet Extension ARCH_202201 2022-01-01-10-11-06-00                              
└─sda2      vfat    FAT16            ARCHISO_EFI 91D9-6C88                                           
zram0                                                                                                [SWAP]
nvme0n1                                                                                              
├─nvme0n1p1 vfat    FAT32                        A64D-BABB                             470.1M     5% /boot/efi
├─nvme0n1p2                                                                                          
├─nvme0n1p3 ntfs                                 884C4B504C4B37E8                                    
├─nvme0n1p4 ntfs                                 D4B4006CB4005400                                    
└─nvme0n1p5 btrfs                                37024a30-c95b-4994-821b-85f36dd8154d   37.4G    29% /var
                                                                                                     /home
                                                                                                     /

Offline

#16 2022-01-16 14:22:56

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,561

Re: [SOLVED] grub efi entry is being removed on reboot

Offline

#17 2022-01-16 14:34:51

sc6ut
Member
Registered: 2021-08-18
Posts: 26

Re: [SOLVED] grub efi entry is being removed on reboot

the removable option has not helped but the replacement of windows boot manager yes, thank you very much, solved

Offline

#18 2022-01-16 14:35:22

sc6ut
Member
Registered: 2021-08-18
Posts: 26

Re: [SOLVED] grub efi entry is being removed on reboot

do u know but why it can happen?

Offline

#19 2022-01-16 14:41:09

solskog
Member
Registered: 2020-09-05
Posts: 416

Re: [SOLVED] grub efi entry is being removed on reboot

Your filesystem looks all right to me.
Try the following steps.
1, Regenerate the grubx64.efi from arch-iso before it disappears.
2, Keep the arch-iso usb drive inside and boot into UEFI SHELL.
3. Copy the grubx64.efi into windows EFI boot folder.

UEFI SHell> fs0:
UEFI Shell> cp \EFI\BOOT\EFI\grub-efi\grubx64.efi \EFI\Microsoft\Boot\grubx64.efi

4, remove arch-iso usb drive and reboot into UEFI shell again
5, manually choose \EFI\Microsoft\Boot\grubx64.efi and boot.
update:
Just as the link above suggested, some firmware remove non-default EFI boot loader. these steps keeps a backup grubx64.efi inside windows boot folder in case it happens again.

Last edited by solskog (2022-01-16 14:46:53)

Offline

#20 2022-01-16 14:43:00

Head_on_a_Stick
Member
From: London
Registered: 2014-02-20
Posts: 7,732
Website

Re: [SOLVED] grub efi entry is being removed on reboot

sc6ut wrote:

why it can happen?

Because the UEFI firmware is rubbish, as I explained earlier.

Note that your change will probably be over-ridden next time Windows updates and "repairs" the bootloader.

Offline

Board footer

Powered by FluxBB