Cannot boot, stuck after unlocking encrypted disk

When trying to boot my desktop, I’m running into an issue where it seems to be stuck after unlocking, with the following message:

/dev/mapper/luks-[uuid]: clean, 906659/30507008 files, 3112454/122018184

It’ll sit on the above screen for about 10 minutes before it reboots itself. I can’t see any prompt or anything useful on screen.

This was working fine last night and seemed to shutdown cleanly. Only when trying to boot this morning did I run into this. This is basically all new hardware that I put together after my old motherboard died. I had to install from the unstable Manjaro iso due to needing a newer kernel.

I’m hoping to find out if there’s some way to get the logs off and see what might be causing the issue. I’d also like to hopefully fix it without reinstall or maybe just be able to access the home directory to back everything up. I assume I’d have to do this from the live CD, although I’m not sure how I would mount the encrypted disk.

My specs:
CPU: AMD Ryzen 7700x
GPU: Nvidia 2700S
Motherboard: GIGABYTE B650E AORUS
Kernel: 6.1 - I’m not positive if this was the kernel I was on. I was definitely on 6.x.

can you enter into tty in the stuck screen: ctrl+alt+f2, or f1-f6 keys, enter your username/password, and rerun update again:
sudo pacman -Syu
you can check logs there too:
journalctl -b0 -p4 --no-pager

if you are on KDE, you can type:
startx

Thanks for the reply! I just gave it a shot but unfortunately it doesn’t look like ctrl+alt+f# seems to work for any of the function keys. I tried different combinations with the function keys but it still doesn’t seem to drop me to a shell/login.

Can I check the journal logs from a live cd? I am able to boot from a Manjaro live iso.

if you cant enter into tty, so yes boot into live usb, chroot, and check logs with:
journalctl -b-1 -p4 --no-pager
but it looks to me like its related to graphics…
when you are in chroot, rerun update, and post output from:
mhwd-kernel -li && mhwd -l -li

From the live CD, I’m seeing the following:

    ~  mhwd-kernel -li && mhwd -l -li                                                                                                                                              ✔ 
Currently running: 5.19.17-2-MANJARO (linux519)
The following kernels are installed in your system:
warning: database file for 'core' does not exist (use '-Sy' to download)
warning: database file for 'extra' does not exist (use '-Sy' to download)
warning: database file for 'community' does not exist (use '-Sy' to download)
warning: database file for 'multilib' does not exist (use '-Sy' to download)
   * linux519
warning: database file for 'core' does not exist (use '-Sy' to download)
warning: database file for 'extra' does not exist (use '-Sy' to download)
warning: database file for 'community' does not exist (use '-Sy' to download)
warning: database file for 'multilib' does not exist (use '-Sy' to download)
Warning: config '/var/lib/mhwd/db/pci/network_drivers/r8168/MHWDCONFIG' is invalid!
Warning: config '/var/lib/mhwd/db/pci/network_drivers/rt3562sta/MHWDCONFIG' is invalid!
> Installed PCI configs:
--------------------------------------------------------------------------------
                  NAME               VERSION          FREEDRIVER           TYPE
--------------------------------------------------------------------------------
video-hybrid-amd-nvidia-prime            2021.11.04               false            PCI
           video-linux            2018.05.04                true            PCI


Warning: No installed USB configs!
> 0000:31:00.0 (0300:1002:164e) Display controller ATI Technologies Inc:
--------------------------------------------------------------------------------
                  NAME               VERSION          FREEDRIVER           TYPE
--------------------------------------------------------------------------------
video-hybrid-amd-nvidia-prime            2021.11.04               false            PCI
video-hybrid-amd-nvidia-470xx-prime            2021.11.04               false            PCI
           video-linux            2018.05.04                true            PCI
     video-modesetting            2020.01.13                true            PCI
            video-vesa            2017.03.12                true            PCI


> 0000:01:00.0 (0300:10de:1e84) Display controller nVidia Corporation:
--------------------------------------------------------------------------------
                  NAME               VERSION          FREEDRIVER           TYPE
--------------------------------------------------------------------------------
video-hybrid-amd-nvidia-prime            2021.11.04               false            PCI
video-hybrid-amd-nvidia-470xx-prime            2021.11.04               false            PCI
          video-nvidia            2021.11.04               false            PCI
    video-nvidia-470xx            2021.11.04               false            PCI
           video-linux            2018.05.04                true            PCI
     video-modesetting            2020.01.13                true            PCI
            video-vesa            2017.03.12                true            PCI

I was able to mount the encrypted disk on the live CD. This is the last boot journal entry, in case it’s helpful.

Note: The output from mhwd-kernel was while running the live CD but without chroot. If I chroot to the root of the mounted encrypted partition, I get the following:

    ~  sudo chroot /run/media/manjaro/ea249c59-194e-4999-8b99-0cee2da7a30c/                                                                                                        ✔ 
[manjaro /]# 
[manjaro /]# 
[manjaro /]# sudo mhwd-kernel -li && mhwd -l -li
Currently running: 5.19.17-2-MANJARO (linux519)
The following kernels are installed in your system:
   * linux519
   * linux60
> Installed PCI configs:
--------------------------------------------------------------------------------
                  NAME               VERSION          FREEDRIVER           TYPE
--------------------------------------------------------------------------------
           video-linux            2018.05.04                true            PCI
video-hybrid-amd-nvidia-prime            2021.11.04               false            PCI


Warning: No installed USB configs!
[manjaro /]# 

did you run the command i gave you for the logs? because what you posted, thats a lot of logs…
and the mhwd output is from the live usb, not from your installation…
this is how you chroot:

sudo cryptsetup -v luksOpen /dev/nvme0n1p2 cryptDrive
sudo mount /dev/mapper/cryptDrive /mnt
sudo manjaro-chroot /mnt

where /dev/nvme0n1p2 you replace with your partition…

Sorry about that. I had dumped the entire journal boot logs. Below are after using manjaro-chroot:

sh-5.2# journalctl -b-1 -p4 --no-pager
Dec 16 10:23:49 borg kernel:   #9 #10 #11 #12 #13 #14 #15
Dec 16 10:23:49 borg kernel: ACPI BIOS Error (bug): Failure creating named object [\_SB.PCI0.GPP7._PRW], AE_ALREADY_EXISTS (20220331/dswload2-326)
Dec 16 10:23:49 borg kernel: ACPI Error: AE_ALREADY_EXISTS, During name lookup/catalog (20220331/psobject-220)
Dec 16 10:23:49 borg kernel: Expanded resource Reserved due to conflict with PCI Bus 0000:00
Dec 16 10:23:49 borg kernel: nvme nvme0: missing or invalid SUBNQN field.
Dec 16 10:23:49 borg kernel: hub 10-0:1.0: config failed, hub doesn't have any ports! (err -19)
Dec 16 10:23:49 borg kernel: plantronics 0003:047F:0127.0001: No inputs registered, leaving
Dec 16 10:23:49 borg kernel: sd 6:0:0:0: [sda] No Caching mode page found
Dec 16 10:23:49 borg kernel: sd 6:0:0:0: [sda] Assuming drive cache: write through
Dec 16 10:23:49 borg kernel: acpi PNP0C14:01: duplicate WMI GUID 05901221-D566-11D1-B2F0-00A0C9062910 (first instance was on PNP0C14:00)
Dec 16 10:23:49 borg kernel: ACPI Warning: SystemIO range 0x0000000000000B00-0x0000000000000B08 conflicts with OpRegion 0x0000000000000B00-0x0000000000000B0F (\GSA1.SMBI) (20220331/utaddress-204)
Dec 16 10:23:49 borg kernel: usb 5-2.1: 1:1: cannot set freq 16000 to ep 0x83
Dec 16 10:23:49 borg kernel: usb 5-2.1: 2:1: cannot set freq 48000 to ep 0x3
Dec 16 10:23:49 borg kernel: Bluetooth: hci0: HCI Enhanced Setup Synchronous Connection command is advertised, but not supported.
Dec 16 10:23:50 borg kernel: nvidia: loading out-of-tree module taints kernel.
Dec 16 10:23:50 borg kernel: nvidia: module license 'NVIDIA' taints kernel.
Dec 16 10:23:50 borg kernel: Disabling lock debugging due to kernel taint
Dec 16 10:23:50 borg kernel: ATPX version 1, functions 0x00000001
Dec 16 10:23:50 borg kernel: ATPX Hybrid Graphics
Dec 16 10:23:50 borg kernel: amdgpu 0000:31:00.0: amdgpu: PSP runtime database doesn't exist
Dec 16 10:23:50 borg kernel: amdgpu 0000:31:00.0: amdgpu: PSP runtime database doesn't exist
Dec 16 10:23:50 borg kernel: 
Dec 16 10:23:50 borg kernel: NVRM: loading NVIDIA UNIX x86_64 Kernel Module  525.60.11  Wed Nov 23 23:04:03 UTC 2022
Dec 16 10:23:50 borg kernel: amdgpu 0000:31:00.0: amdgpu: SMU driver if version not matched
Dec 16 10:23:50 borg kernel: amdgpu: SRAT table not found
Dec 16 10:23:51 borg kernel: nvidia_uvm: module uses symbols nvUvmInterfaceDisableAccessCntr from proprietary module nvidia, inheriting taint.
Dec 16 10:23:51 borg systemd-modules-load[407]: Failed to find module 'vboxdrv'
Dec 16 10:23:51 borg systemd-modules-load[407]: Failed to find module 'vboxnetadp'
Dec 16 10:23:51 borg systemd-modules-load[407]: Failed to find module 'vboxnetflt'
Dec 16 10:23:51 borg systemd-udevd[454]: could not read from '/sys/module/acpi_cpufreq/initstate': No such device
Dec 16 10:23:56 borg kernel: kauditd_printk_skb: 1 callbacks suppressed

