sg3_utils icon indicating copy to clipboard operation
sg3_utils copied to clipboard

Author's own git mirror of his sg3_utils subversion repository. Note: default branch is now _main_. It includes tags from the various releases.

Results 29 sg3_utils issues
Sort by recently updated
recently updated
newest added

I reported an [issue](https://github.com/systemd/systemd/issues/32769) to systemd, stating that `udevd stop my HDD from spinning down`. The root cause is that `sg_start` opens the block device in read-write mode by default....

This PR fixes missing output fields from `sg_inq`. 1) with `--export`, the `SCSI_MODEL, SCSI_MODEL_ENC, SCSI_REVISION`, and other fields are missing. 2) without `--export`, the "Unit serial number:" field is missing....

For the parameters in `show_data_compression_page` the length `pl` is initialized from `bp[3]` and checked for `0 || > 8`, but the value passed to `sg_get_unaligned_be` is off-by-four. So all values...

The udev rules spit out lots of warnings like this: 55-scsi-sg3_id.rules[15445]: WARNING: SCSI device loop0 has no device ID, consider changing .SCSI_ID_SERIAL_SRC in 00-scsi-sg3_config.rules Because the warning code had erroneously...

Passing the -r flag unmounts the active root disk if it's SCSI ``` [fedora@localhost ~]$ sudo rescan-scsi-bus.sh -r Syncing file systems which: no multipath in (/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/var/lib/snapd/snap/bin) Scanning SCSI subsystem for...

- rescan-scsi-bus.sh: cleanup temporary files - rescan-scsi-bus.sh: use new cleanup mechanism in findremapped()

This fixes a compilation error when building on illumos (and almost certainly Solaris as well). Without this, compilation fails because the `sg_warnings_strm` is not defined when building lib/sg_pt_solaris.c

Hello, I updated to the latest version of sg3_utils and noticed that some of my test scripts didn't work anymore. After a quick study, I noticed that the sg_wr_mode input...

Similar to sg_timestamp for SCSI, sg_sat_datetime allows the date and time (timestamp) to be set-on and returned-from ATA devices. This provides the ability to syncronize the system clock with the...

``` # /usr/local/sbin/rescan-scsi-bus.sh -V 20220930 # rpm -q sg3_utils sg3_utils-1.46-5.fc38.x86_64 # /usr/local/sbin/rescan-scsi-bus.sh Scanning SCSI subsystem for new devices Scanning host 0 for SCSI target IDs 0 1 2 3 4...