Pre-labelled LTO-6/LTFS tape numbers- Are the tape numbers stored somewhere on the tape?

I have some Fujifilm LTO-6 tapes which come labelled with tape numbers. I'm writing a script and I would like to assign a variable from the tape number. Is this information stored anywhere on the tape? If it's not I'll just have to create a variable from an input prompt, but if it is it would be much better.


Every LTO cartridge has a so called MAM-chip (media auxiliary memory). This chip contains a lot of information like the manufacturer, manufacturing date, serial number etc.

There is also a field "barcode". When you use an autoloader that read the barcode and it inserts the tape into a drive it will then update this field.

When you ordered prelabeled tapes, it really depends. If they're factory made you might be lucky and the information in MAM is already set.

You can read the mam chip data using SCSI commands. There is a rudiementary software that can do this on linux: http://github.com/arogge/maminfo