GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - twonote/python-mt-st: (Anyone use tape drive today? Expect no star for this lol) Controlling magnetic tape drives under Linux from Python ✨🍰✨

BranchesTags
Open more actions menu

Latest commit

 

History

18 Commits
18 Commits

Folders and files

NameName
Last commit message
Last commit date
pymtst
pymtst
 
 
tests
tests
 
 
.gitignore
.gitignore
 
 
CODE_OF_CONDUCT.md
CODE_OF_CONDUCT.md
 
 
CONTRIBUTING.md
CONTRIBUTING.md
 
 
LICENSE
LICENSE
 
 
Makefile
Makefile
 
 
README.md
README.md
 
 
_config.yml
_config.yml
 
 
changelog.txt
changelog.txt
 
 
requirements.txt
requirements.txt
 
 
setup.py
setup.py
 
 

Repository files navigation

PyPI version

A magnetic tape drive controller ✨🍰✨

Screenshot

A Python module for controlling magnetic tape drives under Linux. The module can perform tape drive operation, just like mt variants (mt-st, mt-gnu, etc.) under Unix-like OSs. For example, a user can rewind, forward/backward space, erase the cartridge, and so on. The current implementation is just a wrapper of mt-gnu. In the future, we will move to communicate with Linux st driver directly via ioctl instead.

Usage

[TODO]

Prerequisites

  1. Linux/Python 3
  2. The current version is wrapping GNU tools. Make sure mt-gnu/mt-st/sg_logs is in your execution path.
  3. Root privilege is necessary for operating a magnetic tape drive.
  4. You will need either a real tape drive or use mhvtl as a simulate tape drive.

Install

  1. $ cd [project_home]
  2. $ pip install .

Tape Drive Configuration

  1. You can find out what tape devices you have by this guide.
  2. Ensuring that the tape modes are properly set by following commands: (Assume your tape drive is in /dev/nst0)
  • mt -f /dev/nst0 stoptions buffer-writes async-writes read-ahead
  • mt -f /dev/nst0 defblksize 0

Testing

  1. You need either a real tape drive or mhvtl for simulation.
  2. After tape drive is ready, update tape drive information in test/tape_conf.py
  3. run test cases by $ make test

About

(Anyone use tape drive today? Expect no star for this lol) Controlling magnetic tape drives under Linux from Python ✨🍰✨

twonote.github.io/python-mt-st/

Topics

archivinghacktoberfesthardwarelinuxmagnetic-tapemt-gnumt-stpythonstoragesystem-administrationutilities

Resources

Readme
LGPL-2.1 license

Code of conduct

Code of conduct

Contributing

Contributing
Activity
Custom properties

Stars

18 stars

Watchers

1 watching

Forks

5 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.