sdparm is a command line utility designed to get and set SCSI disk parameters (cf hdparm for ATA disks). More generally it gets and sets mode page information on SCSI devices or devices that use a SCSI command set (e.g. CD/DVD drives (any transport) and SCSI tape drives). It also can list VPD pages including the device identification page.
For more information and downloads (tarball, rpm and deb packages) see: http://www.torque.net/sg/sdparm.html
There are now more than 150 parameters accessed by sdparm. Thanks to Kai Makisara for interface and sanity checking suggestions.
ChangeLog for sdparm-0.92 [20050520] - add data compression and device configuration mode pages (ssc3) - add timeout + protect plus write parameters mode pages (mmc5) - add XOR control mode page (sbc2) - add SES management mode page (ses2) - discriminate mode pages based on device's peripheral device type - disallow set/clear acronyms whose pdt doesn't match current device - with option "-ll" decode more of INQUIRY standard response - improve error checking when getting non-existent fields - use double fetch technique when fetching mode pages - add RBC device parameters mode page (rbc) - add '--flexible' option for mode sense 6/10 response mixup - '--inquiry -all' now outputs supported VPD pages page
Doug Gilbert - : send the line "unsubscribe linux-scsi" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html