Hard disk image

sdparm – accesses SCSI device parameters

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-CLINVM-Express user space tooling
SmartmontoolsControl and monitor storage systems using S.M.A.R.T.
scrutinyWebUI for smartd S.M.A.R.T monitoring
openSeaChestPerform various operations on SATA, SAS, NVMe, and USB storage devices
GSmartControlGraphical user interface for smartctl
hdparmTune hard disk parameters for high performance
sg3_utilsUtilities that send SCSI commands to devices
sdparmAccesses SCSI device parameters
nwipeSecure disk eraser
Bonnie++Toolkit for testing hard drive and file system performance

Read our verdict in the software roundup.


Best Free and Open Source Software 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.
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted