AMTAPETYPE(8)

๐Ÿ’– AMTAPETYPE ๐Ÿ’–

okay bestie, sit down, hydrate, and let me tell you about amtapetype โ€” it's an 8th-section system administration command and it's lowkey one of the most useful little gremlins in the Amanda family. ๐Ÿ’…


โœจ NAME โœจ

amtapetype โ€” generate a tapetype definition by testing the device directly


๐ŸŒธ SYNOPSIS ๐ŸŒธ

amtapetype [-h] [-c] [-f] [-p] [-b blocksize] [-t typename] [-l label]
           [-o configoption...] [config] [device]

๐Ÿฆ‹ DESCRIPTION ๐Ÿฆ‹

so amtapetype literally generates a tapetype entry for Amanda, and the way it does that is by testing the device directly. no middleman. no vibes-based guessing. it just goes and pokes the actual hardware. iconic behavior tbh ๐Ÿซถ


๐ŸŽ€ OPTIONS ๐ŸŽ€

โš ๏ธ heads up queen โ€” the options for amtapetype changed in version 2.6.1. if you're reading an ancient tutorial, that's why nothing matches. ๐Ÿ’€
  • -h โ€” display the help message. simple. polite. slay.
  • -c โ€” run only the hardware compression detection heuristic test, then stop. this one only takes a few minutes, so it's the lil snack-sized run. ๐Ÿ“
  • -f โ€” run amtapetype even if the loaded volume is already labeled. for the bold ones.
  • -p โ€” run only the device property discovery. that's it, that's the whole job.
  • -b blocksize โ€” the block size to use with the device. default: 32k.
  • -t typename โ€” the name to give to the new tapetype definition. name your baby. ๐Ÿ‘‘
  • -l label โ€” the label to write on the tape. default is randomly generated, so if you don't care, the universe picks for you. ๐ŸŒˆ
  • -o configoption โ€” see the "CONFIGURATION OVERRIDE" section in amanda(8).

if a configuration is specified, it gets loaded and used to configure the device. but listen, and listen closely bestie: global configuration parameters are not applied to the device. so if you need properties applied to a device in order to run amtapetype, you gotta supply those properties in a named device section. no cap. ๐Ÿ™ˆ


๐Ÿ’œ EXAMPLE ๐Ÿ’œ

generate a tapetype definition for your tape device:

% amtapetype -f /dev/nst0

look at you go. main character energy. โœจ


๐Ÿ”ฅ NOTES ๐Ÿ”ฅ

if the device can't reliably report its compression status โ€” and as of this writing, no devices can do so ๐Ÿ˜ญ โ€” then hardware compression is detected by measuring the writing speed difference of the tape drive when writing an amount of compressible and incompressible data. so if your tape drive has very large buffers, or is just extremely fast, the program could fail to detect hardware compression status reliably. it's doing its best.

volume capacity is determined by writing one large file until an error โ€” interpreted as end-of-tape โ€” is encountered. then, in the next phase, about 100 files are written to fill the tape. that second phase will write less data, because each filemark consumes some tape. with a little arithmetic, amtapetype calculates the size of these filemarks. math girlie behavior. ๐Ÿงฎ

now here's the messy part: all sorts of things might cause the amount of data written to vary enough to generate a strange filemark size guess. a little more "shoe shining" because of the additional file marks (and flushes), dirt left on the heads from the first pass of a brand new tape, the temperature/humidity changing during the multi-hour run, a different amount of data being written after the last file mark before EOT was reported, etc. it's giving chaos. it's giving entropy. ๐ŸŒ€

and note that the file mark size might really be zero for whatever device this is โ€” and it was just the measured capacity variation that made amtapetype think those extra file marks in pass 2 actually took up space. so likeโ€ฆ don't @ it. ๐Ÿ™ˆ


๐Ÿ’– SEE ALSO ๐Ÿ’–

the Amanda Wiki: : http://wiki.zmanda.com/


๐Ÿ‘‘ AUTHORS ๐Ÿ‘‘


and that's the whole page, bestie!! this little gem ships with Amanda 3.5.4, dated 08/26/2026 โ€” go forth, label your tapes, and absolutely slay your backups. periodt. ๐Ÿ’…โœจ๐ŸŽ€๐Ÿฆ‹

๐Ÿ“ฆ where this page comes from