You are not logged in.

#1 2017-01-05 11:11:58

Richou D. Degenne
Member
From: Lens, France
Registered: 2015-08-17
Posts: 10
Website

[SOLVED] UEFI boot with systemd : vmlinuz not found

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 Found

Here 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 rw

The `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

#2 2017-01-05 11:21:04

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: [SOLVED] UEFI boot with systemd : vmlinuz not found

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.


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#3 2017-01-05 11:38:15

Richou D. Degenne
Member
From: Lens, France
Registered: 2015-08-17
Posts: 10
Website

Re: [SOLVED] UEFI boot with systemd : vmlinuz not found

Yes, I've been careful about this. It is indeed the PARTUUID.


Am I really lying when I say "I'm lying"?

Offline

#4 2017-01-05 11:47:14

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: [SOLVED] UEFI boot with systemd : vmlinuz not found

Did you mount your ESP as /boot during installation? It appears that the kernel and initramfs aren't present in your ESP.


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#5 2017-01-05 11:49:46

Richou D. Degenne
Member
From: Lens, France
Registered: 2015-08-17
Posts: 10
Website

Re: [SOLVED] UEFI boot with systemd : vmlinuz not found

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

#6 2017-01-05 11:58:52

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: [SOLVED] UEFI boot with systemd : vmlinuz not found

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.


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#7 2017-01-05 12:11:26

Richou D. Degenne
Member
From: Lens, France
Registered: 2015-08-17
Posts: 10
Website

Re: [SOLVED] UEFI boot with systemd : vmlinuz not found

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

#8 2017-01-05 12:21:09

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: [SOLVED] UEFI boot with systemd : vmlinuz not found

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)


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#9 2017-01-05 12:24:04

sherrellbc
Member
Registered: 2014-05-26
Posts: 112

Re: [SOLVED] UEFI boot with systemd : vmlinuz not found

Richou D. Degenne wrote:

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

#10 2017-01-05 14:31:30

Richou D. Degenne
Member
From: Lens, France
Registered: 2015-08-17
Posts: 10
Website

Re: [SOLVED] UEFI boot with systemd : vmlinuz not found

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! smile


Am I really lying when I say "I'm lying"?

Offline

Board footer

Powered by FluxBB