then when I tried:
Blockquote You may want to check out this link first if the ‘comprehensive’ details here are confusing.
Warning: the link is not that easy either.
Install media versions 17.0.1 and above is using grub as boot mechanism.
Therefore we can use this grub to boot our installed OS’s in case our OS bootloader fail for whatever reason. To do this…
- Take the manjaro livecd and start it up in the same mode as your installation (uefi or bios-legacy).
- Do not boot up to live OS, but press ‘c’ at the menu and we’ll get to the grub prompt (grub>).
- To be sure you’ve started up livecd in the right mode, at grub prompt, check output of
grub> echo $grub_platform
If output is
pc , you’ve booted up in bios-legacy.
If output is
efi , you’ve booted up in uefi.
If you’re in the wrong mode, reboot livecd in the right mode.
- If there are multiple Manjaro’s or if there is a separate boot partition,
See sections below for required command changes, otherwise proceed right here.
And if the bootloader is broken due to a messed up manjaro grub.cfg itself,
the configfile method won’t work as configfile will just bring up the bad grub.cfg itself.
Then we will need to boot to the kernels directly.
grub> search.file /etc/manjaro-release root
grub> probe -u $root --set=abc
grub> ls ($root)/boot/
- copy down kernel and initrd file, say vmlinuz-4.14-x86_64 and initramfs-4.14-x86_64.img
Use the right kernel below like 4.18 or 4.19 or…
grub> linux /boot/vmlinuz-4.19-x86_64 root=UUID=$abc rw
grub> initrd /boot/initramfs-4.19-x86_64.img
at the end the kernel panic apperas again saying that failed to execute /init (error -2)
kernel panic - not syncing: no working init found