Trying to update, changing kernel, now it cannot boot

I was trying to update Manjaro. But it doesn’t work, it has conflict with nvidia and stuff, I forgot the exact message.

I went to the forum and found something about kernel not supported anymore and install 510 instead.

So I open Manjaro Setting Manager and tried to install kernel 510, pressed install, it’s processing, then it said “done” but the kernel is not installed.
Then I reopen the settings manager, but it still not installed, so I thought, “maybe I need to uninstall current kernel.

So I uninstall the current kernel, the default one when installing manjaro, and install 510. It’s completed and it said it’s actually installed.

But after I restarted it wont boot.

And then I chroot-ed and do pacman -Syyu, finally there is no conflict anymore. Update finished but I still can’t boot.

Now I’m lost as to what I’m supposed to do next.
Here is another thing I tried:

[manjaro-gnome manjaro]# manjaro-chroot -a
==> Mounting (ManjaroLinux) [/dev/nvme0n1p5]
 --> mount: [/mnt]
 --> mount: [/mnt/boot/efi]
 --> mount: [/mnt/home]
[manjaro-gnome /]# mhwd-kernel --list
available kernels:
   * linux414
   * linux419
   * linux44
   * linux49
   * linux510
   * linux514
   * linux515
   * linux516
   * linux54
   * linux510-rt
   * linux515-rt
