I get "specified kernel image does not exist: /boot/vmlinuz-linux" when I try to regenerate mkinitcpio via chroot.
I messed up my ach boot,so I have to fix it.
What I want is regenerating mkinitcpio.
So when I do `mount /dev/sda3 /mnt` (that is my linux ext4 partition wth all the files on) and then `mount /dev/sda1 /mnt/boot` (that is the partition on which grub is installed),then I do `arch-chroot /mnt`,then when I do `mkinitcpio -p linux`,then I ger `specified kernel image does not exist: /boot/vmlinuz-linux´ as the output.
Even when I do `sudo pacman -S linux` it still doesn't work.
Edit: u/treeshateorcs found out the problem,but I don't know which commands I need to use.
Edited 21 Jun 2021. We only hold this version.
About this post
- Posted
- Archived
- Edited
- Score
- 10 · 78% up
- Kind
- Text
- ID
- o4e80o
26 comments
I had a similar problem recently and I remade the efi partition and it worked
How did you do that?
I re formatted /dev/sda1, my efi partition, then monted the system on /mnt , /dev/sda1 on /mnt/boot, after that, chroot into /mnt ( I clarify this because it's common to not mount the efi partition properly). Once in the system I reinstall grub and regenerate the images with mkinitcpio -P. In my case the templates for mkinitcpio were broken or something so I resintalled linux with pacman -S linux and the system booted again. Make sure to umount everything, the reboot.
It's kind of following the last few steps of the installation guide plus some troubleshooting.
post your
ls -lah /bootwhile in chrootthe output is:
do
umount /dev/sda1then
ls -lah /boot(all in chroot)
i think you installed the kernel into the wrong location
if it's there, you need to first mount /dev/sda1 and only then you should install the kernel
edit: WAIT, first command shouldn't be done in chroot
What does the
-lahcommand do?it's not a command, those are flags!
-l stands for list (as opposed to columns)
-a is for all
-h human readable size units (just out of habit)
actually i have these two lines in my .zshrc
exais a nicer drop-in replacement for lsDeleted before we saved it.
Is the fstab file ok?
Take a look at this:
https://bbs.archlinux.org/viewtopic.php?id=215432