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

Reply via email to