4

I have installed Arch Linux for the first time, I have attempted to setup my UEFI boot process but must have failed somewhere, on bootup I do see the boot menu with the Arch Linux option but when I select it, I get a message /vmlinuz-linux:Not Found i.e. it can't find the kernel to boot. I've followed the instructions on https://wiki.archlinux.org/index.php/Installation_guide but must have messed up somewhere.

How can I fix this?

partition layout:

/dev/sda1 EFI System (512M)
/dev/sda2 Linux fs (244M)
/dev/sda3 Linux fs (1M)
/dev/sda4 Linux fs (465G)

/etc/fstab:

#/dev/sda4  
UUID=41d8483f-0d29-4234-bf1e-3c55346b5667  /  ext4    rw,realtime,data=unordered 0 1

esp was setup in /boot/

edit 1
Oh yeah I can anytime boot from my USB thumb drive for troubleshooting...,

edit2
I see, my /boot/loder/entries/arch.conf looks like:

title          Arch Linux
linux          /vmlinuz-linux
initrd         /initramfs-linux.img
options        root=PARTUUID=41d8483f-0d29-4234-bf1e-3c55346b5667 rw

but there's no files in my / at all only the directories. Might that be the problem?

  • Where is your kernel and initrd? – jasonwryan Sep 23 '16 at 2:46
  • I booted from my thumb drive, mounted my / (/dev/sda4) to /mnt and chrooted to /mnt and a # find / -name "initrd" doesn't return a thing, that's a problem right there, isn't it? – cerr Sep 23 '16 at 2:49
  • Yep... Include details of your partitions etc in your question. And where is your ESP? – jasonwryan Sep 23 '16 at 2:50
  • @jasonwryan I revised my question, please see above – cerr Sep 23 '16 at 3:03
  • 1
    You need to mount your ESP to /boot and reinstall linux and then update your arch.conf and /etc/fstab. – jasonwryan Sep 23 '16 at 3:52
4

Boot from your bootable USB Arch-linux , mount all your partitions and chroot into the system.

As montioned jasonwryan :

You need to mount your ESP to /boot

First create the efi folder:

mkdir /boot/efi

mount the esp partition

mount /dev/sda1 /boot/efi

Verify your /etc/fstab , the esp mount point need to be added to fstab.

Create a new sub-directory /boot/efi/EFI/arch/

mkdir -p /boot/efi/EFI/arch/

Move /boot/vmlinuz-linux , initramfs-linux.img and initramfs-linux-fallback.img :

cp /boot/vmlinuz-linux /boot/efi/EFI/arch/vmlinuz-linux.efi
cp /boot/initramfs-linux.img /boot/initramfs-linux-fallback.img /boot/efi/EFI/arch

Run mkinitcpio -p linux then update GRUB:

grub-mkconfig -o /boot/grub/grub.cfg

`

  • The EFI system partition is not always /dev/sda1. You need to run fdisk -l to know what it is – TheInitializer Oct 16 '16 at 16:50

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.