LinearTapeFileSystem / LinearTapeFileSystem/ltfs

Question about /dev/sg vs /dev/st vs /dev/sch0

Open
#556 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

question
Dominant language
C
Stars
352
Forks
110
Avg merge
2h 50m
Merged PRs (30d)
2

Description

Hello,

I am just starting to use LTFS (v2.4.8.1-10519) on Ubuntu 20.04. I believe I have built it correctly; it has built successfully using the instructions. Really great instructions BTW!

I have a Dell PowerVault TL 2000 scanning as an IBM 3573-TL with a IBM ULT3580-HH5 drive. This device shows up as:
/dev/st0 when using lsscsi:

❯ sudo lsscsi
[0:0:0:0]    tape    IBM      ULT3580-HH5      H971  /dev/st0
[0:0:0:1]    mediumx IBM      3573-TL          F.11  /dev/sch0

When I run ' ltfs -o device_list' it fails to find the tape drive:

❯ bin/ltfs -o device_list;
1edc LTFS14000I LTFS starting, LTFS version 2.5.0.0 (Prelim), log level 2.
1edc LTFS14058I LTFS Format Specification version 2.4.0.
1edc LTFS14104I Launched by "bin/ltfs -o device_list".
1edc LTFS14105I This binary is built for Linux (x86_64).
1edc LTFS14106I GCC version is 9.4.0.
1edc LTFS17087I Kernel version: Linux version 5.15.0-139-generic (buildd@lcy02-amd64-067) (gcc (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0, GNU ld (GNU Binutils for Ubuntu) 2.34) #149~20.04.1-Ubuntu SMP Wed Apr 16 08:29:56 UTC 2025 i386.
1edc LTFS17089I Distribution: NAME="Ubuntu".
1edc LTFS17089I Distribution: DISTRIB_ID=Ubuntu.
1edc LTFS17085I Plugin: Loading "sg" tape backend.
Tape Device list:.

It appears as if the utility is searching for devices under /dev/sgX . Do I need to recompile or reconfigure the ltfs build to search for /dev/stX ? If so, could someone point to any readme I can use?

Thank you!

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing ltfs -o device_list with the reported /dev/st0, /dev/sch0, and /dev/sgX devices on Ubuntu 20.04, then inspect the sg tape backend and the build instructions mentioned in the issue. Done means determining whether the device list should discover this tape drive and documenting or correcting the required configuration.

Written by the indexing model from the issue text.

Assessment

Tech stack
c, linux, ubuntu
Domain
operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.