Manjaro without kernel after last update... SOLVED..!

Greetings to everyone in the forum…

It is customary for me that when I update the OS to a new release something happens with the kernels and my nvidia.
This time things went much further than imagined, the Linux510 kernel simply disappeared, which by the way was the only one installed and therefore the Manjaro entry disappeared from the grub.
By chrooting after doing an update and everything unimaginable, the result is that when trying to install any available kernel the answer is simply: error: no targets specified (use -h for help).

I summarize what I have advanced so far…

Because sudo “mhwd-kernel -i linuxXX” was returning the error:
“No targets specified (use -h for help)”
when trying with all available kernels, I used
“Pacman -S linux419 linux419-headers”
and I was able to install said kernel and update GRUB, the only error it showed was:
"grub-probe: error: cannot find a GRUB drive for /dev/sda1. Check your device.map.
grub-probe: error: cannot find a GRUB drive for /dev/sda1. Check your device.map. "
(I assume you were referring to the USB drive on the live CD).
Immediately afterwards, the entrance to Manjaro reappeared but when starting it only shows a black screen with a cursor and there it remained.
Again in “chroot” I installed:
“Pacman -S linux513 linux513-headers”
with the same results but this time it showed the two entries (linux419 and linux513), and when starting, black screen with cursor anyway.
Next I uninstalled “linux419” and installed:
“Pacman -S linux510 linux510-headers”
It showed the two entries (linux510 and linux513) with the same results.
Obviously the problem goes further and apparently I’m stuck with the graphics, so any help is welcome.

PS: I never mentioned the fact that I have Windows10 installed, that the boot is not by UEFI and that the GRUB always showed the corresponding entry.

Hi @internauta2000,

From the chroot environment, try updating the mirrors first:

sudo pacman-mirrors --fasttrack 5

To select and use the 5 fastest (not necessarily closest) mirrors.

Now update the package list:

sudo pacman -Syyu

Followed by trying to install the kernel again:

sudo mhwd-kernel --install linux515

If that still doesn’t work, and since you’re comfortable with/able to chroot, I’m going to go ahead and ask you to please provide the output, from the chroot environment, of the following:

mhwd-kernel --list
  • And:
mhwd-kernel --listinstalled
  • Also:
lsblk

While I might not be the one to solve your specific riddle, anyone else would need the information as well.

Hope you manage!

Thank you for your interest in help me… This is the output:

