Can't find manjaro in grub

good so remove them:

pacman -R mkinitcpio linux510 linux515 manjaro-system mkinitcpio-numlock mkinitcpio-openswap

if there are no errors especially for the linux515 kernel, install it back:

pacman -S mkinitcpio linux510 linux515 manjaro-system mkinitcpio-numlock mkinitcpio-openswap

Done, no errors for linux515. What to do next?

did you installed it back? check with:
mkinitcpio -P && update-grub

[manjaro /]# mkinitcpio -P && update-grub
==> ERROR: No presets found in /etc/mkinitcpio.d

ok i really have no idea, going to ask for help

hey @linux-aarhus can you help us out here?
he is getting:

[manjaro /]# mkinitcpio -P && update-grub
==> ERROR: No presets found in /etc/mkinitcpio.d

we tried reinstalling mkinitcpio and its dependencies with overwrite, it didnt work;
we tried removing it + its dependencies and installing it back with the dependencies, it still doesnt work, help us out on how to fix it, thanks

It’s actually 2am here. Have to be offline :slight_smile:. Thank you for offering help @brahma !

thats ok, we can continue tomorrow

see you then.

Do you have any idea now?

so chroot again and rerun this command now:
pacman-mirrors --fasttrack 5 && pacman -Syyuu
if it installed something, then run this:
mkinitcpio -p linux515

nothing was installed. :neutral_face:

and this returned the same thing?

yep.

