tried several times but with no luck, everytime I reboot I still end up on grub rescue
output of fdisk -l:
Device Start End Sectors Size Type
/dev/nvme0n1p1 4096 618495 614400 300M EFI System
/dev/nvme0n1p2 618496 1953520064 1952901569 931.2G Linux filesystem
mounted with:
sudo mount /dev/nvme0n1p2 /mnt
sudo mount /dev/nvme0n1p1 /mnt/boot/efi
Generating grub configuration file …
Found linux image: /boot/vmlinuz-linux
Found initrd image: /boot/amd-ucode.img /boot/initramfs-linux.img
Found fallback initrd image(s) in /boot: amd-ucode.img initramfs-linux-fallback.img
Warning: os-prober will be executed to detect other bootable partitions.
Its output will be used to detect bootable binaries on them and create new boot entries.
grub-probe: error: cannot find a GRUB drive for /dev/sdb1. Check your device.map.
Adding boot menu entry for UEFI Firmware Settings …
done
If the output of the fdisk -l shows the only disk in the system, try the following at the grub rescue prompt and see if you can get to boot up your system:
grub rescue> set prefix=(hd0,2)/boot/grub
grub rescue> set root=(hd0,2)
grub rescue> insmod normal
grub rescue> normal
grub rescue> insmod linux
grub rescue> linux /boot/vmlinuz-linux root=/dev/nvme0n1p2 rw
grub rescue> initrd /boot/initramfs-linux.img
grub rescue> boot
output of grub-mkconfig -o /boot/grub/grub.cfg:
after doing the above commands
Generating grub configuration file …
Found linux image: /boot/vmlinuz-linux
Found initrd image: /boot/amd-ucode.img /boot/initramfs-linux.img
Found fallback initrd image(s) in /boot: amd-ucode.img initramfs-linux-fallback.img
Warning: os-prober will not be executed to detect other bootable partitions.
Systems on them will not be added to the GRUB boot configuration.
Check GRUB_DISABLE_OS_PROBER documentation entry.
Adding boot menu entry for UEFI Firmware Settings …
done
sudo efibootmgr -v
BootCurrent: 0003
Timeout: 1 seconds
BootOrder: 0003,0001,0002
Boot0001* UEFI OS HD(1,GPT,fa557538-32ae-6348-95d3-35d1a47c1bed,0x1000,0x96000)/File(\EFI\BOOT\BOOTX64.EFI)…BO
Boot0002* UEFI: Generic Flash Disk 8.07 PciRoot(0x0)/Pci(0x1,0x2)/Pci(0x0,0x0)/USB(5,0)/USB(3,0)/CDROM(1,0x369fc0,0x33298)…BO
Boot0003* UEFI: Generic Flash Disk 8.07, Partition 2 PciRoot(0x0)/Pci(0x1,0x2)/Pci(0x0,0x0)/USB(5,0)/USB(3,0)/HD(2,MBR,0xab3ab792,0x369fc0,0x33000)…BO
It worked! Im currently in my Operating system, thank you very much.
I will be sure to make a donation to EndeavourOS for having such a wonderful community and to show my gratitude.