You are not logged in.
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
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
yes, I tried to regenerate grub not one time but is being deleted everytime.
Offline
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
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
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?
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
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
should I try to update my bios from windows or try legacy boot instead?
Offline
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
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
Is Arch installed to this mysterious USB of which you speak? If so then add the --removable flag to the grub-install command.
Offline
nope, it's installed next to windows on the ssd.
Offline
usb is usb flash drive with archlinux iso
Offline
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
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
Offline
the removable option has not helped but the replacement of windows boot manager yes, thank you very much, solved
Offline
do u know but why it can happen?
Offline
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
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