sudo su
[manjaro-gnome manjaro]# manjaro-chroot -a
grub-probe: error: cannot find a GRUB drive for /dev/sdc1. Check your device.map.
grub-probe: error: cannot find a GRUB drive for /dev/sdc1. Check your device.map.
==> Mounting (ManjaroLinux) [/dev/sda3]
→ mount: [/mnt]
→ mount: [/mnt/home]
[manjaro-gnome /]# sudo pacman-mirrors --fasttrack 5
::INFO Downloading mirrors from Manjaro
::INFO => Mirror pool: https://repo.manjaro.org/mirrors.json
::INFO => Mirror status: http://repo.manjaro.org/status.json
::INFO Using default mirror file
::INFO Querying mirrors - This may take some time
1.288 Chile : http://manjaro.dcc.uchile.cl/
1.778 United_Kingdom : Index of /manjaro/repos
1.393 United_Kingdom : Index of /manjaro/repos
… South_Africa : Index of /mirrors/manjaro.org
1.317 United_Kingdom : https://www.mirrorservice.org/sites/repo.manjaro.org/re
1.211 Poland : Index of /manjaro
… Poland : ftp://ftp.vectranet.pl/manjaro/
::INFO Writing mirror list
::Chile : Index of /stable/
::United_Kingdom : https://www.mirrorservice.org/sites/repo.manjaro.org/repos/sta
::United_Kingdom : Index of /manjaro/repos/stable
::Poland : Index of /manjaro/stable
::South_Africa : Index of /mirrors/manjaro.org/stable
::INFO Mirror list generated and saved to: /etc/pacman.d/mirrorlist
[manjaro-gnome /]# sudo pacman -Syyu
:: Synchronizing package databases…
core 170.7 KiB 180 KiB/s 00:01 [######################] 100%
extra 1915.6 KiB 1175 KiB/s 00:02 [######################] 100%
community 6.7 MiB 934 KiB/s 00:07 [######################] 100%
multilib 176.1 KiB 330 KiB/s 00:01 [######################] 100%
:: Starting full system upgrade…
there is nothing to do
[manjaro-gnome /]# sudo mhwd-kernel --install linux515
:: Synchronizing package databases…
core 170.7 KiB 214 KiB/s 00:01 [######################] 100%
extra 1915.6 KiB 862 KiB/s 00:02 [######################] 100%
community 6.7 MiB 832 KiB/s 00:08 [######################] 100%
multilib 176.1 KiB 268 KiB/s 00:01 [######################] 100%
resolving dependencies…
looking for conflicting packages…

Packages (2) linux515-5.15.2-2 linux515-headers-5.15.2-2

Total Download Size: 130.64 MiB
Total Installed Size: 236.07 MiB

:: Proceed with installation? [Y/n] y
:: Retrieving packages…
linux515-5.15.2-… 99.6 MiB 951 KiB/s 01:47 [######################] 100%
linux515-headers… 31.0 MiB 1186 KiB/s 00:27 [######################] 100%
Total (2/2) 130.6 MiB 996 KiB/s 02:14 [######################] 100%
(2/2) checking keys in keyring [######################] 100%
(2/2) checking package integrity [######################] 100%
(2/2) loading package files [######################] 100%
(2/2) checking for file conflicts [######################] 100%
(2/2) checking available disk space [######################] 100%
:: Processing package changes…
(1/2) installing linux515 [######################] 100%
Optional dependencies for linux515
crda: to set the correct wireless channels of your country [installed]
(2/2) installing linux515-headers [######################] 100%
:: Running post-transaction hooks…
(1/5) Arming ConditionNeedsUpdate…
(2/5) Updating module dependencies…
(3/5) Updating linux initcpios…
==> Building image from preset: /etc/mkinitcpio.d/linux515.preset: ‘default’
→ -k /boot/vmlinuz-5.15-x86_64 -c /etc/mkinitcpio.conf -g /boot/initramfs-5.15-x86_64.img
==> Starting build: 5.15.2-2-MANJARO
→ Running build hook: [base]
→ Running build hook: [udev]
→ Running build hook: [autodetect]
→ Running build hook: [modconf]
→ Running build hook: [block]
→ Running build hook: [keyboard]
→ Running build hook: [keymap]
→ Running build hook: [filesystems]
→ Running build hook: [fsck]
==> Generating module dependencies
==> Creating gzip-compressed initcpio image: /boot/initramfs-5.15-x86_64.img
==> Image generation successful
==> Building image from preset: /etc/mkinitcpio.d/linux515.preset: ‘fallback’
→ -k /boot/vmlinuz-5.15-x86_64 -c /etc/mkinitcpio.conf -g /boot/initramfs-5.15-x86_64-fallback.img -S autodetect
==> Starting build: 5.15.2-2-MANJARO
→ Running build hook: [base]
→ Running build hook: [udev]
→ Running build hook: [modconf]
→ Running build hook: [block]
→ Running build hook: [keyboard]
→ Running build hook: [keymap]
→ Running build hook: [filesystems]
→ Running build hook: [fsck]
==> Generating module dependencies
==> Creating gzip-compressed initcpio image: /boot/initramfs-5.15-x86_64-fallback.img
==> Image generation successful
(4/5) Updating Kernel initcpios for Nvidia-DRM…
(5/5) Updating Grub-Bootmenu
Generating grub configuration file …
Found theme: /boot/grub/themes/Vimix/theme.txt
Found linux image: /boot/vmlinuz-5.15-x86_64
Found initrd image: /boot/intel-ucode.img /boot/initramfs-5.15-x86_64.img
Found initrd fallback image: /boot/initramfs-5.15-x86_64-fallback.img
Found linux image: /boot/vmlinuz-5.13-x86_64
Found initrd image: /boot/intel-ucode.img /boot/initramfs-5.13-x86_64.img
Found initrd fallback image: /boot/initramfs-5.13-x86_64-fallback.img
Found linux image: /boot/vmlinuz-5.10-x86_64
Found initrd image: /boot/intel-ucode.img /boot/initramfs-5.10-x86_64.img
Found initrd fallback image: /boot/initramfs-5.10-x86_64-fallback.img
Warning: os-prober will be executed to detect other bootable partitions.
Its output will be used to detect bootable binaries on them and create new boot entries.
grub-probe: error: cannot find a GRUB drive for /dev/sdc1. Check your device.map.
grub-probe: error: cannot find a GRUB drive for /dev/sdc1. Check your device.map.
Found Windows 10 on /dev/sda1
done
[manjaro-gnome /]# mhwd-kernel --list
available kernels:

  • linux414
  • linux419
  • linux44
  • linux49
  • linux510
  • linux513
  • linux514
  • linux515
  • linux516
  • linux54
  • linux510-rt
  • linux515-rt
    [manjaro-gnome /]# mhwd-kernel --listinstalled
    Currently running: 5.13.19-2-MANJARO (linux513)
    The following kernels are installed in your system:
  • linux510
  • linux513
  • linux515
    [manjaro-gnome /]# lsblk
    NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
    loop0 7:0 0 125.4M 1 loop
    loop1 7:1 0 582M 1 loop
    loop2 7:2 0 943.5M 1 loop
    loop3 7:3 0 743.4M 1 loop
    sda 8:0 0 953.9G 0 disk
    |-sda1 8:1 0 549M 0 part
    |-sda2 8:2 0 243.6G 0 part
    |-sda3 8:3 0 123.8G 0 part /
    -sda4 8:4 0 585.9G 0 part /home sdb 8:16 0 186.3G 0 disk -sdb1 8:17 0 186.3G 0 part
    sdc 8:32 1 7.5G 0 disk
    |-sdc1 8:33 1 2.4G 0 part
    `-sdc2 8:34 1 4M 0 part
    sr0 11:0 1 1024M 0 rom

Now I’m going to restart and re-edit the post with the result…

can you return after

sudo ls /etc/mkinitcpio.d/*.preset
sudo mhwd-kernel -li
sudo ls /usr/lib/modules/

As expected, the result of the above was the same.

New output:

sudo su
[manjaro-gnome manjaro]# manjaro-chroot -a
grub-probe: error: cannot find a GRUB drive for /dev/sdc1. Check your device.map.
grub-probe: error: cannot find a GRUB drive for /dev/sdc1. Check your device.map.
==> Mounting (ManjaroLinux) [/dev/sda3]
→ mount: [/mnt]
→ mount: [/mnt/home]
[manjaro-gnome /]# sudo ls /etc/mkinitcpio.d/*.preset
/etc/mkinitcpio.d/linux510.preset /etc/mkinitcpio.d/linux515.preset
/etc/mkinitcpio.d/linux513.preset
[manjaro-gnome /]# sudo mhwd-kernel -li
Currently running: 5.13.19-2-MANJARO (linux513)
The following kernels are installed in your system:

  • linux510
  • linux513
  • linux515
    [manjaro-gnome /]# sudo ls /usr/bin/modules/
    ls: cannot access ‘/usr/bin/modules/’: No such file or directory

That looks like a completely different installation. If it’s not that, then I’m officially out of my depth…

Thankful anyway

manjaro-gnome /]# ls /usr/lib/modules
5.10.79-1-MANJARO 5.15.2-2-MANJARO extramodules-5.13-MANJARO
5.13.19-2-MANJARO extramodules-5.10-MANJARO extramodules-5.15-MANJARO

==> reboot on kernel510 or 515 , and remove older version kernel 5.13

Ok… After rebooting the system I tried to start the OS with linux515 and then with 510, the result was the same.
Now I am in Live USB with chroot and when trying to uninstall linux513 it is the same result as above, which means that it never changed the kernel when trying a new start…

[manjaro-gnome /]# mhwd-kernel -r linux513
Error: You can’t remove your current kernel.

isn’t it /usr/lib/modules ?

what you get exactly on boot with kernel 5.15 or 5.10

  • does it start y/n
  • does any modules failed ?
  • something else ?
  • have you TTY from boot on your disk ? ( not USB )
  • does it start y/n:
    When trying to boot with 513, 515 or 510, the screen remains black with flashing cursor.
  • does any modules failed ?
    everybody.
  • something else ?
    I do not understand.
  • have you TTY from boot on your disk ? ( not USB )
    I have not tried before.

screen

for TTY , try to open with Ctrl+Alt+F2 to F7,
this come from changes from drivers nvidia

Ok… In TTY with linux515

can you return

sudo mhwd -li
sudo mhwd-kernel -li

Ok, I already uninstalled the 513 from TTY

mhwd -li
video-nvidia 2021.11.04 false PCI

mhwd-kernel -li
linux510
linux515

they try

pacman -Syy ( check for network is ok )
mhwd -r pci video-nvidia 
mhwd -i pci video-nvidia-470xx

Very very very thank you Stephane for your time and invaluable help… !!!
All fine after executing your last instructions.

Health and long life to you.

Closed topic… :grin:

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