Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bug#1004443: smartctl -i /dev/nvme0n1: "Read NVMe Identify Controller failed: NVME_IOCTL_ADMIN_CMD: Inappropriate ioctl for device"

660 views
Skip to first unread message

Jakub Wilk

unread,
Jan 27, 2022, 2:20:04 PM1/27/22
to
Package: smartmontools
Version: 7.2-1

The smartctl man page reads:

>Use the forms "/dev/nvme[0-9]" (broadcast namespace) or
>"/dev/nvme[0-9]n[1-9]" (specific namespace 1-9) for NVMe devices.

The broadcast namespace indeed works:

# smartctl -i /dev/nvme0
smartctl 7.2 2020-12-30 r5155 [x86_64-linux-5.15.0-3-amd64] (local build)
Copyright (C) 2002-20, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Number: CT500P2SSD8
...

But when I try to use the specific namespace, I get:

# smartctl -i /dev/nvme0n1
smartctl 7.2 2020-12-30 r5155 [x86_64-linux-5.15.0-3-amd64] (local build)
Copyright (C) 2002-20, Bruce Allen, Christian Franke, www.smartmontools.org

Read NVMe Identify Controller failed: NVME_IOCTL_ADMIN_CMD: Inappropriate ioctl for device

Please make the other form work too.

(I'm actually interested in using /dev/disk/by-id/nvme-* symlinks, and
they point to /dev/nvme[0-9]n[1-9].)


-- System Information:
Architecture: i386

Versions of packages smartmontools depends on:
ii debianutils 5.7-0.1
ii lsb-base 11.1.0
ii libc6 2.33-5
ii libcap-ng0 0.7.9-2.2+b1
ii libgcc-s1 11.2.0-14
ii libselinux1 3.3-1+b1
ii libstdc++6 11.2.0-14
ii libsystemd0 250.3-2

--
Jakub Wilk
0 new messages