You are not logged in.

#1 2019-11-21 10:43:40

gokus
Member
Registered: 2019-01-02
Posts: 22

[SOLVED]Grub says i need to load kernel first

I updated my arch yesterday and since then im not able to boot anymore. After selecting arch from grub menu i get the following message

"Loading Linux linux ...
error: file 'vmlinuz-linux' not found.
Loading initial ramdisk ...
error: you need to load the kernel first.

Press any key to continue"

Same happens when trying to boot with fallback initramfs.

I can only use grub command line and from there i can see my /boot/ is empty but that's probably due to partition not being mounted?

Anything i can do from a grub command line that u guys need i will post the output in screenshots .

Thanks.

Last edited by gokus (2019-11-21 15:40:04)

Offline

#2 2019-11-21 10:47:22

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 22,844

Re: [SOLVED]Grub says i need to load kernel first

Well if you didn't have your /boot mounted when you did the update that's normal and unsurprising. Chroot in from a livedisk with properly mounted partitions and run

pacman -Syu linux

Offline

#3 2019-11-21 10:51:52

gokus
Member
Registered: 2019-01-02
Posts: 22

Re: [SOLVED]Grub says i need to load kernel first

V1del wrote:

Well if you didn't have your /boot mounted when you did the update that's normal and unsurprising. Chroot in from a livedisk with properly mounted partitions and run

pacman -Syu linux

  Thanks for your fast answer sir.
There is no way for me to get my pc to boot without chrooting in my system? Since i only have one pc at my disposal at the moment and its this one

Offline

#4 2019-11-21 11:33:31

EndUserOnly
Member
Registered: 2017-05-31
Posts: 81

Re: [SOLVED]Grub says i need to load kernel first

You can "arch-chroot" with one system and a boot disk. Boot-up using the boot disk (install cd) and instead of doing a install - chroot, and then run pacman.

https://wiki.archlinux.org/index.php/Change_root

Last edited by EndUserOnly (2019-11-21 11:35:49)

Offline

#5 2019-11-21 11:37:16

gokus
Member
Registered: 2019-01-02
Posts: 22

Re: [SOLVED]Grub says i need to load kernel first

EndUserOnly wrote:

You can "arch-chroot" with one system and a boot disk. Boot-up using the boot disk (install cd) and instead of doing a install - chroot, and then run pacman.

https://wiki.archlinux.org/index.php/Change_root

I mean, I don't have a way of making an arch bootable usb or cd since this is the only pc i have

Offline

#6 2019-11-21 12:30:06

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 22,844

Re: [SOLVED]Grub says i need to load kernel first

You could identify the exact path and boot the image from the actual partition with GRUB, I haven't had much of a need to do that, so you'd have to do some reading on how to access your / and chainload from GRUBs console, on a random googler, this might help

Offline

#7 2019-11-21 15:39:43

gokus
Member
Registered: 2019-01-02
Posts: 22

Re: [SOLVED]Grub says i need to load kernel first

Solved. I did exactly what V1del said.

V1del wrote:

Well if you didn't have your /boot mounted when you did the update that's normal and unsurprising. Chroot in from a livedisk with properly mounted partitions and run

pacman -Syu linux

Booted from a live media, (rooted android in my case) mounted partitions with

 mount /dev/sda3 /mnt and mount /dev/sda1 /mnt/boot

Arch-chrooted in my system and did

pacman -Syu linux

Unmounted partitions and rebooted.

Thanks everyone, lock o/

*Pro tip: always have arch live cd or usb with u big_smile*

Offline

#8 2019-11-21 15:56:30

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 22,844

Re: [SOLVED]Grub says i need to load kernel first

Don't forget to persist that /boot partition in your fstab with a persistent identifier so that you won't have to unnecessarily do this again the next time the kernel updates.

Offline

#9 2019-11-21 17:33:30

gokus
Member
Registered: 2019-01-02
Posts: 22

Re: [SOLVED]Grub says i need to load kernel first

Just did that, thank you very much for your help sir.

Offline

Board footer

Powered by FluxBB