You are not logged in.

#1 2020-06-11 17:51:39

abhixec
Member
Registered: 2019-07-08
Posts: 26

[Solved] Archlinux doesn't boot after latest update

I am getting "Loading Linux linux ...
error: Premature end of file /boot/vmlinuz-linux
Loading initial ramdisk ...
error: you need to load the kernel first"

I arch-chroot-ed into my  partition from usb. Ran mkinitcpio -P
tried pacman -Syyu linux mkinitcpio systemd  and still end up getting the above error.

Is there anything else that I need to try to get my system up and running again?

Solution: What happened was for some reason the linux image didn't get updated in the /boot.
mounted my arch partition to /mnt and boot to /mnt/boot
and then ran mkinitcpio -P, reboot and it worked.

Last edited by abhixec (2020-06-11 18:37:48)

Offline

#2 2020-06-11 18:06:32

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,518
Website

Re: [Solved] Archlinux doesn't boot after latest update

Is your boot partition full?  Did you see any errors when the kernel was copied to the boot partition?  (I suppose I should also ask if you have a seperate boot partition first).

From the chroot, check that /usr/lib/modules/5.6.15-arch1-1/vmlinuz and /boot/vmlinuz-linux are identical (e.g., compare md5sums).

edit: obviously this needs to be changed the current kernel.

Last edited by Trilby (2020-06-11 18:45:13)


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#3 2020-06-11 18:13:41

abhixec
Member
Registered: 2019-07-08
Posts: 26

Re: [Solved] Archlinux doesn't boot after latest update

Trilby wrote:

Is your boot partition full?  Did you see any errors when the kernel was copied to the boot partition?  (I suppose I should also ask if you have a seperate boot partition first).

From the chroot, check that /usr/lib/modules/5.6.15-arch1-1/vmlinuz and /boot/vmlinuz-linux are identical (e.g., compare md5sums).

No I don't have separate boot partition. Since boot isn't in a separate partition and i checked the ssd that arch is on is at 50% capacity (so not full)
Checked md5sum they are the same

boot was in different partition(my bad for thinking that it was in the same one
I mounted that to boot in arch-chroot, ran the mkinitcpio since like you said the md5sums were different
rebooted and it worked thanks for your help!
Much appreciated.

Last edited by abhixec (2020-06-11 18:35:54)

Offline

#4 2020-06-11 18:37:32

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

Re: [Solved] Archlinux doesn't boot after latest update

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

Offline

Board footer

Powered by FluxBB