List features of NVMe drive (like hdparm -I for non-NVME)
16
votes
2
answers
17156
views
With a non-NVMe drive, I can run:
# hdparm -I /dev/whatever | grep TRIM
Data Set Management TRIM supported (limit 8 block)
Deterministic read data after TRIM
With a Samsung 960 EVO 1TB NVMe drive (PCI Express), I get:
# hdparm -I /dev/nvme0n1
/dev/nvme0n1:
HDIO_DRIVE_CMD(identify) failed: Inappropriate ioctl for device
I can run
# smartctl --all /dev/nvme0n1
And get some information about the drive, but nothing about TRIM type.
I installed
nvme-cli
, and ran nvme get-feature -f 0
to -f 0xe
and got some features from the drive, but nothing about TRIM type.
Is there a way in Linux to query an NVME device, to list what type of TRIM it supports?
Is there a way in Linux to query an NVMe device, to get a list of anything else hdparm -I
would show if it weren't an NVMe, that smartctl
and nvme
don't seem to cover?
Asked by user1902689
(1228 rep)
Sep 29, 2018, 03:38 AM
Last activity: Mar 5, 2023, 08:56 PM
Last activity: Mar 5, 2023, 08:56 PM