[manjaro-gnome /]# mhwd-kernel --install linux510
:: Synchronizing package databases...
 core                  167.7 KiB  93.3 KiB/s 00:02 [######################] 100%
 extra                1900.0 KiB   310 KiB/s 00:06 [######################] 100%
 community               6.9 MiB   970 KiB/s 00:07 [######################] 100%
 multilib              174.3 KiB   623 KiB/s 00:00 [######################] 100%
error: no targets specified (use -h for help)
[manjaro-gnome /]# mhwd-kernel --install linux54 
:: Synchronizing package databases...
 core                  167.7 KiB  60.0 KiB/s 00:03 [######################] 100%
 extra                1900.0 KiB   775 KiB/s 00:02 [######################] 100%
 community               6.9 MiB  1072 KiB/s 00:07 [######################] 100%
 multilib              174.3 KiB   726 KiB/s 00:00 [######################] 100%
error: no targets specified (use -h for help)
[manjaro-gnome /]# mhwd-kernel --list
available kernels:
   * linux414
   * linux419
   * linux44
   * linux49
   * linux510
   * linux514
   * linux515
   * linux516
   * linux54
   * linux510-rt
   * linux515-rt
[manjaro-gnome /]# mhwd-kernel -li
Currently running: 5.13.13-1-MANJARO (linux513)
The following kernels are installed in your system:
   * linux510
[manjaro-gnome /]# mhwd-kernel -i linux513
Error: You can't reinstall your current kernel. Please use 'pacman -Syu' instead to update.
[manjaro-gnome /]# inxi --admin --verbosity=7 --filter --width
12System:
  12Kernel 5.13.13-1-MANJARO x86_64 12bits 64 12compiler gcc 12v 11.1.0
    12parameters BOOT_IMAGE=/boot/vmlinuz-x86_64 lang=en_US keytable=us tz=UTC
    misobasedir=manjaro misolabel=MANJARO_GNOME_2112 quiet
    systemd.show_status=1 driver=nonfree nouveau.modeset=0 i915.modeset=1
    radeon.modeset=1
  12Desktop GNOME 41.3 12tk GTK 3.24.31 12wm gnome-shell 12dm N/A
    12Distro Manjaro Linux 12base Arch Linux
12Machine:
  12Type Desktop 12Mobo ASRock 12model B450M-HDV R4.0 12serial <filter>
    12UEFI American Megatrends 12v P4.50 12date 03/12/2021

(upower:223): UPower-WARNING **: 03:01:01.889: Cannot connect to upowerd: Could not connect: No such file or directory
12Battery:
  12Device-1 hidpp_battery_0 12model Logitech Wireless Mouse B330/M330/M331
    12serial <filter> 12charge Normal 12status Discharging
12Memory:
  12RAM 12total 15.55 GiB 12used 3.99 GiB (25.6%)
  12Array-1 12capacity 128 GiB 12note check 12slots 2 12EC None 12max-module-size 64 GiB
    12note est.
  12Device-1 DIMM 0 12size 8 GiB 12speed 2667 MT/s 12type DDR4
    12detail synchronous unbuffered (unregistered) 12bus-width 64 bits 12total 64 bits
    12manufacturer TeamGroup 12part-no UD4-2666 12serial <filter>
  12Device-2 DIMM 0 12size 8 GiB 12speed 2667 MT/s 12type DDR4
    12detail synchronous unbuffered (unregistered) 12bus-width 64 bits 12total 64 bits
    12manufacturer TeamGroup 12part-no UD4-2666 12serial <filter>
12CPU:
  12Info 12model AMD Ryzen 5 3500 12socket AM4 12bits 64 12type MCP 12arch Zen 2
    12family 0x17 (23) 12model-id 0x71 (113) 12stepping 0 12microcode 0x8701021
  12Topology 12cpus 1x 12cores 6 12smt <unsupported> 12cache 12L1 384 KiB
    12desc d-6x32 KiB; i-6x32 KiB 12L2 3 MiB 12desc 6x512 KiB 12L3 16 MiB 12desc 2x8 MiB
  12Speed (MHz) 12avg 2433 12high 3600 12min/max 2200/4120 12boost enabled
    12base/boost 3600/4100 12scaling 12driver acpi-cpufreq 12governor schedutil
    12volts 1.1 V 12ext-clock 100 MHz 12cores 121 2200 122 2200 123 2200 124 2200 125 3600
    126 2200 12bogomips 43220
  12Flags 3dnowprefetch abm adx aes aperfmperf apic arat avic avx avx2 bmi1
    bmi2 bpext cat_l3 cdp_l3 clflush clflushopt clwb clzero cmov cmp_legacy
    constant_tsc cpb cpuid cqm cqm_llc cqm_mbm_local cqm_mbm_total
    cqm_occup_llc cr8_legacy cx16 cx8 de decodeassists extapic extd_apicid
    f16c flushbyasid fma fpu fsgsbase fxsr fxsr_opt ht hw_pstate ibpb ibs
    irperf lahf_lm lbrv lm mba mca mce misalignsse mmx mmxext monitor movbe
    msr mtrr mwaitx nonstop_tsc nopl npt nrip_save nx osvw overflow_recov pae
    pat pausefilter pclmulqdq pdpe1gb perfctr_core perfctr_llc perfctr_nb
    pfthreshold pge pni popcnt pse pse36 rdpid rdpru rdrand rdseed rdt_a
    rdtscp rep_good sep sev sev_es sha_ni skinit smap smca sme smep ssbd sse
    sse2 sse4_1 sse4_2 sse4a ssse3 stibp succor svm svm_lock syscall tce
    topoext tsc tsc_scale umip v_spec_ctrl v_vmsave_vmload vgif vmcb_clean vme
    vmmcall wbnoinvd wdt xgetbv1 xsave xsavec xsaveerptr xsaveopt xsaves
  12Vulnerabilities
  12Type itlb_multihit 12status Not affected
  12Type l1tf 12status Not affected
  12Type mds 12status Not affected
  12Type meltdown 12status Not affected
  12Type spec_store_bypass
    12mitigation Speculative Store Bypass disabled via prctl and seccomp
  12Type spectre_v1
    12mitigation usercopy/swapgs barriers and __user pointer sanitization
  12Type spectre_v2 12mitigation Full AMD retpoline, IBPB: conditional, STIBP:
    disabled, RSB filling
  12Type srbds 12status Not affected
  12Type tsx_async_abort 12status Not affected
12Graphics:
  12Device-1 NVIDIA TU117 [GeForce GTX 1650] 12driver nvidia 12v 470.63.01
    12bus-ID 09:00.0 12chip-ID 10de:1f82 12class-ID 0300
  12Display x11 12server X.org 1.21.1.3 12compositor gnome-shell 12driver
    12loaded nvidia 12note n/a (using device driver) 12resolution <missing: xdpyinfo>
  12OpenGL 12renderer N/A 12v N/A 12direct render N/A
12Audio:
  12Device-1 NVIDIA 12driver snd_hda_intel 12v kernel 12bus-ID 09:00.1
    12chip-ID 10de:10fa 12class-ID 0403
  12Device-2 AMD Starship/Matisse HD Audio 12vendor ASRock 12driver snd_hda_intel
    12v kernel 12bus-ID 0b:00.4 12chip-ID 1022:1487 12class-ID 0403
  12Sound Server-1 ALSA 12v k5.13.13-1-MANJARO 12running yes
  12Sound Server-2 sndio 12v N/A 12running no
  12Sound Server-3 JACK 12v 1.9.20 12running no
  12Sound Server-4 PulseAudio 12v 15.0 12running yes
  12Sound Server-5 PipeWire 12v 0.3.43 12running no
12Network:
  12Device-1 Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
    12vendor ASRock 12driver r8169 12v kernel 12port f000 12bus-ID 08:00.0
    12chip-ID 10ec:8168 12class-ID 0200
  12IF enp8s0 12state up 12speed 1000 Mbps 12duplex full 12mac <filter>
  12IP v4 <filter> 12type dynamic noprefixroute 12scope global 12broadcast <filter>
  12IP v6 <filter> 12type noprefixroute 12scope link
  12WAN IP <filter>
12Bluetooth:
  12Message No bluetooth data found.
12Logical:
  12Message No logical block device data found.
12RAID:
  12Message No RAID data found.
12Drives:
  12Local Storage 12total 2.99 TiB 12used 79.5 GiB (2.6%)
  12SMART Message Required tool smartctl not installed. Check --recommends
  12ID-1 /dev/nvme0n1 12maj-min 259:0 12vendor Samsung 12model SSD 970 EVO Plus 1TB
    12size 931.51 GiB 12block-size 12physical 512 B 12logical 512 B 12speed 31.6 Gb/s
    12lanes 4 12type SSD 12serial <filter> 12rev 3B2QEXM7 12temp 34.9 C
  12ID-2 /dev/sda 12maj-min 8:0 12vendor Seagate 12model ST2000VX008-2E3164
    12size 1.82 TiB 12block-size 12physical 4096 B 12logical 512 B 12speed 6.0 Gb/s
    12type N/A 12serial <filter> 12rev CV12
  12ID-3 /dev/sdb 12maj-min 8:16 12vendor V-Gen 12model 01SM21NT256MT
    12size 238.47 GiB 12block-size 12physical 512 B 12logical 512 B 12speed 6.0 Gb/s
    12type N/A 12serial <filter> 12rev 5A0
  12ID-4 /dev/sdc 12maj-min 8:32 12type USB 12vendor HP 12model x778w 12size 28.9 GiB
    12block-size 12physical 512 B 12logical 512 B 12type N/A 12serial <filter> 12rev PMAP
  12Message No optical or floppy data found.
12Partition:
  12ID-1 / 12raw-size 97.66 GiB 12size 95.56 GiB (97.86%) 12used 44.65 GiB (46.7%)
    12fs ext4 12block-size 4096 B 12dev /dev/nvme0n1p5 12maj-min 259:5 12label linux
    12uuid 3d035187-d032-4650-946e-a07db114a455
  12ID-2 /boot/efi 12raw-size 1000 MiB 12size 996 MiB (99.60%)
    12used 25.6 MiB (2.6%) 12fs vfat 12block-size 512 B 12dev /dev/nvme0n1p1
    12maj-min 259:1 12label N/A 12uuid D4F8-5870
  12ID-3 /home 12raw-size 390.62 GiB 12size 383.49 GiB (98.17%)
    12used 34.82 GiB (9.1%) 12fs ext4 12block-size 4096 B 12dev /dev/nvme0n1p7
    12maj-min 259:7 12label home 12uuid 3b3e44b5-a833-4e09-b668-250413d14da3
12Swap:
  12Alert No swap data was found.
12Unmounted:
  12ID-1 /dev/dm-0 12maj-min 254:0 12mapped ventoy 12size 2.91 GiB 12fs N/A
    12label MANJARO_GNOME_2112 12uuid 2021-09-04-18-06-06-00
  12ID-2 /dev/nvme0n1p2 12maj-min 259:2 12size 16 MiB 12fs N/A 12label N/A 12uuid N/A
  12ID-3 /dev/nvme0n1p3 12maj-min 259:3 12size 97.14 GiB 12fs ntfs 12label N/A
    12uuid 56B4F6A3B4F684B1
  12ID-4 /dev/nvme0n1p4 12maj-min 259:4 12size 516 MiB 12fs ntfs 12label N/A
    12uuid 50642D1A642D03F6
  12ID-5 /dev/nvme0n1p6 12maj-min 259:6 12size 11.72 GiB 12fs swap 12label N/A
    12uuid a744f76f-4318-41b8-8117-a8299568048d
  12ID-6 /dev/nvme0n1p8 12maj-min 259:8 12size 332.88 GiB 12fs ntfs 12label CrossApps
    12uuid 424EFD4D4EFD3A6D
  12ID-7 /dev/sda1 12maj-min 8:1 12size 16 MiB 12fs N/A 12label N/A 12uuid N/A
  12ID-8 /dev/sda2 12maj-min 8:2 12size 1.82 TiB 12fs ntfs 12label Warehouse
    12uuid 9C5EDB7B5EDB4CA0
  12ID-9 /dev/sdb1 12maj-min 8:17 12size 16 MiB 12fs N/A 12label N/A 12uuid N/A
  12ID-10 /dev/sdb2 12maj-min 8:18 12size 237.86 GiB 12fs ntfs 12label N/A
    12uuid 369020BA9020828B
  12ID-11 /dev/sdb3 12maj-min 8:19 12size 508 MiB 12fs ntfs 12label N/A
    12uuid CCDC6803DC67E5E4
  12ID-12 /dev/sdc1 12maj-min 8:33 12size 28.87 GiB 12fs N/A 12label Ventoy
    12uuid 4E21-0000
  12ID-13 /dev/sdc2 12maj-min 8:34 12size 32 MiB 12fs N/A 12label VTOYEFI
    12uuid 7502-2467
12USB:
  12Hub-1 1-0:1 12info Hi-speed hub with single TT 12ports 10 12rev 2.0 12speed 480 Mb/s
    12chip-ID 1d6b:0002 12class-ID 0900
  12Hub-2 2-0:1 12info Super-speed hub 12ports 4 12rev 3.1 12speed 10 Gb/s
    12chip-ID 1d6b:0003 12class-ID 0900
  12Device-1 2-2:2 12info HP x778w 12type Mass Storage 12driver usb-storage
    12interfaces 1 12rev 3.2 12speed 5 Gb/s 12power 504mA 12chip-ID 03f0:4640
    12class-ID 0806 12serial <filter>
  12Hub-3 3-0:1 12info Hi-speed hub with single TT 12ports 4 12rev 2.0
    12speed 480 Mb/s 12chip-ID 1d6b:0002 12class-ID 0900
  12Device-1 3-1:2 12info Wacom Wacom One Pen Display 13 12type HID
    12driver usbhid,wacom 12interfaces 2 12rev 2.0 12speed 12 Mb/s 12chip-ID 056a:03a6
    12class-ID 0300 12serial <filter>
  12Hub-4 3-2:3 12info Alcor Micro USB Hub 12ports 4 12rev 2.0 12speed 480 Mb/s
    12power 100mA 12chip-ID 058f:6254 12class-ID 0900
  12Hub-5 3-2.4:4 12info Alcor Micro USB Hub 12ports 4 12rev 2.0 12speed 480 Mb/s
    12power 100mA 12chip-ID 058f:6254 12class-ID 0900
  12Device-1 3-2.4.2:5 12info Microsoft Wireless Receiver 1461C
    12type Keyboard,Mouse,HID 12driver hid-generic,usbhid 12interfaces 3 12rev 2.0
    12speed 12 Mb/s 12power 100mA 12chip-ID 045e:07a5 12class-ID 0300
  12Device-2 3-2.4.3:6 12info Logitech Unifying Receiver 12type Mouse,HID
    12driver logitech-djreceiver,usbhid 12interfaces 2 12rev 2.0 12speed 12 Mb/s
    12power 98mA 12chip-ID 046d:c52f 12class-ID 0300
  12Hub-6 4-0:1 12info Super-speed hub 12ports 4 12rev 3.1 12speed 10 Gb/s
    12chip-ID 1d6b:0003 12class-ID 0900
12Sensors:
  12System Temperatures 12cpu 45.0 C 12mobo N/A 12gpu nvidia 12temp 48 C
  12Fan Speeds (RPM) N/A 12gpu nvidia 12fan 0%
12Info:
  12Processes 271 12Uptime 23m 12wakeups 3 12Init systemd 12v 250 12tool systemctl
  12Compilers 12gcc 11.1.0 12clang 13.0.0 12Packages 1820 12pacman 1812 12lib 503
  12flatpak 8 12Client Unknown Client: systemd 12inxi 3.3.12
sudo manjaro-chroot -a
sudo pacman-mirrors --fasttrack 5 && sudo pacman -Syyu 
uname -r #to check kernel version
sudo mhwd-kernel -r linux513
exit

Then reboot into 5.10 (Press Esc during boot to get into grub menu and boot with 5.10)

Uhm… What do you mean press esc during boot to enter grub menu?

Isn’t it always went to grub menu?

I pressed esc in grub menu, nothing happened.

When i selected Advanced Options for Manjaro Linux, it shows only 5.10.93-1 and same version with fallback written in the back. Both didnt work.

Running that pacman command returned “there is nothing to do” message.

I installed linux515, now the grub doesn’t appear, so that’s where esc button come in.

But even after choosing 515, it still won’t boot so I’m stuck there.

inside chroot environment::
[manjaro-gnome /]# mhwd -r video-nvidia
Error: invalid use of option: -r/--remove

Usage: mhwd [OPTIONS] <config(s)>

  --pci					list only pci devices and driver configs
  --usb					list only usb devices and driver configs
  -h/--help				show help
  -v/--version				show version of mhwd
  -f/--force				force reinstallation
  -d/--detail				show detailed info for -l/-li/-lh
  -l/--list				list available configs for devices
  -la/--listall				list all driver configs
  -li/--listinstalled			list installed driver configs
  -lh/--listhardware			list hardware information
  -i/--install <usb/pci> <config(s)>	install driver config(s)
  -ic/--installcustom <usb/pci> <path>	install custom config(s)
  -r/--remove <usb/pci> <config(s)>	remove driver config(s)
  -a/--auto <usb/pci> <free/nonfree> <classid>	auto install configs for classid
  --pmcachedir <path>			set package manager cache path
  --pmconfig <path>			set package manager config
  --pmroot <path>			set package manager root

[manjaro-gnome /]# pacman -R video-nvidia 
error: target not found: video-nvidia

Thats not how mhwd works …

Or pacman.


If you wanted to see your installed packages then you could use

pacman -Qs nvidia

And if you wanted to remove a package, along with save files and unneeded dependencies, then

sudo pacman -Rns PACKAGE

…but …

We handle drivers using mhwd, so you probably dont want to mess with the packages themselves unless you know what you are doing or already broke something …

In mhwd we use the bus identifier … ex:

sudo mhwd -i pci video-nvidia

To see mhwd info you can use something like

mhwd -l -d 

Which will show both installed and available profiles.

PS - for a review of mhwd-kernel see this recent thread:
Update kernel and was wondering if this is good news or not - #8 by cscs