Pacman does seem to do the trick, but then I run into the old problem.
[manjaro /]# pacman -S linux510 linux518
resolving dependencies...
looking for conflicting packages...
Packages (2) linux510-5.10.124-1 linux518-5.18.6-1
Total Installed Size: 211.43 MiB
:: Proceed with installation? [Y/n] y
(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 linux510 [####################################################################] 100%
Optional dependencies for linux510
wireless-regdb: to set the correct wireless channels of your country [installed]
(2/2) installing linux518 [####################################################################] 100%
Optional dependencies for linux518
wireless-regdb: to set the correct wireless channels of your country [installed]
ldconfig: /usr/lib/libhiredis.so is for unknown machine 40.
ldconfig: /usr/lib/libpollux.so is for unknown machine 40.
ldconfig: /usr/lib/libhiredis.so.0.13 is for unknown machine 40.
:: Running post-transaction hooks...
(1/5) Arming ConditionNeedsUpdate...
(2/5) Updating module dependencies...
depmod: ERROR: could not open directory /lib/modules/5.10.124-1-MANJARO: No such file or directory
depmod: FATAL: could not search modules: No such file or directory
depmod: ERROR: could not open directory /lib/modules/5.18.6-1-MANJARO: No such file or directory
depmod: FATAL: could not search modules: No such file or directory
(3/5) Updating linux initcpios...
==> Building image from preset: /etc/mkinitcpio.d/linux510.preset: 'default'
-> -k /boot/vmlinuz-5.10-x86_64 -c /etc/mkinitcpio.conf -g /boot/initramfs-5.10-x86_64.img
==> ERROR: '/lib/modules/5.10.124-1-MANJARO' is not a valid kernel module directory
==> Building image from preset: /etc/mkinitcpio.d/linux510.preset: 'fallback'
-> -k /boot/vmlinuz-5.10-x86_64 -c /etc/mkinitcpio.conf -g /boot/initramfs-5.10-x86_64-fallback.img -S autodetect
==> ERROR: '/lib/modules/5.10.124-1-MANJARO' is not a valid kernel module directory
==> Building image from preset: /etc/mkinitcpio.d/linux518.preset: 'default'
-> -k /boot/vmlinuz-5.18-x86_64 -c /etc/mkinitcpio.conf -g /boot/initramfs-5.18-x86_64.img
==> ERROR: '/lib/modules/5.18.6-1-MANJARO' is not a valid kernel module directory
==> Building image from preset: /etc/mkinitcpio.d/linux518.preset: 'fallback'
-> -k /boot/vmlinuz-5.18-x86_64 -c /etc/mkinitcpio.conf -g /boot/initramfs-5.18-x86_64-fallback.img -S autodetect
==> ERROR: '/lib/modules/5.18.6-1-MANJARO' is not a valid kernel module directory
error: command failed to execute correctly
(4/5) Updating Kernel initcpios for Nvidia-DRM...
(5/5) Updating Grub-Bootmenu
Generating grub configuration file ...
Found theme: /usr/share/grub/themes/manjaro/theme.txt
Found linux image: /boot/vmlinuz-5.18-x86_64
Found initrd image: /boot/intel-ucode.img
Found linux image: /boot/vmlinuz-5.10-x86_64
Found initrd image: /boot/intel-ucode.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
Found memtest86+ image: /boot/memtest86+/memtest.bin
done
[manjaro /]# mhwd-kernel -li
Currently running: 5.15.48-1-MANJARO (linux515)
The following kernels are installed in your system:
* linux510
* linux518
[manjaro /]# mhwd -a pci nonfree 0300
> Skipping already installed config 'video-nvidia' for device: 0000:01:00.0 (0300:10de:1c02) Display controller nVidia Corporation GP106 [GeForce GTX 1060 3GB]
[manjaro /]# update-grub
Generating grub configuration file ...
Found theme: /usr/share/grub/themes/manjaro/theme.txt
Found linux image: /boot/vmlinuz-5.18-x86_64
Found initrd image: /boot/intel-ucode.img
Found linux image: /boot/vmlinuz-5.10-x86_64
Found initrd image: /boot/intel-ucode.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
Found memtest86+ image: /boot/memtest86+/memtest.bin
done
[manjaro /]# mkinitcpio -P
==> Building image from preset: /etc/mkinitcpio.d/linux510.preset: 'default'
-> -k /boot/vmlinuz-5.10-x86_64 -c /etc/mkinitcpio.conf -g /boot/initramfs-5.10-x86_64.img
==> ERROR: '/lib/modules/5.10.124-1-MANJARO' is not a valid kernel module directory
==> Building image from preset: /etc/mkinitcpio.d/linux510.preset: 'fallback'
-> -k /boot/vmlinuz-5.10-x86_64 -c /etc/mkinitcpio.conf -g /boot/initramfs-5.10-x86_64-fallback.img -S autodetect
==> ERROR: '/lib/modules/5.10.124-1-MANJARO' is not a valid kernel module directory
==> Building image from preset: /etc/mkinitcpio.d/linux518.preset: 'default'
-> -k /boot/vmlinuz-5.18-x86_64 -c /etc/mkinitcpio.conf -g /boot/initramfs-5.18-x86_64.img
==> ERROR: '/lib/modules/5.18.6-1-MANJARO' is not a valid kernel module directory
==> Building image from preset: /etc/mkinitcpio.d/linux518.preset: 'fallback'
-> -k /boot/vmlinuz-5.18-x86_64 -c /etc/mkinitcpio.conf -g /boot/initramfs-5.18-x86_64-fallback.img -S autodetect
==> ERROR: '/lib/modules/5.18.6-1-MANJARO' is not a valid kernel module directory
[manjaro /]#
this is a mess…
so uninstall them again: pacman -R linux510 linux518
then run again: update-grub mkinitcpio -P
and post again output from these: ls /etc/mkinitcpio.d/* sudo ls /boot/initramfs-* sudo ls /boot/vmlinuz-* sudo ls /usr/lib/modules/*
Yup, it sure is a mess. And as not very nice as spending Sunday evening fixing my computer is, I very much appreciate you helping fix somobody else’s. So Thanks for that.
Anyway, the output of it all
[manjaro /]# pacman -R linux510 linux518
checking dependencies...
Packages (2) linux510-5.10.124-1 linux518-5.18.6-1
Total Removed Size: 211.43 MiB
:: Do you want to remove these packages? [Y/n] y
:: Running pre-transaction hooks...
(1/1) Removing linux initcpios...
:: Processing package changes...
(1/2) removing linux518 [####################################################################] 100%
(2/2) removing linux510 [####################################################################] 100%
ldconfig: /usr/lib/libhiredis.so is for unknown machine 40.
ldconfig: /usr/lib/libpollux.so is for unknown machine 40.
ldconfig: /usr/lib/libhiredis.so.0.13 is for unknown machine 40.
:: Running post-transaction hooks...
(1/4) Arming ConditionNeedsUpdate...
(2/4) Updating module dependencies...
(3/4) Updating Kernel initcpios for Nvidia-DRM...
(4/4) Updating Grub-Bootmenu
Generating grub configuration file ...
Found theme: /usr/share/grub/themes/manjaro/theme.txt
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
Found memtest86+ image: /boot/memtest86+/memtest.bin
done
[manjaro /]# update-grub
Generating grub configuration file ...
Found theme: /usr/share/grub/themes/manjaro/theme.txt
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
Found memtest86+ image: /boot/memtest86+/memtest.bin
done
[manjaro /]# mkinitcpio -P
==> ERROR: No presets found in /etc/mkinitcpio.d
[manjaro /]# ls /etc/mkinitcpio.d/*.preset
ls: cannot access '/etc/mkinitcpio.d/*.preset': No such file or directory
[manjaro /]# sudo ls /boot/initramfs-*
ls: cannot access '/boot/initramfs-*': No such file or directory
[manjaro /]# sudo ls /boot/vmlinuz-*
ls: cannot access '/boot/vmlinuz-*': No such file or directory
[manjaro /]# sudo ls /usr/lib/modules/*
ls: cannot access '/usr/lib/modules/*': No such file or directory
it cannot find the directories… are you chrooted properly?
close terminal, open it again, and chroot again: sudo manjaro-chroot -a
then output from: ls /etc/mkinitcpio.d/* ls /boot/initramfs-* ls /boot/vmlinuz-* ls /usr/lib/modules/*
I would think I am, but just in case, I just opened a new terminal
[manjaro@manjaro ~]$ sudo 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/sdb1]
--> mount: [/mnt]
--> mount: [/mnt/home/pina/windows]
[manjaro /]# ls /etc/mkinitcpio.d/*
/etc/mkinitcpio.d/linux510.preset.pacsave /etc/mkinitcpio.d/linux54.preset.pacsave /etc/mkinitcpio.d/linux58.preset.pacsave
/etc/mkinitcpio.d/linux518.preset.pacsave /etc/mkinitcpio.d/linux56.preset.pacsave /etc/mkinitcpio.d/linux59.preset.pacsave
[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
[manjaro /]#
manjaro /]# rm /etc/mkinitcpio.d/.preset.pacsave
[manjaro /]# ls /etc/mkinitcpio.d/
ls: cannot access ‘/etc/mkinitcpio.d/*’: No such file or directory
[manjaro /]#
it still won’t let me, so I am using pacman again to install.
[manjaro /]# mhwd-kernel -i linux510
:: Synchronizing package databases...
core 167.4 KiB 706 KiB/s 00:00 [####################################################################] 100%
extra 1864.1 KiB 13.6 MiB/s 00:00 [####################################################################] 100%
community 7.0 MiB 44.8 MiB/s 00:00 [####################################################################] 100%
multilib 175.5 KiB 5.19 MiB/s 00:00 [####################################################################] 100%
error: no targets specified (use -h for help)
[manjaro /]# pacman -S linux510
resolving dependencies...
looking for conflicting packages...
Packages (1) linux510-5.10.124-1
Total Installed Size: 78.15 MiB
:: Proceed with installation? [Y/n] y
(1/1) checking keys in keyring [####################################################################] 100%
(1/1) checking package integrity [####################################################################] 100%
(1/1) loading package files [####################################################################] 100%
(1/1) checking for file conflicts [####################################################################] 100%
(1/1) checking available disk space [####################################################################] 100%
:: Processing package changes...
(1/1) installing linux510 [####################################################################] 100%
Optional dependencies for linux510
wireless-regdb: to set the correct wireless channels of your country [installed]
ldconfig: /usr/lib/libhiredis.so is for unknown machine 40.
ldconfig: /usr/lib/libpollux.so is for unknown machine 40.
ldconfig: /usr/lib/libhiredis.so.0.13 is for unknown machine 40.
:: Running post-transaction hooks...
(1/5) Arming ConditionNeedsUpdate...
(2/5) Updating module dependencies...
depmod: ERROR: could not open directory /lib/modules/5.10.124-1-MANJARO: No such file or directory
depmod: FATAL: could not search modules: No such file or directory
(3/5) Updating linux initcpios...
==> Building image from preset: /etc/mkinitcpio.d/linux510.preset: 'default'
-> -k /boot/vmlinuz-5.10-x86_64 -c /etc/mkinitcpio.conf -g /boot/initramfs-5.10-x86_64.img
==> ERROR: '/lib/modules/5.10.124-1-MANJARO' is not a valid kernel module directory
==> Building image from preset: /etc/mkinitcpio.d/linux510.preset: 'fallback'
-> -k /boot/vmlinuz-5.10-x86_64 -c /etc/mkinitcpio.conf -g /boot/initramfs-5.10-x86_64-fallback.img -S autodetect
==> ERROR: '/lib/modules/5.10.124-1-MANJARO' is not a valid kernel module directory
error: command failed to execute correctly
(4/5) Updating Kernel initcpios for Nvidia-DRM...
(5/5) Updating Grub-Bootmenu
Generating grub configuration file ...
Found theme: /usr/share/grub/themes/manjaro/theme.txt
Found linux image: /boot/vmlinuz-5.10-x86_64
Found initrd image: /boot/intel-ucode.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
Found memtest86+ image: /boot/memtest86+/memtest.bin
done
[manjaro /]#
The result of what you asked earlier, after the install
[manjaro /]# ls /etc/mkinitcpio.d/*
/etc/mkinitcpio.d/linux510.preset
[manjaro /]# ls /boot/initramfs-*
ls: cannot access '/boot/initramfs-*': No such file or directory
[manjaro /]# ls /boot/vmlinuz-*
/boot/vmlinuz-5.10-x86_64
[manjaro /]# ls /usr/lib/modules/*
/usr/lib/modules/5.10.124-1-MANJARO:
extramodules kernelbase modules.alias.bin modules.builtin.alias.bin modules.builtin.modinfo modules.dep.bin modules.order modules.symbols pkgbase
kernel modules.alias modules.builtin modules.builtin.bin modules.dep modules.devname modules.softdep modules.symbols.bin vmlinuz
/usr/lib/modules/extramodules-5.10-MANJARO:
version
[manjaro /]#