Manjaro randomly hangs on boot before KDE splash screen

Hello. This is my first post so pardon if I don’t provide enough information I’m just getting familiar with Manjaro after 3 months of using it.

Just as the title says, sometimes - randomly - my setup will start booting, asking for BIOS and Disk password and then after just some moments it will display (number may vary):

/dev/mapper/luks-[...]: clean 742925/58015744 files, 76303470/232037796 blocks
_

On a normal boot this lasts for a couple seconds without change and then my mouse pointer comes up and just a second or two later the KDE splash/login screen becomes visible.

But sometimes it gets stuck there forever. Once when I wasn’t in a hurry I decided to wait just in case it’s fsck or something similar working in the background, but I ended up wasting half an hour without change. Only solution working so far is rebooting.

Sometimes this can happen twice in a row specially after issuing large updates with pacman.

This is the only issue I’ve found so far and I’m kind of lost. Any help is appreciated.

Thank you.

EDIT 1: Attempting to switch consoles with Ctrl+Alt+F1 (or any other function key) does not work.

Hi and welcome to the Forum :+1:


Most likely you are force powering off your laptop/desktop, this kind of issues happen because of that and will only become worse when you repeat it.
(Up to a point you won’t be able to boot at all)

Always use the menu to power off, instead of your power buttons…

Hi TriMoon and thanks for your answer! This document shows things I definitely wasn’t aware of.

But to be honest I started rebooting the system the bad way only after this started happening and I had seemingly no other choice (all times it happened I was powering down the system via the GUI and I thought it to be a KDE bug).

Thanks!

At least now you know about the choice you have :wink:

Anyhow if you never, knowingly or un-knowingly, powered off your machine the bad way and it started to happen…
Maybe it is time to check your drive for bad sectors… :thinking:
SSD’s wear-out faster as rotational drives, but all hardware starts to malfunction at some point in time…

That’s a good one, I was suspecting something like this could happen (I’m using a 2-years old SSD by now, with daily usage).

AFAIK, it’s not recommended to run certain tools on them so I’m not sure what’s safe to do on this cases, is it safe to run a fsck or do you have any other recommendation? Thank you

fsck is already run automatically by the system like you already showed in your OP :wink:
(fsck is only a filesystem check, but not sector level check)

Most SSD’s, if not all, have “S.M.A.R.T.” functionality, which will give some related info…
S.M.A.R.T. - ArchWiki.

1.Always usefull to show us more information about your system, like this command:

inxi --admin --verbosity=7 --filter --no-host --width

2.I also would thinking twice, if you really need luks to encrypt your boot partition… this also could lead to some issues or make fixes maybe harder in some usecases.

3.You can also disable this this login menue, when first booting in KDE and not using differend
user accounts.

4.Most of the time a Bios password is enough to secure your boot… and if you really want secure some data, i would recommend veracrypt and encrypt a secondary partition or use the container option.

5.A Lannister always pays his debts :smiley:

There are many posibilities, but there’s nothing wrong or unsafe with LUKS2…
(Im using fulldisk encription with LUKS2 also) :wink:

I mainly wanted to say, if you run into issue… it makes fixes harder than normaly.

And you decrypt your files always when you logged in your system… so that only gives your security if your whole PC (or HDD/SSD) or Laptop is stolen. I just think, that alot of people not aware about that.

People are unaware of a lot of stuff nothing new there, but it’s the responsibility of the user to know and understand what (s)he uses right?
From my POV, using encryption or not is same as using ext4 vs btrfs etc…
It all boils down to the level of knowledge…

If want a carefree system, well almost ofcourse, then we should only use Android from the provider :rofl:

I total Agree with that.

when a boot fails, boot again and then run journalctl -b -1 to get the logs of the previous boot to see what was up.

2 Likes

Thanks Kobold and Trimoon for your suggestions!

You’re right: encrypting the entire disk rather than separating and encrypting my home one alone does not seem optimal. I’ll rearrange this in a future setup definitely.

Here’s the output of the command you shared:

System:
  Kernel: 5.15.94-1-MANJARO arch: x86_64 bits: 64 compiler: gcc v: 12.2.1
    parameters: BOOT_IMAGE=/boot/vmlinuz-5.15-x86_64
    root=UUID=73e586a5-e008-4990-95a2-1936efa95c3d rw quiet
    cryptdevice=UUID=7db496ab-7f8f-4033-ab66-3efb60e39eda:luks-7db496ab-7f8f-4033-ab66-3efb60e39eda
    root=/dev/mapper/luks-7db496ab-7f8f-4033-ab66-3efb60e39eda
    resume=/dev/mapper/luks-569453d0-ff46-4cc2-b13e-d2d39c8a4cd2
    udev.log_priority=3
  Desktop: KDE Plasma v: 5.26.5 tk: Qt v: 5.15.8 wm: kwin_x11 vt: 1 dm: SDDM
    Distro: Manjaro Linux base: Arch Linux
Machine:
  Type: Laptop System: Dell product: Inspiron 5577 v: 1.1.3
    serial: <superuser required> Chassis: type: 10 serial: <superuser required>
  Mobo: Dell model: 090HMC v: A00 serial: <superuser required> UEFI: Dell
    v: 1.1.3 date: 12/02/2018
Battery:
  ID-1: BAT0 charge: 39.3 Wh (100.0%) condition: 39.3/74.0 Wh (53.1%)
    volts: 12.6 min: 11.4 model: SIMPLO Dell type: Unknown serial: <filter>
    status: full
Memory:
  RAM: total: 11.46 GiB used: 3.89 GiB (33.9%)
  RAM Report: permissions: Unable to run dmidecode. Root privileges required.
CPU:
  Info: model: Intel Core i5-7300HQ bits: 64 type: MCP arch: Kaby Lake
    gen: core 7 level: v3 note: check built: 2018 process: Intel 14nm family: 6
    model-id: 0x9E (158) stepping: 9 microcode: 0xF0
  Topology: cpus: 1x cores: 4 smt: <unsupported> cache: L1: 256 KiB
    desc: d-4x32 KiB; i-4x32 KiB L2: 1024 KiB desc: 4x256 KiB L3: 6 MiB
    desc: 1x6 MiB
  Speed (MHz): avg: 1100 min/max: 800/3500 scaling: driver: intel_pstate
    governor: powersave cores: 1: 1100 2: 1100 3: 1100 4: 1100 bogomips: 20004
  Flags: 3dnowprefetch abm acpi adx aes aperfmperf apic arat
    arch_capabilities arch_perfmon art avx avx2 bmi1 bmi2 bts clflush
    clflushopt cmov constant_tsc cpuid cpuid_fault cx16 cx8 de ds_cpl dtes64
    dtherm dts epb ept ept_ad erms est f16c flexpriority flush_l1d fma fpu
    fsgsbase fxsr ht hwp hwp_act_window hwp_epp hwp_notify ibpb ibrs ida
    intel_pt invpcid invpcid_single lahf_lm lm mca mce md_clear mmx monitor
    movbe mpx msr mtrr nonstop_tsc nopl nx pae pat pbe pcid pclmulqdq pdcm
    pdpe1gb pebs pge pln pni popcnt pse pse36 pti pts rdrand rdseed rdtscp
    rep_good sdbg sep sgx smap smep ss ssbd sse sse2 sse4_1 sse4_2 ssse3 stibp
    syscall tm tm2 tpr_shadow tsc tsc_adjust tsc_deadline_timer vme vmx vnmi
    vpid x2apic xgetbv1 xsave xsavec xsaveopt xsaves xtopology xtpr
  Vulnerabilities:
  Type: itlb_multihit status: KVM: VMX disabled
  Type: l1tf mitigation: PTE Inversion; VMX: conditional cache flushes, SMT
    disabled
  Type: mds mitigation: Clear CPU buffers; SMT disabled
  Type: meltdown mitigation: PTI
  Type: mmio_stale_data mitigation: Clear CPU buffers; SMT disabled
  Type: retbleed mitigation: IBRS
  Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via
    prctl and seccomp
  Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer
    sanitization
  Type: spectre_v2 mitigation: IBRS, IBPB: conditional, RSB filling,
    PBRSB-eIBRS: Not affected
  Type: srbds mitigation: Microcode
  Type: tsx_async_abort status: Not affected
Graphics:
  Device-1: Intel HD Graphics 630 vendor: Dell driver: i915 v: kernel
    arch: Gen-9.5 process: Intel 14nm built: 2016-20 ports: active: eDP-1
    empty: HDMI-A-1 bus-ID: 00:02.0 chip-ID: 8086:591b class-ID: 0300
  Device-2: NVIDIA GP107M [GeForce GTX 1050 Mobile] vendor: Dell
    driver: nvidia v: 525.89.02 alternate: nouveau,nvidia_drm non-free: 525.xx+
    status: current (as of 2023-02) arch: Pascal code: GP10x process: TSMC 16nm
    built: 2016-21 pcie: gen: 1 speed: 2.5 GT/s lanes: 8 link-max: gen: 3
    speed: 8 GT/s lanes: 16 bus-ID: 01:00.0 chip-ID: 10de:1c8d class-ID: 0302
  Device-3: Sunplus Innovation Integrated_Webcam_HD type: USB
    driver: uvcvideo bus-ID: 1-4:2 chip-ID: 1bcf:2b8a class-ID: 0e02
  Display: x11 server: X.Org v: 21.1.7 with: Xwayland v: 22.1.8
    compositor: kwin_x11 driver: X: loaded: modesetting,nvidia
    alternate: fbdev,nouveau,nv,vesa dri: iris gpu: i915 display-ID: :0
    screens: 1
  Screen-1: 0 s-res: 1920x1080 s-dpi: 96 s-size: 508x285mm (20.00x11.22")
    s-diag: 582mm (22.93")
  Monitor-1: eDP-1 model: AU Optronics 0x63ed built: 2017 res: 1920x1080
    hz: 60 dpi: 142 gamma: 1.2 size: 344x193mm (13.54x7.6") diag: 394mm (15.5")
    ratio: 16:9 modes: 1920x1080
  API: OpenGL v: 4.6 Mesa 22.3.5 renderer: Mesa Intel HD Graphics 630 (KBL
    GT2) direct-render: Yes
Audio:
  Device-1: Intel CM238 HD Audio vendor: Dell driver: snd_hda_intel v: kernel
    bus-ID: 00:1f.3 chip-ID: 8086:a171 class-ID: 0403
  Sound API: ALSA v: k5.15.94-1-MANJARO running: yes
  Sound Server-1: JACK v: 1.9.22 running: no
  Sound Server-2: PulseAudio v: 16.1 running: yes
  Sound Server-3: PipeWire v: 0.3.65 running: yes
Network:
  Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet vendor: Dell
    driver: r8169 v: kernel pcie: gen: 1 speed: 2.5 GT/s lanes: 1 port: d000
    bus-ID: 02:00.0 chip-ID: 10ec:8168 class-ID: 0200
  IF: enp2s0 state: down mac: <filter>
  Device-2: Intel Wireless 3165 driver: iwlwifi v: kernel pcie: gen: 1
    speed: 2.5 GT/s lanes: 1 bus-ID: 03:00.0 chip-ID: 8086:3165 class-ID: 0280
  IF: wlp3s0 state: up mac: <filter>
  IP v4: <filter> type: dynamic noprefixroute scope: global
    broadcast: <filter>
  IP v6: <filter> type: noprefixroute scope: link
  WAN IP: <filter>
Bluetooth:
  Device-1: Intel Bluetooth wireless interface type: USB driver: btusb v: 0.8
    bus-ID: 1-5:3 chip-ID: 8087:0a2a class-ID: e001
  Report: rfkill ID: hci0 rfk-id: 0 state: up address: see --recommends
Logical:
  Message: No logical block device data found.
  Device-1: luks-7db496ab-7f8f-4033-ab66-3efb60e39eda maj-min: 254:0
    type: LUKS dm: dm-0 size: 885.15 GiB
  Components:
  p-1: sda2 maj-min: 8:2 size: 885.16 GiB
  Device-2: luks-569453d0-ff46-4cc2-b13e-d2d39c8a4cd2 maj-min: 254:1
    type: LUKS dm: dm-1 size: 8.8 GiB
  Components:
  p-1: sda3 maj-min: 8:3 size: 8.8 GiB
RAID:
  Message: No RAID data found.
Drives:
  Local Storage: total: 894.25 GiB used: 276.7 GiB (30.9%)
  SMART Message: Unable to run smartctl. Root privileges required.
  ID-1: /dev/sda maj-min: 8:0 vendor: Kingston model: SA400S37960G
    size: 894.25 GiB block-size: physical: 512 B logical: 512 B speed: 6.0 Gb/s
    type: SSD serial: <filter> rev: K1B3 scheme: GPT
  Message: No optical or floppy data found.
Partition:
  ID-1: / raw-size: 885.15 GiB size: 870.19 GiB (98.31%)
    used: 276.7 GiB (31.8%) fs: ext4 dev: /dev/dm-0 maj-min: 254:0
    mapped: luks-7db496ab-7f8f-4033-ab66-3efb60e39eda label: N/A
    uuid: 73e586a5-e008-4990-95a2-1936efa95c3d
  ID-2: /boot/efi raw-size: 300 MiB size: 299.4 MiB (99.80%)
    used: 472 KiB (0.2%) fs: vfat dev: /dev/sda1 maj-min: 8:1 label: NO_LABEL
    uuid: 5F18-8CA1
Swap:
  Kernel: swappiness: 60 (default) cache-pressure: 100 (default)
  ID-1: swap-1 type: partition size: 8.8 GiB used: 0 KiB (0.0%) priority: -2
    dev: /dev/dm-1 maj-min: 254:1
    mapped: luks-569453d0-ff46-4cc2-b13e-d2d39c8a4cd2 label: swap
    uuid: b5cab1fb-ee72-4536-9c2e-b8cd05299df9
Unmounted:
  Message: No unmounted partitions found.
USB:
  Hub-1: 1-0:1 info: Hi-speed hub with single TT ports: 16 rev: 2.0
    speed: 480 Mb/s chip-ID: 1d6b:0002 class-ID: 0900
  Device-1: 1-1:5 info: Trust Wireless Mouse type: Mouse
    driver: hid-generic,usbhid interfaces: 1 rev: 1.1 speed: 12 Mb/s power: 50mA
    chip-ID: 145f:0242 class-ID: 0301
  Device-2: 1-4:2 info: Sunplus Innovation Integrated_Webcam_HD type: Video
    driver: uvcvideo interfaces: 2 rev: 2.0 speed: 480 Mb/s power: 500mA
    chip-ID: 1bcf:2b8a class-ID: 0e02
  Device-3: 1-5:3 info: Intel Bluetooth wireless interface type: Bluetooth
    driver: btusb interfaces: 2 rev: 2.0 speed: 12 Mb/s power: 100mA
    chip-ID: 8087:0a2a class-ID: e001
  Device-4: 1-7:4 info: Realtek RTS5129 Card Reader Controller
    type: <vendor specific> driver: rtsx_usb,rtsx_usb_ms,rtsx_usb_sdmmc
    interfaces: 1 rev: 2.0 speed: 480 Mb/s power: 500mA chip-ID: 0bda:0129
    class-ID: ff00 serial: <filter>
  Hub-2: 2-0:1 info: Super-speed hub ports: 8 rev: 3.0 speed: 5 Gb/s
    chip-ID: 1d6b:0003 class-ID: 0900
Sensors:
  System Temperatures: cpu: 59.0 C pch: 52.5 C mobo: N/A sodimm: SODIMM C
  Fan Speeds (RPM): cpu: 0
Info:
  Processes: 251 Uptime: 1h 8m wakeups: 1 Init: systemd v: 252
  default: graphical tool: systemctl Compilers: gcc: 12.2.1 clang: 15.0.7
  Packages: 1435 pm: pacman pkgs: 1418 libs: 356 tools: pamac pm: flatpak
  pkgs: 17 Shell: Zsh v: 5.9 default: Bash v: 5.1.16 running-in: konsole
  inxi: 3.3.25

Also, I’ll try the tools described the SMART kb just to be sure :wink:

Once again thanks folks!

1 Like

Excellent, thank you, that will definitely help me diagnose what is going on.

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