#1118528 sg_turs failing since trixie upgrade: bad pass-through setup

Package:
sg3-utils
Source:
sg3-utils
Description:
utilities for devices using the SCSI command set
Submitter:
Steve McIntyre
Date:
2026-06-30 12:11:01 UTC
Severity:
normal
Tags:
#1118528#5
Date:
2025-10-21 16:30:57 UTC
From:
To:
I'm using sg_turs in wrapper scripts when using optical media, to
ensure that the drive has loaded media OK and is ready to continue
with other tasks. This is useful!

However, since upgrading to trixie, calling sg_turs against my optical
drives fails to work correctly:

$ sg_turs /dev/sr0 ; echo $?
Test unit ready: bad pass-through setup
0

But adding the "-l" to use "the lower level sg_pt interface" makes
things work again.

sledge:~/debian$ sg_turs -l /dev/sr0 ; echo $?
device not ready
2

This seems like a bug...

#1118528#10
Date:
2026-05-27 22:38:59 UTC
From:
To:
control: tags -1 +upstream

The behaviour is confirmed with the upstream tarball, on different
hardware (a magnetic tape reader):

# sg_turs /dev/nst0
Test unit ready: bad pass-through setup

I have taken the liberty of reporting this upstream :
https://github.com/doug-gilbert/sg3_utils/issues/81

Best,

Aymeric