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 carefully curated directory of recommended free and open source software, covering every major software category.

The directory forms part of our extensive collection of articles for Linux enthusiasts. It includes hundreds of detailed reviews, together with free and open source alternatives to proprietary software from companies such as Google, Microsoft, Apple, Adobe, IBM, Cisco, Oracle, and Autodesk.

LinuxLinks also covers interesting projects worth exploring, Linux-compatible hardware, free programming books and tutorials, and much more.

Know a useful free and open source Linux application that we haven’t covered? Tell us about it using our submission form.
Subscribe

Please read our Comment Policy before commenting.

Notify of
guest
0 Comments
Oldest
Newest Most Voted