Skip to content

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.

10 points25 comments
Open on Reddit
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

1 points
unknown author14 hidden

How did you do that?

1 points

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.

1 points

post your ls -lah /boot while in chroot

1 points
unknown author4 hidden

the output is:

total 12K
drwxr-xr-x  3 root root 4.0K Jan  1  1970 .
drwxr-xr-x 18 root root 4.0K Jan  1 12:53 ..
drwxr-xr-x  5 root root 4.0K Jan 11 03:31 EFI
2 points

do

umount /dev/sda1

then

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

2 points
unknown author1 hidden

What does the -lah command do?

1 points

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

alias l='exa -lah --group-directories-first --color=auto'
alias ll='exa -lh --group-directories-first --color=auto'

exa is a nicer drop-in replacement for ls

2 points
unknown author

Deleted before we saved it.

1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.