sdparm is a command line utility designed to get and set SCSI device parameters (cf hdparm for ATA disks). The parameters are held in mode pages. Apart from SCSI devices (e.g. disks, tapes and enclosures) sdparm can be used on any device that uses a SCSI command set. sdparm also can decode VPD pages including the device identification page. Commands to start and stop the media; load and unload removable media and some other housekeeping functions are supported. sdparm supports the Linux kernel 2.6, 3, 4 and 5 series with ports to FreeBSD, Solaris, Android and Windows. For more information and downloads see: https://sg.danny.cz/sg/sdparm.html or https://doug-gilbert.github.io/sdparm.html There is a tagged github mirror (of my subversion repository) at: https://github.com/doug-gilbert/sdparm ChangeLog for released sdparm-1.12 [20210421] [svn: r347] - add Command duration limits T2A and T2B mpages - add Sequestered command fields in Control extension mpage - SAS/SPL disconnect-reconnect mpage: BILUNIT and CTLUNIT fields added (21-021r3) - vpd: SCSI Feature Sets [0x92]: add ZBC feature sets - add SAT ATA Feature control mpage (20-085r4) - block device char vpd page: add zoned strings - expand Out of band management control mpage (spl5r08) - vpd: add Format presets and Concurrent positioning ranges pages - vpd: standard inquiry: add hot_pluggable field - sg_lib: allows access to cache mpage's WCE for nvme - start using autoconf 2.70 - point svn:externals to sg3_utils release 1.46 (rev 891) ChangeLog for sdparm-1.11 [20200303] [svn: r334] ... An experimental feature noted in the ChangeLog is the ability to set and clear WCE (write cache enable) on a NVMe disk. More NVMe support may creep in on a as needed basis in the future. And 'sdparm -i <nvme_ns>' will output NVMe device identification data formatted in the same fashion as the SCSI Device Identification VPD page. Doug Gilbert