You are not logged in.
Hello everybody,
I'm struggling with the UEFI boot on my new laptop (thanks Santa). It came with Windows 10 pre-installed. I shrinked Windows' partition and installed Arch as I've already done a few times in the past.
However, when it came to installing the boot loader, When booting, the `Linux Boot Manager` shows up, with the `Arch Linux` option present. But when selecting it it shows
Error loading \vmlinuz-linux: Not Found
Failed to execute Arch Linux (\vmlinuz-linux): Not FoundHere is the structure of my ESP:
- EFI
- Boot
- HP
- Microsoft
- systemd
- systemd-bootx64.efi
- intel-ucode.img
- loader
- loader.conf
- entries
- arch.conf(I've only listed the most relevant files)
Here is my `loader.conf`
timeout 5
default ba6637801...And here is my `arch.conf`
title Arch Linux
linux /vmlinuz-linux
initrd /iniramfs-linux.img
options root=PARTUUID=518c...5df1 rwThe `vmlinuz-linux` and `/iniramfs-linux.img` are stored in the `/boot` folder on my Arch partition.
Any idea what's going on?
Last edited by Richou D. Degenne (2017-01-05 14:32:02)
Am I really lying when I say "I'm lying"?
Offline
Are you sure that the 518c...5df1 you have in your arch.conf is the PARTUUID not the UUID?
UUID and PARTUUID are not the same thing.
Offline
Yes, I've been careful about this. It is indeed the PARTUUID.
Am I really lying when I say "I'm lying"?
Offline
Did you mount your ESP as /boot during installation? It appears that the kernel and initramfs aren't present in your ESP.
Offline
It was mounted, and I was wondering whether this was normal or not.
So the kernel and initramfs have to be in the ESP as well as on my primary partition. Can I simply copy them to the ESP's root?
Am I really lying when I say "I'm lying"?
Offline
Not 'as well as', if you installed correctly then they should only be on your ESP (/boot) not your primary partition (/).
The fact that they're on your primary partition means that your ESP was not mounted at /boot during installation.
Offline
Ok, then, maybe I got that one wrong.
So, do you reckon I can move the existing one, or do I have to regenerate them with `mkinitcpio`?
Last edited by Richou D. Degenne (2017-01-05 12:15:28)
Am I really lying when I say "I'm lying"?
Offline
Copying them to your ESP would work, but it's only a temporary workaround. You would have to copy the new versions over every time there was a kernel upgrade.
The best thing to do is boot the install media, mount all of your partitions correctly and then chroot into your installation and reinstall the linux package.
Make sure your ESP is mounted as /boot in fstab so that any future updates put the images in the correct place.
Last edited by Slithery (2017-01-05 12:22:30)
Offline
Ok, then, maybe I got that one wrong.
So, do you reckon I can move the existing one, or do I have to regenerate them with `mkinitcpio`?
You would be fine moving them to the boot partition. The idea is that during installation you explicitly mount your boot partition to the rootfs on /boot. During installation the scripts simply write to /boot, but all files are actually written to your boot partition rather than the rootfs image. In other words, /boot on the rootfs image should be empty. You will then generate an fstab that has an entry to mount the UUID of your boot partition to /boot (of the rootfs) on boot.
It is necessarily this way as the EFI loader looks for *.efi images in a bootable FAT32 partition (which the rootfs is not); this is part of the UEFI specification.
Last edited by sherrellbc (2017-01-05 14:46:38)
Offline
Yep, that did the trick. ESP now has the kernel and initramfs and I added it to the fstab, and it's booting correctly.
Thanks for your help and reactivity! ![]()
Am I really lying when I say "I'm lying"?
Offline