Skip to content
This repository has been archived by the owner on Sep 23, 2021. It is now read-only.

Kevin-Nakamoto/LTO-CM-Analyzer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 

Repository files navigation

LTO-CM-Analyzer

LTO (Linear Tape-Open) tape Cartridge Memory (CM) Analyzer

Description

Linux bash script which converts LTO-CM binary data to human-readable cartridge information. To dump memory data from LTO-CM tag (also called MAM (Media Auxiliary Memory)), use RFID reader. Currently, RFID readers such as ACR122U, SCL3711 and Proxmark3 are able to dump data from the tag and save it to file. You can also use tape drive to do this. Check the following repos and websites for more information:

Motivation

There are several LTO CM reader/analyzer in the market, however, these are proprietary solutions and they support Windows only.

Demo

IMAGE ALT TEXT HERE

$ ./lto_analyzer.sh  lto-cm_dump.eml
-- LTO CM Manufacturer's Information --
  LTO CM Serial Number: xxxxxxxx
  CM Serial Number Check Byte: xx
  CM Size: xx
  Type: xxxx
  Manufacturer's Information: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
-- LTO CM Write-Inhibit --
  Last Write-Inhibited Block Number: xx
  Block 1 Protection Flag: xx
  Reserved: xxxx
-- Cartridge Manufacturer's Information --
  Page Id: xxxx
  Page Length: xxxx
  Cartridge Manufacturer: xxxxxx
  Serial Number: xxxxxxxx
  Cartridge Type: xxxx
  Date of Manufacture: xxxxxxxx
  Tape Length: xxxx
  Tape Thickness: xxxx
  Empty Reel Inertia: xxxx
  Hub Radius: xxxx
  Full Reel Pack Radius: xxxx
  Maximum Media Speed: xxxx
  License Code: xxxxxxxx
  Cartridge Manufacturer's Use: xxxxxxxxxxxxxxxxxxxxxxxx
  CRC: xxxxxxxx
-- Media Manufacturer's Information --
  Page Id: xxxx
  Page Length: xxxx
  Servowriter Manufacturer: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
  Reserved: xxxxxxxxxxxxxxxx
  CRC: xxxxxxxx

Requirement

  • Linux or WSL to run this script.
  • bc (Basic Calculator) command line utility.
$ sudo apt install bc	#Debian and Ubuntu
$ sudo yum install bc	#RHEL and CentOS
$ sudo dnf install bc	#Fedora

Supported LTO CM Data Fields

  • LTO CM Manufacturer's Information
  • LTO CM Write-Inhibit
  • Cartridge Manufacturer's Information
  • Media Manufacturer's Information
  • Initialisation Data
  • Tape Write Pass
  • Tape Directory
  • EOD Information
  • Cartridge Status and Tape Alert Flags
  • Mechanism Related
  • Suspended Append Writes
  • Usage Information 0 to 3
  • Application Specific

Usage

Feed binary data to this script.

$ lto_analyzer.sh [*.eml or *.bin] 

Install

Just run the script. You may want to change file permission by chmod.

Limitations

Since this script is based on LTO-1 specification, it may show wrong cartridge information for modern generations. Indeed, some parameters are not decoded correctly. See this issue.

License

MIT

Author

Kevin Nakamoto

Reference

About

Open-source project for LTO (Linear Tape-Open) tape Cartridge Memory (CM) Analyzer

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages