tpm_nvwrite(8)
π tpm_nvwrite β the NVRAM glow-up page π
okay bestie, welcome to the tpm_nvwrite(8) manual page, section 8, TPM Management core. this is the one that puts your bytes into an NVRAM area, and honestly? it ate. let's get into it π«Ά
πΈ NAME πΈ
tpm_nvwrite β no cap, that's literally the whole name, she's iconic like that β¨
π SYNOPSIS π
tpm_nvwrite [OPTIONS]
just the command and your options, that's the whole vibe π
π¦ DESCRIPTION π¦
so here's the tea: tpm_nvwrite writes data to an NVRAM area. that's the mission, that's the moment.
to make it happen you have to hand her two things β the index of the NVRAM area and the data you want written into that NVRAM area. no index, no data, no slay. periodt.
optionally, you can also give her an offset into the NVRAM area β that's where the writing starts, so you can slide in at whatever position you want. and similarly, you can tell her the number of bytes to write into the NVRAM area. very "I know exactly how much I'm giving you" energy.
heads up bestie: some NVRAM areas only allow write sizes of zero, i.e., NVRAM area index 0. so don't come for her when a size of zero is the whole assignment π
and if the NVRAM area has permission bits set that require owner or NVRAM area authentication, then you must provide the password via the password option. no password, no entry. it's giving bouncer at the club π
the following options are supported β yes, all of them, I'm not skipping a single one, we're thorough in this group chat:
-h,--helpβ display command usage info. the "what do I do" button π-v,--versionβ display command version info. the "who even are you" button β-l,--log [none|error|info|debug]β set the logging level. pick your level of yapping:none,error,info, ordebugπ-u,--unicodeβ use TSS UNICODE encoding for passwords, so it complies with applications that use TSS popup boxes π₯-z,--well-knownβ use a secret of all zeros (20 bytes of zeros) as either the NVRAM area or owner secret. the "it's giving nothing but zeros, and that's the point" option π-p,--passwordβ depending on what type of authentication the NVRAM area requires, this must either be the NVRAM area password or the owner password. a password may be directly provided, for example by using'--password=password'or-ppassword. if no password is provided, then the program will prompt the user for the password. she'll ask, she's polite like that π-i,--index(optional parameter) β the index of the NVRAM area. the parameter may either be a decimal number or a hexadecimal number starting with'0x'π’-s,--sizeβ the number of bytes to write to the NVRAM area. this parameter may be used for truncating the data that are, for example, read from a file. the parameter may either be a decimal number or a hexadecimal number starting with'0x'βοΈ-n,--offset(optional parameter) β the offset into the NVRAM area where to start writing. the parameter may either be a decimal number or a hexadecimal number starting with'0x'π-f,--filename(optional parameter) β the name of a file from which to read data and copy them into the NVRAM area. file girlies rise π-d,--data(optional parameter) β the data to write into the NVRAM area, passed in the command line. for when you just wanna say it out loud π£οΈ-m,--fill-value(optional parameter) β the byte to fill the NVRAM area with. one single byte, doing the absolute most β¨
π SEE ALSO π
go read her sisters, they're all main characters too:
π REPORTING BUGS π
found a bug? not me, not you, but likeβ¦ if you did β report bugs to <trousers-users@lists.sourceforge.net> π¬
and that's the page, bestie π this was TPM Management, dated 2011-07-11, and yeah she's been serving since day one. mwah, go write some NVRAM π§π
π¦ where this page comes from
- debian bookworm: tpm-tools 1.3.9.2-0.1 Β· CPL
- debian trixie: tpm-tools 1.3.9.2-0.2 Β· CPL
- epel 10: tpm-tools 1.3.9-19.el10_0 Β· CPL-1.0
- epel 9: tpm-tools 1.3.9-13.el9 Β· CPL
- fedora 43: tpm-tools 1.3.9.2-5.fc43 Β· CPL-1.0
- fedora 43: tpm-tools 1.3.9.2-5.fc43 Β· CPL-1.0
- fedora 44: tpm-tools 1.3.9.2-6.fc44 Β· CPL-1.0
- fedora 44: tpm-tools 1.3.9.2-6.fc44 Β· CPL-1.0
- nixos 26.05: tpm-tools 1.3.9.2
- nixpkgs unstable: netbsd-source 11.0
- nixpkgs unstable: tpm-tools 1.3.9.2
- opensuse-leap 16.0: tpm-tools 1.3.9.2-160000.2.2 Β· IPL-1.0
- opensuse-leap 16.0: tpm-tools 1.3.9.2-160000.2.2 Β· IPL-1.0
- opensuse-leap 16.0: tpm-tools 1.3.9.2-160000.2.2 Β· IPL-1.0
- opensuse-leap 16.0: tpm-tools 1.3.9.2-160000.2.2 Β· IPL-1.0
- ubuntu noble: tpm-tools 1.3.9.2-0.2build2 Β· CPL
- ubuntu questing: tpm-tools 1.3.9.2-0.2build2
- ubuntu resolute: tpm-tools 1.3.9.2-0.2build3 Β· CPL
- ubuntu stonking: tpm-tools 1.3.9.2-0.2build4 Β· CPL
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms