Hi, thanks for your reply.
Is this in a tape robot that prints barcodes by itself
No, there is only a single LTO-6 drive without any library or autoloader.
I used the GUI to add tapes. When adding a tape to a media pool (Tape backup --> Inventory --> Add Tape), I type the in the box what is on the label that I printed
I tried your way add tapes to inventory, however I got an error
Code:
media read error - read failed - unexpected block len (65536 != 262144)
I also tried format the tape, write the barcode back using that command. Now the barcode exists in cartridge memory.
Then add to inventory, the barcode was erased again. Seems not only format erases the barcode, but add to inventory also erases it.
The tapes were written by another backup software and block size was different, so I have to format the tape.
I also tried using dd bs=256k but not really working.
I don't really know how library works, do they auto write barcode(0x0806) to cartridge memory?