You are not logged in.
Apologies for lack of outputs; it's slightly more difficult for me to do right now.
I just reinstalled Arch and decided to go for systemd-boot rather than GRUB to dual boot with Windows 10. Fast-startup is disabled and I have satisfied all efi boot requirements as stated on the wiki page, although point #4 notes about adding "vfat to a file in /etc/modules-load.d/ to ensure the current running kernel has the vfat module loaded at boot". I'm unsure about this part to be honest... my /etc/modules-load.d/ directory is empty.
I mounted the EFI partition as well as the root and swap partitions then generated fstab. The output of /mnt/etc/fstab successfully shows all 3 UUIDs.
I copied kernel and initramfs to the EFI mountpoint (I mounted the EFI partition to /mnt/boot/efi):
> cp /boot/initramfs-linux.img /boot/efi/initramfs-linux.img
> cp /boot/vmlinuz-linux /boot/efi/bootx64.efithen I installed:
> bootctl --path=/boot/efi install
Copied "usr/lib/systemd/boot/efi/systemd-bootx64.efi" to "boot/efi/EFI/BOOT/BOOTX64.EFI"
Copied "usr/lib/systemd/boot/efi/systemd-bootx64.efi" to "boot/efi/EFI/systemd/systemd-bootx64.efi"When I restart my PC, I get 3 options:
Windows Boot Manager
EFI Default Loader
Reboot Into Firmware InterfaceIf I click on "Windows Boot Manager", I get the final option of:
Windows Boot Manager
Reboot Into Firmware InterfaceI think I have done something incredibly stupid in the process, but I have searched with no real idea on what's going wrong, so any pointers on what I have done wrong/have failed to do would be most helpful. Please ask for any more info you may require.
Thanks in advance
Last edited by CLFAS (2016-08-02 13:50:13)
Apples?
Offline
You have to generate a loader entry to boot the kernel. The Windows Boot Manager, EFI Shell, and EFI Default Loader are checked for and are generated default entries, which is what you see.
It sounds like you have done everything right other than skip this part. Your kernel and initramfs do not need to be in /boot/efi. though. Just place these images in /boot. The loader entry is relative to the ESP root, which, usually, is /boot. If you would like to leave the images where you have them now then your entry will have an efi/ prefix.
https://wiki.archlinux.org/index.php/sy … ot_entries
Last edited by sherrellbc (2016-08-01 13:12:54)
Offline
You have to generate a loader entry to boot the kernel. The Windows Boot Manager, EFI Shell, and EFI Default Loader are checked for and are generated default entries, which is what you see.
It sounds like you have done everything right other than skip this part. Your kernel and initramfs do not need to be in /boot/efi. though. Just place these images in /boot. The loader entry is relative to the ESP root, which, usually, is /boot. If you would like to leave the images where you have them now then your entry will have an efi/ prefix.
Thanks, although now I have an issue with it not finding the files upon boot.
I created an arch.conf file, moved the kernel and initramfs to /boot instead of /boot/efi.
My conf file reads the same as the example on the wiki, just with my PARTUUID changed to the Arch root (/mnt) partition.
It says it cannot locate the kernel, then a few seconds later says it cannot locate the initramfs. I have also tried adding /boot, /mnt/boot prefix to the kernel and initramfs location in the conf file, also with no luck...
Any ideas?
Last edited by CLFAS (2016-08-01 16:26:33)
Apples?
Offline
Did you mount your EFI partition to the rootfs or are you putting your kernel files in a boot directory on the rootfs? The difference being:
For the sake of the example I assume sda1 is your boot partition and sda2 is your rootfs.
Did you mount your boot partition (sda1) to the rootfs (sda2) and install the bootloader/kernel:
mount /dev/sda2 /mnt
mount /dev/sda1 /mnt/boot
arch-chroot /mnt /bin/bash
# Install bootloader to /boot. Or did you make a directory called /boot in the rootfs and install the bootloader/kernel:
mount /dev/sda2 /mnt
mkdir /mnt/boot
arch-chroot /mnt /bin/bash
# Install bootloader to /boot. Your partition table should have a boot flag set for your boot partition. The UEFI/legacy bootloader will check for the bootflag and load the bootloader from there. If you did not install the files to your boot partition but instead installed to the boot directory on your root filesystem then the UEFI/legacy bootloader will not find what it is looking for.
It sounds like you installed the bootloader correctly but installed the kernel to /boot on the filesystem rather than the boot partition.
How is your hard drive partitioned? What is the output `lsblk`?
Last edited by sherrellbc (2016-08-01 17:39:17)
Offline
Did you mount your EFI partition to the rootfs or are you putting your kernel files in a boot directory on the rootfs? The difference being:
For the sake of the example I assume sda1 is your boot partition and sda2 is your rootfs.Did you mount your boot partition (sda1) to the rootfs (sda2) and install the bootloader/kernel:
mount /dev/sda2 /mnt mount /dev/sda1 /mnt/boot arch-chroot /mnt /bin/bash # Install bootloader to /boot.
^ I used that method.
Since I'm dual booting with windows 10, I added the entry to the same EFI partition created in the Windows 10 install.
/dev/sda1 MS Recovery
/dev/sda2 EFI
/dev/sda3 MS Reserved
/dev/sda4 MS Basic Data (NTFS)
/dev/sda5 Linux-swap
/dev/sda6 MS Basic Data (Ext4)
I mounted /mnt to /dev/sda6
I mounted /mnt/boot/efi to /dev/sda2
I used the PARTUUID for /dev/sda6 in $esp/loader/entries/arch.conf for the boot entry, according to UUID in /mnt/etc/fstab for that partition.
When I boot, the exact messages I get are:
Error loading vmlinuz-linux...
Failed to execute initramfs-linux.imgLast edited by CLFAS (2016-08-01 18:18:01)
Apples?
Offline
I mounted /mnt to /dev/sda6
I mounted /mnt/boot/efi to /dev/sda2I used the PARTUUID for /dev/sda6 in $esp/loader/entries/arch.conf for the boot entry, according to UUID in /mnt/etc/fstab for that partition.
If you installed to efi/ in the boot partition then you need to move your initramfs and kernel there. These two images should be in the same directory as the loader directory. ESP is defined as wherever you issued the install command, and the paths given in the loader entry are relative that location.
bootctl --path=$ESP installAs far as I can tell, it looks like your loader entries point to <boot>/efi/ and the kernel and initramfs are now in /boot. This seems to be a product of your dual booted system. My kernel and initramfs are just in /boot.
Last edited by sherrellbc (2016-08-01 18:24:33)
Offline
@CFLAS:
Why are you mounting the EFI system partition to /boot/efi?
As @sherrellbc says, it is far simpler if the ESP is mounted to /boot
Even if you can get this working, you will have to implement a workaroud to re-populate the ESP when the kernel is updated.
Rather that wondering if the kernel image is present, why not check?
# mount /dev/sda2 /mnt
ls /mnt
# umount -R /mntJin, Jîyan, Azadî
Offline
CLFAS wrote:I mounted /mnt to /dev/sda6
I mounted /mnt/boot/efi to /dev/sda2I used the PARTUUID for /dev/sda6 in $esp/loader/entries/arch.conf for the boot entry, according to UUID in /mnt/etc/fstab for that partition.
If you installed to efi/ in the boot partition then you need to move your initramfs and kernel there. These two images should be in the same directory as the loader directory. ESP is defined as wherever you issued the install command, and the paths given in the loader entry are relative that location.
bootctl --path=$ESP installAs far as I can tell, it looks like your loader entries point to <boot>/efi/ and the kernel and initramfs are now in /boot. This seems to be a product of your dual booted system. My kernel and initramfs are just in /boot.
Thanks
I moved the files to /boot/efi... my mistake.
Also there was a UUID issue, and I had to use the one printed using gdisk, rather than the one by looking in fstab.
The issue now is that I have no option to boot Windows, so I'm just looking into that.
Apples?
Offline
@CFLAS:
Why are you mounting the EFI system partition to /boot/efi?
As @sherrellbc says, it is far simpler if the ESP is mounted to /boot
Even if you can get this working, you will have to implement a workaroud to re-populate the ESP when the kernel is updated.
Rather that wondering if the kernel image is present, why not check?
# mount /dev/sda2 /mnt ls /mnt # umount -R /mnt
Thanks for the tip, I'll just implement the workaround for now, but I'll remember it for next time. The kernel issue is fixed now.
Last edited by CLFAS (2016-08-01 22:45:30)
Apples?
Offline
Everything working now. I got the windows 10 option by removing the append to the line "timeout 3" in loadkeys.conf and changed the mount point of the EFI partition to /boot.
Apples?
Offline