Page 1 of 1

Mdadm question  [Solved]

Posted: Mon Apr 15, 2024 5:01 am
by GerardV
My desktop pc with MX Linux KDE installed failed, most likely a faulty power supply.
I had made a Snapshot some time ago and installed that successfully on an old Lenovo T420 Thinkpad.
But i keep getting this startup error " mdadm No arrays found in config file or automatically" which repeat itself for a good 30 second before continuing and starting successfully.
Anything i can do about that?

Code: Select all

Snapshot created on: 20230723_1602
System:
  Kernel: 6.1.0-9-amd64 [6.1.27-1] arch: x86_64 bits: 64 compiler: gcc v: 12.2.0
    parameters: BOOT_IMAGE=/boot/vmlinuz-6.1.0-9-amd64 root=UUID=<filter> ro quiet
    resume=UUID=<filter> resume_offset=15808512 splash
  Desktop: KDE Plasma v: 5.27.5 wm: kwin_x11 vt: 7 dm: SDDM Distro: MX-23.2_x64 Libretto July 23
    2023 base: Debian GNU/Linux 12 (bookworm)
Machine:
  Type: Laptop System: LENOVO product: 4236MBM v: ThinkPad T420 serial: <superuser required>
    Chassis: type: 10 serial: <superuser required>
  Mobo: LENOVO model: 4236MBM serial: <superuser required> UEFI-[Legacy]: LENOVO
    v: 83ET76WW (1.46 ) date: 07/05/2013
Battery:
  ID-1: BAT0 charge: 6.7 Wh (100.0%) condition: 6.7/47.5 Wh (14.2%) volts: 12.2 min: 10.8
    model: SANYO 45N1001 type: Li-ion serial: <filter> status: full
CPU:
  Info: model: Intel Core i5-2540M bits: 64 type: MT MCP arch: Sandy Bridge gen: core 2 level: v2
    built: 2010-12 process: Intel 32nm family: 6 model-id: 0x2A (42) stepping: 7 microcode: 0x2F
  Topology: cpus: 1x cores: 2 tpc: 2 threads: 4 smt: enabled cache: L1: 128 KiB
    desc: d-2x32 KiB; i-2x32 KiB L2: 512 KiB desc: 2x256 KiB L3: 3 MiB desc: 1x3 MiB
  Speed (MHz): avg: 3185 high: 3287 min/max: 800/3300 scaling: driver: intel_cpufreq
    governor: ondemand cores: 1: 3090 2: 3090 3: 3287 4: 3275 bogomips: 20730
  Flags: avx ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
  Vulnerabilities:
  Type: itlb_multihit status: KVM: VMX disabled
  Type: l1tf mitigation: PTE Inversion; VMX: conditional cache flushes, SMT vulnerable
  Type: mds mitigation: Clear CPU buffers; SMT vulnerable
  Type: meltdown mitigation: PTI
  Type: mmio_stale_data status: Unknown: No mitigations
  Type: retbleed status: Not affected
  Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via prctl
  Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer sanitization
  Type: spectre_v2 mitigation: Retpolines, IBPB: conditional, IBRS_FW, STIBP: conditional, RSB
    filling, PBRSB-eIBRS: Not affected
  Type: srbds status: Not affected
  Type: tsx_async_abort status: Not affected
Graphics:
  Device-1: Intel 2nd Generation Core Processor Family Integrated Graphics
    vendor: Lenovo ThinkPad T420 driver: i915 v: kernel arch: Gen-6 code: Sandybridge
    process: Intel 32nm built: 2011 ports: active: DP-1 off: LVDS-1 empty: DP-2, DP-3, HDMI-A-1,
    HDMI-A-2, HDMI-A-3, VGA-1 bus-ID: 00:02.0 chip-ID: 8086:0126 class-ID: 0300
  Display: x11 server: X.Org v: 1.21.1.7 compositor: kwin_x11 driver: X: loaded: modesetting
    unloaded: fbdev,vesa dri: crocus gpu: i915 display-ID: :0 screens: 1
  Screen-1: 0 s-res: 1920x1200 s-dpi: 96 s-size: 507x317mm (19.96x12.48") s-diag: 598mm (23.54")
  Monitor-1: DP-1 pos: primary model: Dell U2421E serial: <filter> built: 2022 res: 1920x1200
    hz: 60 dpi: 94 gamma: 1.2 size: 518x324mm (20.39x12.76") diag: 611mm (24.1") ratio: 16:10 modes:
    max: 1920x1200 min: 720x400
  Monitor-2: LVDS-1 note: disabled model: AU Optronics 0x213e built: 2010 res: 1920x1200 dpi: 132
    gamma: 1.2 size: 309x174mm (12.17x6.85") diag: 355mm (14") ratio: 16:9 modes: 1600x900
  API: OpenGL v: 3.3 Mesa 23.1.2-1~mx23ahs renderer: Mesa Intel HD Graphics 3000 (SNB GT2)
    direct-render: Yes
Audio:
  Device-1: Intel 6 Series/C200 Series Family High Definition Audio vendor: Lenovo 6
    driver: snd_hda_intel v: kernel bus-ID: 00:1b.0 chip-ID: 8086:1c20 class-ID: 0403
  API: ALSA v: k6.1.0-9-amd64 status: kernel-api tools: alsamixer,amixer
  Server-1: PipeWire v: 1.0.0 status: active with: 1: pipewire-pulse status: active
    2: wireplumber status: active 3: pipewire-alsa type: plugin 4: pw-jack type: plugin
    tools: pactl,pw-cat,pw-cli,wpctl
Network:
  Device-1: Intel 82579LM Gigabit Network vendor: Lenovo ThinkPad T520 driver: e1000e v: kernel
    port: 5080 bus-ID: 00:19.0 chip-ID: 8086:1502 class-ID: 0200
  IF: eth0 state: down mac: <filter>
  Device-2: Intel Centrino Advanced-N 6205 [Taylor Peak] driver: iwlwifi v: kernel modules: wl
    pcie: gen: 1 speed: 2.5 GT/s lanes: 1 bus-ID: 03:00.0 chip-ID: 8086:0085 class-ID: 0280
  IF: wlan0 state: up mac: <filter>
Bluetooth:
  Device-1: Broadcom BCM2045B (BDC-2.1) type: USB driver: btusb v: 0.8 bus-ID: 1-1.4:5
    chip-ID: 0a5c:217f class-ID: fe01 serial: <filter>
  Report: hciconfig ID: hci0 rfk-id: 2 state: up address: <filter> bt-v: 2.0 lmp-v: 3.0
    sub-v: 4203 hci-v: 3.0 rev: 2ec
  Info: acl-mtu: 1021:8 sco-mtu: 64:1 link-policy: rswitch hold sniff park
    link-mode: peripheral accept service-classes: rendering, capturing, object transfer, audio,
    telephony
Drives:
  Local Storage: total: 119.24 GiB used: 31.64 GiB (26.5%)
  SMART Message: Unable to run smartctl. Root privileges required.
  ID-1: /dev/sda maj-min: 8:0 vendor: SanDisk model: SD6SB1M128G1001 size: 119.24 GiB block-size:
    physical: 512 B logical: 512 B speed: 6.0 Gb/s type: SSD serial: <filter> rev: 201 scheme: MBR
Partition:
  ID-1: / raw-size: 119.23 GiB size: 116.8 GiB (97.96%) used: 31.64 GiB (27.1%) fs: ext4
    dev: /dev/sda1 maj-min: 8:1
Swap:
  Kernel: swappiness: 15 (default 60) cache-pressure: 100 (default)
  ID-1: swap-1 type: file size: 99 MiB used: 2 MiB (2.0%) priority: -2 file: /swap/swap
Sensors:
  System Temperatures: cpu: 63.0 C mobo: N/A
  Fan Speeds (RPM): cpu: 1989
Repos:
  Packages: 2632 pm: dpkg pkgs: 2625 libs: 1461 tools: apt,apt-get,aptitude,nala pm: rpm pkgs: 0
    pm: flatpak pkgs: 7
  No active apt repos in: /etc/apt/sources.list
  Active apt repos in: /etc/apt/sources.list.d/debian-stable-updates.list
    1: deb http://deb.debian.org/debian bookworm-updates main contrib non-free
  Active apt repos in: /etc/apt/sources.list.d/debian.list
    1: deb http://deb.debian.org/debian bookworm main contrib non-free non-free-firmware
    2: deb http://security.debian.org/debian-security bookworm-security main contrib non-free
    3: deb-src http://deb.debian.org/debian bookworm main contrib non-free
    4: deb http://deb.debian.org/debian bookworm-backports main contrib non-free
  Active apt repos in: /etc/apt/sources.list.d/mx.list
    1: deb http://mx.debian.nz/mx/repo/ bookworm main non-free
    2: deb http://mx.debian.nz/mx/repo/ bookworm ahs
  Active apt repos in: /etc/apt/sources.list.d/spotify.list
    1: deb http://repository.spotify.com stable non-free
Info:
  Processes: 240 Uptime: 2h 4m wakeups: 2 Memory: 7.64 GiB used: 3.42 GiB (44.8%) Init: SysVinit
  v: 3.06 runlevel: 5 default: graphical tool: systemctl Compilers: gcc: 12.2.0 alt: 12
  Client: shell wrapper v: 5.2.15-release inxi: 3.3.26
Boot Mode: BIOS (legacy, CSM, MBR)

Re: Mdadm question

Posted: Mon Apr 15, 2024 5:19 am
by Charlie Brown

Code: Select all

sudo update-initramfs -uk all
Reboot.



... If still the same:

Press E when on Grub , go throughthe bottom with the arrow keys change this

ro quiet resume=UUID=xxx resume_offset=15808512 splash
to

Code: Select all

ro quiet noresume nosplash
(nosplash is not a must but while you're at it, to see the boot process )

finally press F10 to go on boot.

If that works we'll go on to make it permanent or to change those resume parameters according to the current state.

Re: Mdadm question

Posted: Mon Apr 15, 2024 5:22 am
by Charlie Brown
Btw. your default kernel seems to be old:

To enable its auto-updating:

Code: Select all

sudo apt update ; sudo apt reinstall linux-headers-amd64 linux-image-amd64 -y

Re: Mdadm question

Posted: Mon Apr 15, 2024 6:36 am
by GerardV
Thanks Charlie for your quick reply but this is what i am getting:

Code: Select all

 sudo update-initramfs -uk all
[sudo] password for gerard:             
update-initramfs: Generating /boot/initrd.img-6.1.0-9-amd64
cryptsetup: ERROR: Couldn't resolve device 
    UUID=183c393d-89fa-4213-8b6b-9d0cf0d54d54

Re: Mdadm question

Posted: Mon Apr 15, 2024 6:39 am
by fehlix
GerardV wrote: Mon Apr 15, 2024 6:36 am Thanks Charlie for your quick reply but this is what i am getting:

Code: Select all

 sudo update-initramfs -uk all
[sudo] password for gerard:             
update-initramfs: Generating /boot/initrd.img-6.1.0-9-amd64
cryptsetup: ERROR: Couldn't resolve device 
    UUID=183c393d-89fa-4213-8b6b-9d0cf0d54d54
If you don't need them purge both cryptsetup used by initramfs and mdadm:

Code: Select all

sudo apt purge cryptsetup-initramfs mdadm
By this you won't get any of those mdadm scan warnings neither cryptsetup warning.

Re: Mdadm question

Posted: Mon Apr 15, 2024 7:35 am
by Charlie Brown
Meanwhile, do you have any invalid / old entries ( like UUID=183c393d-89fa-4213-8b6b-9d0cf0d54d54 ) in /etc/fstab or /etc/crypttab ?

(If so, remove them, you can see all current partitions' uuids and compare with lsblk -f )

Re: Mdadm question

Posted: Tue Apr 16, 2024 2:06 am
by GerardV
The UUID is identical in lsblk-f and /fstab