mirror of
https://github.com/aaru-dps/Aaru.git
synced 2026-02-04 00:54:33 +00:00
Aaru cannot read DDS2 tape using Sony SDT-11000 over Aaru Remote Server / Debian 5 #971
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @kkaisershot on GitHub (Oct 23, 2023).
Version
5.3.0
Commit hash
No response
Tested debug version?
Which operating systems have you used?
What is the architectural bit size you're using?
What processor are you using?
Device manufacturer
Sony
Device model
SDT-11000
Bus the device uses to attach to the computer
USB cable or card reader manufacturer
No response
USB cable or card reader model
No response
What were you doing when it failed?
Description
This bug report is rather involved and doesn't quite fit the standard template, but please bear with me while I do my best to describe it...
My Aaru setup (for the purpose of this report) consists of a standalone Arch Linux (kernel 6.0.5-arch1-1) box hosting Aaru 5.3.2 LTS, and a Debian Linux 5.0 (kernel 2.6.26-2-powerpc) Power Mac G3 beige minitower @ local IP 10.0.0.159 running Aaru Remote Server 0.99.195, specifically Git hash 6186813 which is the latest upstream as of the time of this writing. This configuration is because my Power Mac is the only machine I have with native SCSI capabilities, and I want to use Aaru to dump DDS tapes using the Sony SDT-11000 drive I have connected via the Power Mac's onboard SCSI controller. I have previously submitted a device report for the Sony SDT-11000 here: https://github.com/aaru-dps/Aaru/issues/764
The bug here is two-fold:
An unmodified Aaru Remote Server built from hash 6186813 will not allow Aaru to detect the presence of my Sony SDT-11000 drive when queried via
aaru device list -vd aaru://10.0.0.159 > aaru-device-list-stock-aaruremote.txt 2>&1. See aaru-device-list-stock-aaruremote.txt for full Aaru output. I also captured and attached an strace on the Power Mac by runningstrace -e trace=ioctl,open,read,close,write -o strace-stock-aaruremote.log linux/aaruremoteas root from an unmodified local aaruremote checkout and build.When the upstream Aaru Remote Server hash 6186813 is patched to force listing /dev/st0 as a SCSI device (see attached aaruremote-blitter-st.patch), Aaru will detect it via
aaru device list -vd aaru://10.0.0.159 > aaru-device-list-patched-aaruremote.txt 2>&1-- see attached output and aaruremote strace. Furthermore, if Aaru is then used to attempt a media dump viaaaru media dump -vd aaru://10.0.0.159/dev/st0 /mnt/tapetest.aaruf > aaru-media-dump-patched-aaruremote.txt 2>&1, Aaru will correctly identify the type of media in the drive, but cannot read it and aborts operation. See attached aaru-media-dump-patched-aaruremote.txt and strace-patched-aaruremote-dumping.log files for details.Not sure whether this is an Aaru Remote Server bug or an Aaru bug (possibly both), but since an error message is reported in Aaru, I'm reporting it as an Aaru bug.
It is worth noting that the tape in question definitely has data on it and that both the tape and the drive are known working-- they work without issue in Retrospect 5 in Mac OS 9.2.2 on the same Power Mac. Indeed, I used Retrospect 5 to read and write to my test tape in preparing a minimal example for this bug report.
aaru-device-list-stock-aaruremote.txt
strace-stock-aaruremote.log
aaruremote-blitter-st.patch
aaru-device-list-patched-aaruremote.txt
strace-patched-aaruremote.log
aaru-media-dump-patched-aaruremote.txt
strace-patched-aaruremote-dumping.log
Exact command line used
aaru media dump -vd aaru://10.0.0.159/dev/st0 /mnt/tapetest.aaruf
Expected behavior
I expected Aaru to list my Sony SDT-11000 via
aaru device list aaru://10.0.0.159using an unpatched build of Aaru Remote Server running on my Power Mac / Debian 5. Failing that, I expected a patched build of Aaru Remote Server that forces listing /dev/st0 to allow Aaru to dump a test tape viaaaru media dump -vd aaru://10.0.0.159/dev/st0 /mnt/tapetest.aarufActual behavior
Aaru Remote Server as of hash 6186813 must be patched to force /dev/st0 on my Power Mac / Debian 5 to be listed for Aaru to detect its presence at all. But even with such a hack, Aaru cannot dump a test tape from aaru://10.0.0.159/dev/st0. "Cannot read device, don't know why, exiting..."
Output of command execution with debug output enabled
Media details
Maxell HS-4/120s DDS2