And the mhwd-kernel, although I assume it’s using the live cd kernel

sh-5.2# mhwd-kernel -li && mhwd -l -li
Currently running: 5.19.17-2-MANJARO (linux519)
The following kernels are installed in your system:
   * linux519
   * linux60
> Installed PCI configs:
--------------------------------------------------------------------------------
                  NAME               VERSION          FREEDRIVER           TYPE
--------------------------------------------------------------------------------
           video-linux            2018.05.04                true            PCI
video-hybrid-amd-nvidia-prime            2021.11.04               false            PCI


Warning: No installed USB configs!
> 0000:31:00.0 (0300:1002:164e) Display controller ATI Technologies Inc:
--------------------------------------------------------------------------------
                  NAME               VERSION          FREEDRIVER           TYPE
--------------------------------------------------------------------------------
video-hybrid-amd-nvidia-prime            2021.11.04               false            PCI
video-hybrid-amd-nvidia-470xx-prime            2021.11.04               false            PCI
           video-linux            2018.05.04                true            PCI
     video-modesetting            2020.01.13                true            PCI
            video-vesa            2017.03.12                true            PCI


> 0000:01:00.0 (0300:10de:1e84) Display controller nVidia Corporation:
--------------------------------------------------------------------------------
                  NAME               VERSION          FREEDRIVER           TYPE
--------------------------------------------------------------------------------
video-hybrid-amd-nvidia-prime            2021.11.04               false            PCI
video-hybrid-amd-nvidia-470xx-prime            2021.11.04               false            PCI
          video-nvidia            2021.11.04               false            PCI
    video-nvidia-470xx            2021.11.04               false            PCI
           video-linux            2018.05.04                true            PCI
     video-modesetting            2020.01.13                true            PCI
            video-vesa            2017.03.12                true            PCI

there are some logs to amdgpu, but i have no idea if they are causing the freeze…
i would switch back to stable and see if that helps:
pacman-mirrors --api --set-branch stable
pacman-mirrors --fasttrack 5 && pacman -Syyuu
exit chroot and reboot and see if it helped

2 Likes

That got me back to my desktop, thanks a lot @brahma . Really appreciate it.

Just a few things to note if anyone else runs across this:

I had to statically set my DNS settings on my live CD network for pacman to work. Internet worked fine in Firefox, for instance, just not within manjaro-chroot.

When running pacman -Syyuu, I ran into the following error:

python-cairo: /usr/lib/python3.10/site-packages/cairo/__pycache__/__init__.cpython-310.pyc exists in filesystem

which led me to a post on the endeavouros forums. Using the following fixed this for me and allowed me to reboot:

pacman -Syyuu --overwrite /usr/lib/python3.10/site-packages/cairo/__pycache__/__init__.cpython-310.pyc

I’m not sure if the pycache file is related to my problems, although I doubt it.

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