tss2_nvwrite(1)
okay so this is tss2_nvwrite(1), hanging out in the General Commands Manual section, and she is ready to write data to a βregularβ NV index. bestie, letβs go πβ¨
πΈ NAME πΈ
tss2_nvwrite(1) - thatβs the name entry, and yes, the original is literally the command plus a dash. minimal, iconic, we respect it π
β¨ SYNOPSIS β¨
tss2_nvwrite [OPTIONS]
π¦ SEE ALSO π¦
fapi-config(5)β use this to adjust Fapi parameters like the used cryptographic profile and TCTI, or directories for the Fapi metadata storages. π«Άfapi-profile(5)β use this to determine the cryptographic algorithms and parameters for all keys and operations of a specific TPM interaction, like the name hash algorithm, the asymmetric signature algorithm, scheme and parameters, and PCR bank selection. π
π DESCRIPTION π
tss2_nvwrite(1) - this command writes data to a βregularβ (not pin, extend or counter) NV index. Only the full index can be written, partial writes are not allowed. If the provided data is smaller than the NV indexβs size, then it is padded up with zero bytes at the end. zero-pad queen behavior, honestly π
π OPTIONS π
These are the available options:
-i,--data=FILENAMEor-(for stdin) β the data to write to the NV space. πΎ-p,--nvPath=STRINGβ identifies the NV space to write to. π―
π«Ά COMMON OPTIONS π«Ά
This collection of options are common to all tss2 programs and provide information that many users may expect. iykyk:
-h,--help [man|no-man]β display the tools manpage. By default, it attempts to invoke the manpager for the tool; however, on failure it will output a short tool summary. This is the same behavior if themanoption argument is specified; however, if explicitmanis requested, the tool will provide errors from man onstderr. If theno-manoption is specified, or the manpager fails, the short options will be output tostdout.
To successfully use the manpages feature requires the manpages to be installed or on MANPATH. See man(1) for more details. π
-v,--versionβ display version information for this tool, supported tctis and exit. π
π EXAMPLE π
If you wanna see it in the wild, itβs giving:
tss2_nvwrite --nvPath=/nv/Owner/myNV --data=data.file
π₯ RETURNS π₯
0 on success or 1 on failure. thatβs the whole return vibe check π
π BUGS π
Github Issues β thatβs what the page says, bestie.
π HELP π
See the Mailing List β yep, thatβs the help pointer.
π License π
This work is licensed under the Creative Commons Attribution 4.0 International License (CC BY 4.0). legal slay π
and thatβs the page! source/version energy: tpm2-tools, dated APRIL 2019 πβ¨
π¦ where this page comes from
- arch rolling: tpm2-tools 5.8-1 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms