The perfect choice of one-stop service for diversification of architecture.
linuxefi /vmlinuz-
initrdefi /initramfs-
boot
From the normal OS booted, I could run grub2-install without chroot, and that worked.I am not sure whether this was just an issue with my BIOS, or there is still something more generally wrong, but this is what made grub2-install run without reporting any error.# Open encrypted root partion
cryptsetup luksOpen /dev/sda4 a4
mount /dev/mapper/a4 /mnt
mount /dev/sda2 /mnt/boot
mount -t proc proc /mnt/proc
mount -t sysfs sys /mnt/sys
mount -o bind /dev /mnt/dev
mount -t devpts pts /mnt/dev/pts/
mount -o bind /etc/resolv.conf /mnt/etc/resolv.conf
chroot /mnt # run inside the chroot:
mount /dev/sda1 /boot/efi
mount -t efivarfs efivarfs /sys/firmware/efi/efivars
grub2-install
I am attempting to install Arch linux to a new (and very crappy) HP Pavillion 15 Notebook.
This is a UEFI-based machine. After several swings at it, I have managed to get pretty far. Legacy mode is disabled in the system setup, and I have EFI-booted to the Arch DVD I burned, and progressed through both the Arch Beginner's Guide and the more advanced Installation Guide to the point where I am installing grub.
While chrooted, I execute:
grub-install --targetx86_64-efi --efi-directory/boot --bootloader-idarch_grub --recheck --debug
This emits a ton of output, including:
The first time I got to this point, I continued with the installation, not knowing if it was an actual problem. Turns out it was, as when I rebooted the machine no bootable medium could be found and the machine refused to boot. I was able at that point to go in to the UEFI setup menu and select an EFI file to boot, and the Arch Linux would boot up.
But I am now going back and reinstalling again, trying to fix the problem above.
How can I get GRUB to install correctly?
·OTHER ANSWER:
I am attempting to install Arch linux to a new (and very crappy) HP Pavillion 15 Notebook.
This is a UEFI-based machine. After several swings at it, I have managed to get pretty far. Legacy mode is disabled in the system setup, and I have EFI-booted to the Arch DVD I burned, and progressed through both the Arch Beginner's Guide and the more advanced Installation Guide to the point where I am installing grub.
While chrooted, I execute:
grub-install --targetx86_64-efi --efi-directory/boot --bootloader-idarch_grub --recheck --debug
This emits a ton of output, including:
The first time I got to this point, I continued with the installation, not knowing if it was an actual problem. Turns out it was, as when I rebooted the machine no bootable medium could be found and the machine refused to boot. I was able at that point to go in to the UEFI setup menu and select an EFI file to boot, and the Arch Linux would boot up.
But I am now going back and reinstalling again, trying to fix the problem above.
How can I get GRUB to install correctly?