I tried to install Arch Linux on my HP laptop such that it would boot directly from UEFI. I did it before but I don't remember exact method I used. I follow standard instructions form wiki and have
/dev/sda1 mounted at
/dev/sda2 mounted at
/mnt. After chrooting in
/mnt I use pacman to download efibootmgr. Then I use the command:
efibootmgr -d /dev/sda -p 1 -c -L "Arch Linux" -l /vmlinuz-linux -u "root=/dev/sda2 rw initrd=/initramfs-linux.img"
following wiki again. I always make sure that boot order is proper but after reboot, computer doesn't see any bootable system.
Then using UEFI shell from USB I wanted to try
Shell> bcfg boot add N fsV:\vmlinuz-linux "Arch Linux"
but my shell only lists USB as fs0 and everything else is listed as blk0, blk1 and so on. They are not accesible directories so I can't use these in command above.
I don't know what else could I try. I burnt USB using rufus and I tried most of the options. Currently I used drive formatted GPT, FAT32 and I used DD mode with rufus. I have legacy and secure boot disabled in BIOS. Laptop's disk is formatted GPT and
/dev/sda1 is EFI partition. Both partitions are formatted as ext4 using
mkfs.ext4. I tried multiple times reainstalling the system but I still can't figure out where the problem lies.