You are not logged in.

#1 2023-06-22 19:33:58

Jark5455
Member
Registered: 2023-06-22
Posts: 4

/boot/vmlinuz-linux corrupt

Hello, it appears that my /boot/vmlinuz-linux image has been corrupted, as when I try to run

pacman -S linux

I get an error along the lines of

ERROR: invalid kernel specified: '/boot/vmlinuz-linux'

It also appear that I am unable to regenerate the image with

mkinitcpio -p linux

as the preset for linux references its own image.

[desktop boot]# mkinitcpio -p linux
==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'default'
==> Using default configuration file: '/etc/mkinitcpio.conf'
  -> -k /boot/vmlinuz-linux -g /boot/initramfs-linux.img --microcode /boot/amd-ucode.img
==> ERROR: invalid kernel specified: '/boot/vmlinuz-linux'
==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'fallback'
==> Using default configuration file: '/etc/mkinitcpio.conf'
  -> -k /boot/vmlinuz-linux -g /boot/initramfs-linux-fallback.img -S autodetect --microcode /boot/amd-ucode.img
==> ERROR: invalid kernel specified: '/boot/vmlinuz-linux'

How do I regenerate this image?

Offline

#2 2023-06-22 20:13:49

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,194

Re: /boot/vmlinuz-linux corrupt

ls -lR /boot
df -h
file /boot/vmlinuz-linux

Offline

Board footer

Powered by FluxBB