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โ runamtapetypeeven 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.-bblocksize โ the block size to use with the device. default:32k.-ttypename โ the name to give to the new tapetype definition. name your baby. ๐-llabel โ the label to write on the tape. default is randomly generated, so if you don't care, the universe picks for you. ๐-oconfigoption โ see the "CONFIGURATION OVERRIDE" section inamanda(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 ๐
- Dustin J. Mitchell
<dustin@zmanda.com>โ Zmanda, Inc. (http://www.zmanda.com) - Jean-Louis Martineau
<martineau@zmanda.com>โ Zmanda, Inc. (http://www.zmanda.com)
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
- ubuntu stonking: amanda-common 1:3.5.4-2.1ubuntu1 ยท Custom
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms