Skip to content

lsblk HOTPLUG does not match /sys/class/block/*/removable #3088

@funny0facer

Description

@funny0facer

lsblk -d -o NAME,HOTPLUG shows a different HOTPLUG value than tail /sys/class/block/sda/removable for my sda device (SATA SSD) with kernel >= 6.9

$ LC_ALL=C sudo pacman -Qi util-linux linux
Name            : util-linux
Version         : 2.40.1-1
Description     : Miscellaneous system utilities for Linux
Architecture    : x86_64
URL             : https://github.com/util-linux/util-linux
Licenses        : BSD-2-Clause  BSD-3-Clause  BSD-4-Clause-UC  GPL-2.0-only  GPL-2.0-or-later  GPL-3.0-or-later  ISC  LGPL-2.1-or-later  LicenseRef-PublicDomain
Groups          : None
Provides        : rfkill  hardlink
Depends On      : util-linux-libs=2.40.1  coreutils  file  libmagic.so=1-64  glibc  libcap-ng  libxcrypt  libcrypt.so=2-64  ncurses  libncursesw.so=6-64  pam  readline
                  shadow  systemd-libs  libsystemd.so=0-64  libudev.so=1-64  zlib
Optional Deps   : words: default dictionary for look
Required By     : base  btrfs-assistant  f2fs-tools  fakeroot  mkinitcpio  ntfs-3g  ostree  systemd  zeromq
Optional For    : corectrl  e2fsprogs  gzip
Conflicts With  : rfkill  hardlink
Replaces        : rfkill  hardlink
Installed Size  : 14.47 MiB
Packager        : Christian Hesse <eworm@archlinux.org>
Build Date      : Mon May 6 21:22:23 2024
Install Date    : Wed May 8 00:26:49 2024
Install Reason  : Installed as a dependency for another package
Install Script  : No
Validated By    : Signature

Name            : linux
Version         : 6.9.3.arch1-1
Description     : The Linux kernel and modules
Architecture    : x86_64
URL             : https://github.com/archlinux/linux
Licenses        : GPL-2.0-only
Groups          : None
Provides        : KSMBD-MODULE  VIRTUALBOX-GUEST-MODULES  WIREGUARD-MODULE
Depends On      : coreutils  initramfs  kmod
Optional Deps   : wireless-regdb: to set the correct wireless channels of your country
                  linux-firmware: firmware images needed for some devices [installed]
Required By     : None
Optional For    : base
Conflicts With  : None
Replaces        : virtualbox-guest-modules-arch  wireguard-arch
Installed Size  : 134.12 MiB
Packager        : Jan Alexander Steffens (heftig) <heftig@archlinux.org>
Build Date      : Fri May 31 17:14:45 2024
Install Date    : Sun Jun 2 15:32:06 2024
Install Reason  : Explicitly installed
Install Script  : No
Validated By    : Signature

I had some discussion on this over on the Arch Linux forum. See here: https://bbs.archlinux.org/viewtopic.php?pid=2175987#p2175987

it seems like lsblk is checking in a wrong directory "sdaable"
I can't post the complete output of strace here as this exceeds 65536 characters.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions