The sdparm utility accesses SCSI device parameters. When the SCSI device is a disk, sdparm’s role is similar to its namesake: the Linux hdparm utility which is primarily designed for ATA disks that had device names starting with “hd”. More generally sdparm can be used to access parameters on any device that uses a SCSI command set. Apart from SCSI disks, such devices include CD/DVD drives (irrespective of transport), SCSI and ATAPI tape drives and SCSI enclosures.
A small set of commands associated with starting and stopping the media, loading and unloading removable media and some other housekeeping functions can also be sent with this utility.
This utility currently contains over 500 entries spread across generic mode pages, transport specific mode pages, vendor specific mode pages, Vital Product Data (VPD) pages and their fields. Rather than try and document all of these here (or in the man page), another approach is taken. This utility’s internal tables can be searched and output with the ‘–enumerate’ option. Additional explanatory information is output when the ‘–long’ option is used (and still more if the ‘–long’ option is used twice).
Website: sg.danny.cz/sg/sdparm.html
Support:
Developer: Douglas Gilbert
License: FreeBSD
sdparm is written in C. Learn C with our recommended free books and free tutorials.
Related Software
| Handy Hard Disk Utilities | |
|---|---|
| NVMe-CLI | NVM-Express user space tooling |
| Smartmontools | Control and monitor storage systems using S.M.A.R.T. |
| scrutiny | WebUI for smartd S.M.A.R.T monitoring |
| openSeaChest | Perform various operations on SATA, SAS, NVMe, and USB storage devices |
| GSmartControl | Graphical user interface for smartctl |
| hdparm | Tune hard disk parameters for high performance |
| sg3_utils | Utilities that send SCSI commands to devices |
| sdparm | Accesses SCSI device parameters |
| nwipe | Secure disk eraser |
| Bonnie++ | Toolkit for testing hard drive and file system performance |
Read our verdict in the software roundup.
Explore our comprehensive directory of recommended free and open source software. Our carefully curated collection spans every major software category.This directory is part of our ongoing series of informative articles for Linux enthusiasts. It features hundreds of detailed reviews, along with open source alternatives to proprietary solutions from major corporations such as Google, Microsoft, Apple, Adobe, IBM, Cisco, Oracle, and Autodesk. You’ll also find interesting projects to try, hardware coverage, free programming books and tutorials, and much more. Discovered a useful open source Linux program that we haven’t covered yet? Let us know by completing this form. |

