项目作者: Kevin-Nakamoto

项目描述 :
Open-source project for LTO (Linear Tape-Open) tape Cartridge Memory (CM) Analyzer
高级语言: Shell
项目地址: git://github.com/Kevin-Nakamoto/LTO-CM-Analyzer.git
创建时间: 2019-12-25T17:40:35Z
项目社区:https://github.com/Kevin-Nakamoto/LTO-CM-Analyzer

开源协议:MIT License

下载


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

  1. $ ./lto_analyzer.sh lto-cm_dump.eml
  2. -- LTO CM Manufacturer's Information --
  3. LTO CM Serial Number: xxxxxxxx
  4. CM Serial Number Check Byte: xx
  5. CM Size: xx
  6. Type: xxxx
  7. Manufacturer's Information: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
  8. -- LTO CM Write-Inhibit --
  9. Last Write-Inhibited Block Number: xx
  10. Block 1 Protection Flag: xx
  11. Reserved: xxxx
  12. -- Cartridge Manufacturer's Information --
  13. Page Id: xxxx
  14. Page Length: xxxx
  15. Cartridge Manufacturer: xxxxxx
  16. Serial Number: xxxxxxxx
  17. Cartridge Type: xxxx
  18. Date of Manufacture: xxxxxxxx
  19. Tape Length: xxxx
  20. Tape Thickness: xxxx
  21. Empty Reel Inertia: xxxx
  22. Hub Radius: xxxx
  23. Full Reel Pack Radius: xxxx
  24. Maximum Media Speed: xxxx
  25. License Code: xxxxxxxx
  26. Cartridge Manufacturer's Use: xxxxxxxxxxxxxxxxxxxxxxxx
  27. CRC: xxxxxxxx
  28. -- Media Manufacturer's Information --
  29. Page Id: xxxx
  30. Page Length: xxxx
  31. Servowriter Manufacturer: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
  32. Reserved: xxxxxxxxxxxxxxxx
  33. CRC: xxxxxxxx

Requirement

  • Linux or WSL to run this script.
  • bc (Basic Calculator) command line utility.
    1. $ sudo apt install bc #Debian and Ubuntu
    2. $ sudo yum install bc #RHEL and CentOS
    3. $ 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.

  1. $ 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