Hard disk image

sg3_utils – utilities for managing SCSI devices

sg3_utils is a collection of command-line utilities for communicating with storage devices using SCSI command sets. It allows administrators and developers to issue commands directly to compatible hardware, retrieve diagnostic information and examine device capabilities.

Although originally designed for traditional SCSI devices, the package also works with other storage technologies that expose SCSI commands. These include Serial Attached SCSI devices, Fibre Channel storage and some SATA or USB-connected devices using command translation.

The utilities cover a broad range of administrative and diagnostic operations. Most programs perform a particular SCSI command, while others provide more extensive functionality for copying data, examining device responses and troubleshooting hardware.

sg3_utils is particularly useful when investigating low-level storage problems or working with devices whose functionality is not fully exposed through general-purpose disk utilities.

This is free and open source software.

Key Features

  • Device inquiry – retrieve identification information, supported features and device characteristics.
  • Capacity reporting – examine logical block sizes, storage capacity and related device information.
  • SCSI command execution – send individual SCSI commands directly to supported devices.
  • Raw commands – issue custom command descriptor blocks for advanced investigation and testing.
  • Log analysis – retrieve and interpret SCSI log pages containing diagnostic and performance information.
  • Sense data decoding – interpret error conditions and SCSI sense responses.
  • Vital Product Data – examine device identification, supported pages and additional hardware details.
  • Mode page inspection – retrieve information about supported device configuration parameters.
  • Device testing – execute supported diagnostic commands and examine results.
  • Storage copying – provides utilities for copying and verifying data using SCSI commands.
  • Enclosure management – inspect and control supported SCSI enclosure services.
  • Cross-platform support – runs on Linux, FreeBSD, and Windows.

Website: sg.danny.cz/sg/sg3_utils.html
Support:
Developer: Douglas Gilbert
License: BSD 2-Clause ‘Simplified’ License and GNU General Public License v2.0 (varies by utility)

sg3_utils 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
GSmartControlGraphical user interface for smartctl
hdparmTune hard disk parameters for high performance
sg3_utilsUtilities that send SCSI commands to devices
sdparmAccesses SCSI device parameters
QDiskInfoGraphical utility for viewing SMART disk health information
nwipeSecure disk eraser
smartctl_exporterPrometheus exporter for monitoring SMART drive metrics
GNOME DisksGraphical application for managing disks and partitions
Bonnie++Toolkit for testing hard drive and file system performance

Read our verdict in the software roundup.


Best Free and Open Source Software LinuxLinks helps you discover the best free and open source software for Linux. Explore our extensive collection of recommended applications, including alternatives to popular proprietary software.

We also publish software reviews, Linux tutorials, hardware reviews, free programming books and articles covering the wider open source community. Browse our Linux resources to discover more.

Know a useful free and open source Linux application we haven't covered? Suggest a program for inclusion.

Has your software been featured on LinuxLinks? Display one of our Featured on LinuxLinks badges on your website or GitHub README.
Subscribe

Please read our Comment Policy before commenting.

Notify of
guest
0 Comments
Oldest
Newest Most Voted