Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sg_read_attr fails with DID_ABORT on tape drive #101

Open
kevinpt opened this issue Dec 19, 2023 · 0 comments
Open

sg_read_attr fails with DID_ABORT on tape drive #101

kevinpt opened this issue Dec 19, 2023 · 0 comments

Comments

@kevinpt
Copy link

kevinpt commented Dec 19, 2023

I'm trying to read an LTO tape serial number with sg_read_attr. This is a Linux system running Debian 11 with an LTO-4 drive connected to an Adaptec card. The drive works fine for normal tape operations. sg_read_attr reports a DID_ABORT condition with both /dev/nst0 and /dev/sg9:

$ sudo sg_read_attr -v -f 0x401 /dev/nst0
    Read attribute cdb: [8c 00 00 00 00 00 00 00 00 00 00 00 20 00 00 00]
read attribute: transport: Host_status=0x05 [DID_ABORT]
Driver_status=0x00 [DRIVER_OK]

$ sudo sg_read_attr -v -f 0x401 /dev/sg9
    Read attribute cdb: [8c 00 00 00 00 00 00 00 00 00 00 00 20 00 00 00]
read attribute: transport: Host_status=0x05 [DID_ABORT]
Driver_status=0x00 [DRIVER_OK]

Is there any insight on how to resolve this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant