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:
Boot up the live system with usb drive
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)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
- Create a GPT partition table with option
formatting created partitions with the following commands:
mkfs.fat -F32 /dev/nvme0n1p1
mkswap /dev/nvme0n1p2
mkfs.ext4 /dev/nvme0n1p3
Mount the partitions:
mount /dev/nvme0n1p3 /mnt
swapon /dev/nvme0n1p2
Install essential packages on
/mnt
:pacstrap /mnt base linux linux-firmware
Generate
fstab
file:genfstab -U /mnt >> /mnt/etc/fstab
Chroot into /mnt:
arch-chroot /mnt
Generate
initramfs
:mkinitcpio -P
Installing grub and some other packages:
pacman -S grub efibootmgr os-prober base-devel mtools dosfstools...
Create
EFI
boot directory and mount it:mkdir /boot/EFI && mount /dev/nvme0n1p1 /boot/EFI
Install
Grub bootloader
:grub-install --target=x86_64-efi --bootloader-id=grub_uefi --recheck
Generate
Grub Config
:grub-mkconfig -o /boot/grub/grub.cfg
Exit
chroot, Unmount partitionsumount -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!!!
andddd thanks in advanceee <3
EDIT:
I reinstalled grub bootloader and regenerated the grub Configuration with the same commands in steps 12 and 13
before rebooting my computer
the output of efibootmgr -v
is
BootCurrent: 0001
Timeout: 0 seconds
BootOrder: 0000,0001
Boot0000* grub_uefi HD(1,GPT,d20bff6e-6f1e-c549-9f1b-505a302fd42c,0x800,0x100000)/File(\EFI\grub_uefi\grubx64.efi)
Boot0001* UEFI: Generic Flash Disk 8.07, Partition 1 ...Gibberish..BO
but After reboot the output is:
BootCurrent: 0001
Timeout: 0 seconds
BootOrder: 0001
Boot0001* UEFI: Generic Flash Disk 8.07, Partition 1 ...Gibberish..BO
efibootmgr
show?efibootmgr -v
after runningmodprobe efivars
. Maybe check if Arch has an entry in your BIOS.Enter Setup
which will get me into the bios if I click it.