Can’t boot into arch linux after fresh installation


So I just tried to install archlinux a bunch of time without being able to boot to it, I searched my problem and found a lot of people having the same problem and I tried a bunch of things but unfortunately I didn’t succeed. Asking about my problem here is my last resort so I hope somebody can help me and I hope I learn a thing or two after solving my problem.
(sorry for my bad english).
So I’ll start with sharing the steps I did to install archLinux:

  1. Boot up the live system with usb drive
  2. Verify that I’m booted in EFI mode with this command ls /sys/firmware/efi/efivars (this gives me a bunch of gibberish which means I’m in efi mode as said in arch’s official installation guide)
  3. Partitioning the disk with fdisk /dev/nvme0n1:
    • Create a GPT partition table with option g
    • 512M: EFI partition—–>(/dev/nvme0n1p1)
    • 4G: swap partition——>(/dev/nvme0n1p2)
    • rest: root partition——->(/dev/nvme0n1p3)
    • writing changes to disk
  4. formatting created partitions with the following commands:
    • mkfs.fat -F32 /dev/nvme0n1p1
    • mkswap /dev/nvme0n1p2
    • mkfs.ext4 /dev/nvme0n1p3
  5. Mount the partitions:
    • mount /dev/nvme0n1p3 /mnt
    • swapon /dev/nvme0n1p2
  6. Install essential packages on /mnt: pacstrap /mnt base linux linux-firmware
  7. Generate fstab file: genfstab -U /mnt >> /mnt/etc/fstab
  8. Chroot into /mnt: arch-chroot /mnt
  9. Generate initramfs: mkinitcpio -P
  10. Installing grub and some other packages: pacman -S grub efibootmgr os-prober base-devel mtools dosfstools...
  11. Create EFI boot directory and mount it: mkdir /boot/EFI && mount /dev/nvme0n1p1 /boot/EFI
  12. Install Grub bootloader: grub-install --target=x86_64-efi --bootloader-id=grub_uefi --recheck
  13. Generate Grub Config: grub-mkconfig -o /boot/grub/grub.cfg
  14. Exit chroot, Unmount partitions umount -a, reboot

! All commands were prompted successfully without an error

Note: some steps are skipped like setting timezone, hostname, hosts, adding user etc.

after reboot arch doesn’t boot up and the uefi menu has only enter setup which will get me to the bios.

Am I missing something here??? or am I doing something wrongggg??? Help Please!!!

thanks in advanceee <3


Read more here: Source link