Cannot boot after failed grub commandline boot

Hi,

I seem to have edited my grub configuration in a wrong way, and endeavouros does not appear anymore.

I tried to boot from commandline but mistyped the initrd command in

grub> set root=(hd0,1)
grub> linux /boot/vmlinuz root=/dev/sda1
grub> initrd /boot/initrd.img
grub> boot

so I forced shutdown as it was not starting because of no initrd.

Now I can’t boot from grub commandline, I get in emergency mode because:
Job dev-gpt\x2dauto\x2droot.device/start failed with result timeout

Edit it seems like I also forgot the root=/dev/sda1 with and without initrd
Here is what I get


first off start learning to make a backup of a system file before editing it so when you make mistakes its easier to recover.

you could try to arch-chroot off of the live disk and rebuild grub
sudo grub-mkconfig -o /boot/grub/grub.cfg

i haven’t used grub in a while hope this helps

But I would need to boot in order to do that right ?

here watch this and see if it helps

https://discovery.endeavouros.com/system-rescue/fix-arch-linux-boot-with-arch-chroot/2021/12/

2 Likes

I ended up following https://discovery.endeavouros.com/system-rescue/repair-a-non-booting-grub/

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.