You are not logged in.

#1 2020-01-13 14:30:43

sundar_ima
Member
Registered: 2011-03-14
Posts: 45

[Solved] Missing vmlinux-linux and initrid files after upgrade

Recently I have updated my Arch system which also included a new kernel. While rebooting the system, GRUB produced an error that `could not locate /boot/vmlinuz-linux`. Upon investigation, I found that recent update deleted vmlinux-linux and initramfs-linux.img located at /boot/. However I could see the intel-ucode.img at /boot. While going through many post online about the issue, it seems that updated mkinitcpio hooks does not install vmlinz and initramfs at /boot/. However, there are no documentation available in the internet to indicate where is the new install location for those two packages. After lot of manual search I could locate vmlinuz at /usr/lib/modules/5.4.10-arch1-1/vmlinuz but could not find the initramfs-linux.img. Currently, my system is unable to boot due to missing kernel packages. Could some one guide me in the right direction.

Last edited by sundar_ima (2020-01-17 11:27:23)

Offline

#2 2020-01-13 14:59:54

Lone_Wolf
Forum Moderator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,920

Re: [Solved] Missing vmlinux-linux and initrid files after upgrade

Upon investigation, I found that recent update deleted vmlinux-linux and initramfs-linux.img located at /boot/.

That's not supposed to happen, which update did that ?

Incase you are thinking about https://www.archlinux.org/news/new-kern … pio-hooks/ , the job of creating initram files was transferred from kernels to mkinitcpio.
Nothing was changed wrt the location of the initram files.

Is /boot a separate partition on your system ?
If so, was it mounted when you performed the update ?

Try booting the archinstall iso and chroot to recreate initram files, https://wiki.archlinux.org/index.php/Chroot


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#3 2020-01-13 15:00:17

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,736

Re: [Solved] Missing vmlinux-linux and initrid files after upgrade

mkinitcpio does generate the images to /boot granted the kernel packages were relevantly updated which all official ones were. What happens if you run

mkinitcpio -P

also what do you get for

pacman -Q mkinitcpio
pacman -Qs linux

Offline

#4 2020-01-13 15:47:39

sundar_ima
Member
Registered: 2011-03-14
Posts: 45

Re: [Solved] Missing vmlinux-linux and initrid files after upgrade

Is /boot a separate partition on your system ?

No. I don't have separate partition for boot.

I think it I need to install/ create initrid file through chroot.

also what do you get for

I can't even boot in to the Arch system.

Offline

#5 2020-01-13 15:49:56

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,559

Re: [Solved] Missing vmlinux-linux and initrid files after upgrade

So to it while you're chrooted.

Offline

#6 2020-01-13 16:15:21

sundar_ima
Member
Registered: 2011-03-14
Posts: 45

Re: [Solved] Missing vmlinux-linux and initrid files after upgrade

It appears to be the case of partial upgrade. chrooted to arch linux and reinstalled new linux package. Issue solved. Thanks.

Offline

#7 2020-01-13 18:37:17

2ManyDogs
Forum Fellow
Registered: 2012-01-15
Posts: 4,645

Re: [Solved] Missing vmlinux-linux and initrid files after upgrade

Please remember to mark your thread [SOLVED] (edit the title of your first post).

Offline

Board footer

Powered by FluxBB