Eliot Moss via Cygwin wrote:
On 5/19/2025 9:14 AM, Christian Franke wrote:
The following package has been uploaded to the Cygwin distribution:
* smartmontools-7.5-1
Thank you for this! It works fine on an attached HDD, but with my
built-in
NVMe, I get this, in response to /usr/sbin/smartctl -r ioctl,2 -i
/dev/sda
smartctl 7.5 2025-04-30 r5714 [x86_64-pc-cygwin-w11-24H2] (cygwin-7.5-1)
Copyright (C) 2002-25, Bruce Allen, Christian Franke,
www.smartmontools.org
\\.\PhysicalDrive0: successfully opened
IOCTL_STORAGE_QUERY_PROPERTY returns:
Vendor: "NVMe"
Product: "KXG80ZN84T09 NVMe KIOXIA 4096GB"
Revision: "11304103"
Removable: No
BusType: 0x11
\\.\PhysicalDrive0: successfully opened
[NVMe call: opcode=0x06, size=0x1000, nsid=0x00000000, cdw10=0x00000001]
[STORAGE_QUERY_PROPERTY: Id=49, Type=1, Value=0x00000001,
SubVal=0x00000000]
[STORAGE_QUERY_PROPERTY: ReturnData=0x00000000, Reserved[3]={0x0,
0x0, 0x0}]
[Duration: 0.000109s]
[NVMe call failed: IOCTL_STORAGE_QUERY_PROPERTY(NVMe) failed, Error=1]
Read NVMe Identify Controller failed:
IOCTL_STORAGE_QUERY_PROPERTY(NVMe) failed, Error=1
Which NVMe driver is used according to devmgmt.msc?
The above output suggests that the driver does not support the NVMe
extensions of IOCTL_STORAGE_QUERY_PROPERTY[1]. This is typical for
drivers which also support RAID.
For example Intel RST drivers provide vendor independent pass-through
functionality for non-RAID SATA drives (IOCTL_ATA_PASS_THROUGH), but not
for NVMe. There is a vendor specific NVMe pass-through ioctl available,
but this is not yet implemented in smartctl.
--
Regards,
Christian
[1]
https://learn.microsoft.com/en-us/windows/win32/fileio/working-with-nvme-devices
--
Problem reports: https://cygwin.com/problems.html
FAQ: https://cygwin.com/faq/
Documentation: https://cygwin.com/docs.html
Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple