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:
- 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
Read more here: Source link