[manjaro /]# mkinitcpio -p linux515
/usr/bin/mkinitcpio: line 372: /etc/mkinitcpio.d/linux515.preset: No such file or directory
==> ERROR: Failed to load preset: `/etc/mkinitcpio.d/linux515.preset'

so output from:
grep -E 'failed|Failed|error|Error' /var/log/pacman.log | tail -30
pacman -Qs 'linux5|linux4'

[2022-09-16T01:51:40+0800] [ALPM-SCRIPTLET] call to execv failed (Permission denied)
[2022-09-16T01:51:40+0800] [ALPM-SCRIPTLET] Error connecting: Could not connect: No such file or directory
[2022-09-16T01:51:41+0800] [ALPM-SCRIPTLET] grub-probe: error: cannot find a GRUB drive for /dev/sda1.  Check your device.map.
[2022-09-16T01:51:42+0800] [ALPM-SCRIPTLET] grub-probe: error: cannot find a GRUB drive for /dev/sda1.  Check your device.map.
[2022-09-16T12:29:15+0800] [ALPM-SCRIPTLET] Error connecting: Could not connect: No such file or directory
[2022-09-16T12:29:17+0800] [ALPM-SCRIPTLET] grub-probe: error: cannot find a GRUB drive for /dev/sda1.  Check your device.map.
[2022-09-16T12:29:17+0800] [ALPM-SCRIPTLET] grub-probe: error: cannot find a GRUB drive for /dev/sda1.  Check your device.map.
[2022-09-16T12:29:49+0800] [ALPM-SCRIPTLET] Failed to open file "/sys/devices/system/cpu/microcode/reload": Read-only file system
[2022-09-16T12:30:30+0800] [ALPM-SCRIPTLET] call to execv failed (Permission denied)
[2022-09-16T12:30:30+0800] [ALPM-SCRIPTLET] Error connecting: Could not connect: No such file or directory
[2022-09-16T12:30:32+0800] [ALPM-SCRIPTLET] grub-probe: error: cannot find a GRUB drive for /dev/sda1.  Check your device.map.
[2022-09-16T12:30:32+0800] [ALPM-SCRIPTLET] grub-probe: error: cannot find a GRUB drive for /dev/sda1.  Check your device.map.
[2022-09-16T12:37:25+0800] [ALPM-SCRIPTLET] call to execv failed (Permission denied)
[2022-09-16T12:37:25+0800] [ALPM-SCRIPTLET] Error connecting: Could not connect: No such file or directory
[2022-09-16T12:37:27+0800] [ALPM-SCRIPTLET] grub-probe: error: cannot find a GRUB drive for /dev/sda1.  Check your device.map.
[2022-09-16T12:37:27+0800] [ALPM-SCRIPTLET] grub-probe: error: cannot find a GRUB drive for /dev/sda1.  Check your device.map.
[2022-09-16T12:38:57+0800] [ALPM-SCRIPTLET] Error connecting: Could not connect: No such file or directory
[2022-09-16T12:38:58+0800] [ALPM-SCRIPTLET] grub-probe: error: cannot find a GRUB drive for /dev/sda1.  Check your device.map.
[2022-09-16T12:38:59+0800] [ALPM-SCRIPTLET] grub-probe: error: cannot find a GRUB drive for /dev/sda1.  Check your device.map.
[2022-09-16T12:39:30+0800] [ALPM-SCRIPTLET] call to execv failed (Permission denied)
[2022-09-16T12:39:30+0800] [ALPM-SCRIPTLET] Error connecting: Could not connect: No such file or directory
[2022-09-16T12:39:31+0800] [ALPM-SCRIPTLET] grub-probe: error: cannot find a GRUB drive for /dev/sda1.  Check your device.map.
[2022-09-16T12:39:32+0800] [ALPM-SCRIPTLET] grub-probe: error: cannot find a GRUB drive for /dev/sda1.  Check your device.map.
[2022-09-16T13:03:45+0800] [ALPM-SCRIPTLET] Error connecting: Could not connect: No such file or directory
[2022-09-16T13:03:47+0800] [ALPM-SCRIPTLET] grub-probe: error: cannot find a GRUB drive for /dev/sda1.  Check your device.map.
[2022-09-16T13:03:47+0800] [ALPM-SCRIPTLET] grub-probe: error: cannot find a GRUB drive for /dev/sda1.  Check your device.map.
[2022-09-16T13:04:35+0800] [ALPM-SCRIPTLET] call to execv failed (Permission denied)
[2022-09-16T13:04:35+0800] [ALPM-SCRIPTLET] Error connecting: Could not connect: No such file or directory
[2022-09-16T13:04:36+0800] [ALPM-SCRIPTLET] grub-probe: error: cannot find a GRUB drive for /dev/sda1.  Check your device.map.
[2022-09-16T13:04:36+0800] [ALPM-SCRIPTLET] grub-probe: error: cannot find a GRUB drive for /dev/sda1.  Check your device.map.
local/linux510 5.10.141-1
    The Linux510 kernel and modules
local/linux510-headers 5.10.141-1
    Header files and scripts for building modules for Linux510 kernel
local/linux515 5.15.65-1
    The Linux515 kernel and modules
local/linux515-headers 5.15.65-1
    Header files and scripts for building modules for Linux515 kernel

remove the kernels:
pacman -R linux510 linux510-headers linux515 linux515-headers
and then post output from:

grep -E 'failed|Failed' /var/log/pacman.log | tail -30
ls /etc/mkinitcpio.d/*.preset
ls /boot/initramfs-*
ls /boot/vmlinuz-*
ls /usr/lib/modules/*
[2022-09-15T15:23:59+0800] [ALPM-SCRIPTLET] call to execv failed (Permission denied)
[2022-09-15T16:32:34+0800] [ALPM-SCRIPTLET] call to execv failed (Permission denied)
[2022-09-15T16:33:00+0800] [ALPM-SCRIPTLET] call to execv failed (Permission denied)
[2022-09-15T16:35:45+0800] [ALPM-SCRIPTLET] call to execv failed (Permission denied)
[2022-09-15T17:27:53+0800] [ALPM-SCRIPTLET] call to execv failed (Permission denied)
[2022-09-15T18:04:58+0800] [ALPM-SCRIPTLET] call to execv failed (Permission denied)
[2022-09-15T18:05:46+0800] [ALPM-SCRIPTLET] call to execv failed (Permission denied)
[2022-09-15T22:25:08+0800] [ALPM-SCRIPTLET] call to execv failed (Permission denied)
[2022-09-16T01:05:22+0800] [ALPM-SCRIPTLET] call to execv failed (Permission denied)
[2022-09-16T01:38:30+0800] [ALPM-SCRIPTLET] Failed to open file "/sys/devices/system/cpu/microcode/reload": Read-only file system
[2022-09-16T01:38:55+0800] [ALPM-SCRIPTLET] call to execv failed (Permission denied)
[2022-09-16T01:50:58+0800] [ALPM-SCRIPTLET] Failed to open file "/sys/devices/system/cpu/microcode/reload": Read-only file system
[2022-09-16T01:51:40+0800] [ALPM-SCRIPTLET] call to execv failed (Permission denied)
[2022-09-16T12:29:49+0800] [ALPM-SCRIPTLET] Failed to open file "/sys/devices/system/cpu/microcode/reload": Read-only file system
[2022-09-16T12:30:30+0800] [ALPM-SCRIPTLET] call to execv failed (Permission denied)
[2022-09-16T12:37:25+0800] [ALPM-SCRIPTLET] call to execv failed (Permission denied)
[2022-09-16T12:39:30+0800] [ALPM-SCRIPTLET] call to execv failed (Permission denied)
[2022-09-16T13:04:35+0800] [ALPM-SCRIPTLET] call to execv failed (Permission denied)
[manjaro /]# ls /etc/mkinitcpio.d/*.preset
ls: cannot access '/etc/mkinitcpio.d/*.preset': No such file or directory
[manjaro /]# ls /boot/initramfs-*
ls: cannot access '/boot/initramfs-*': No such file or directory
[manjaro /]# ls /boot/vmlinuz-*
ls: cannot access '/boot/vmlinuz-*': No such file or directory
[manjaro /]# ls /usr/lib/modules/*
ls: cannot access '/usr/lib/modules/*': No such file or directory

for this run:
chmod +x /usr/share/libalpm/scripts/gtk-update-icon-cache
pacman -S gtk3

now that we cleared all kernels, install the 515:
pacman -S linux515
and then check with:
mkinitcpio -P

It still occurs after chmod and install gtk3.

[manjaro /]# mkinitcpio -P
==> ERROR: No presets found in /etc/mkinitcpio.d

so post output from:
pacman -Sii mkinitcpio