You are not logged in.
I've recently reinstalled windows on my system and when I did that it wiped my grub entries.My system is using UEFI with GPT partitions. I've tried using the command
"grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=GRUB"
and
"grub-mkconfig -o /boot/grub/grub.cfg"
, but it's not creating any new entries in NVRAM. I've also tried creating new entries with efibootmgr. The exact command I used was
efibootmgr --create --disk /dev/sdb --part 1 --loader /boot/efi/--label "Arch Linux" --unicode
. That did not work either. When I selected the entry within uefi, it just blinked once and returned me the uefi screen. I tried using bcfg next and ran the following command
bcfg boot add 1 fs0:\vmlinuz-linux "Arch Linux"
successfully. . I was unable to run the second entry listed in the wiki
bcfg boot -opt 1 "root=/dev/sdb1 initrd=\initramfs-linux.img"
, I got an error of invalid argument. I looked in my uefi entries and found an entry in UEFI, but whenever I run it I my computer goes into kernel panic mode.
Last edited by jbreese321 (2023-01-28 18:08:41)
Offline
In your grub-install command, "--efi-directory=esp" is invalid. You have to give it the actual directory. For the efibootmgr command, "-loader /boot/efi/" is invalid, that's a dir, not an exectuable.
Offline
I wasn't expecting someon to respond so quick. I was still editing my post sorry.
Offline
The output of fdisk is the following:
Offline
"--efi-directory=/boot/efi" isn't valid, either, given that fdisk output.
Offline
I'm confused what should my --efi-directory be set to?
Offline
Given the fdisk output, after you chrooted it would be "/boot". You need to pass the mount point of the ESP partition, not a subdirectory.
Offline
From https://wiki.archlinux.org/title/GRUB#Installation
"Mount the EFI system partition and in the remainder of this section, substitute esp with its mount point."
Offline
I was able to boot into my Linux partition. Thanks!
Offline