NDCTL-WRITE-LABELS(1)
β¨ NDCTL-WRITE-LABELS(1) β¨
okay bestie, welcome to the ndctl manual, page one of the write-labels saga π This is part of the ndctl Manual, and it's literally all about shoving data into the label area of a dimm. iykyk.
πΈ NAME πΈ
ndctl-write-labels β write data to the label area on a dimm π
π¦ SYNOPSIS π¦
ndctl write-labels <nmem> [-i <filename>]
π DESCRIPTION π
So. The namespace label area is this small persistent partition of capacity that lives on some NVDIMM devices, right? And its whole job is to provision one (or more, we love options) namespaces out of regions. π
What this command does: it reads data from the input filename β or from stdin if you're feeling spicy β and writes it straight to the <nmem> device you point at. π
β οΈ BIG IMPORTANT VIBE CHECK: the device must not be active in any region. If it is, the kernel will not allow write access to the device's label data area. no cap. so check first, bestie. π
β¨ OPTIONS β¨
<memory device(s)>β anmemXdevice name, or a dimm id number. Restricts the operation to the dimm(s) you name. you can also pass the keywordallto say "no restrictions whatsoever", but ngl that's exactly the same as just not passing a--dimmoption at all. π-s,--size=β limit the operation to the given number of bytes. and if you pass a size of0? that means "operate over the entire label capacity", periodt. π«Ά-O,--offset=β begin the operation at the given offset into the label area. like, start here, queen. π-b,--bus=β a bus id number, or a provider string (e.g."ACPI.NFIT"). restricts the operation to the specified bus(es). the keywordallsays "no restrictions", which β again β is the same as not supplying a--busoption at all. π-vβ turn on verbose debug messages in the library (only ifndctlwas built with logging and debug enabled, so don't come for me if it's quiet). π₯-i,--inputβ input file. that's it, that's the option. π
π SEE ALSO π
- UEFI NVDIMM Label Protocol β http://www.uefi.org/sites/default/files/resources/UEFI_Spec_2_7.pdf
and that's the whole page, bestie!! this was ndctl, version dated 2026-07-07, and the page itself is dated 2026-07-07 too. slay π β¨ go write some labels responsibly, mwah ππ¦π
π¦ where this page comes from
- fedora 43: ndctl 85-1.fc43 Β· GPL-2.0-only AND LGPL-2.1-only AND CC0-1.0 AND MIT
- fedora 44: ndctl 85-1.fc44 Β· GPL-2.0-only AND LGPL-2.1-only AND CC0-1.0 AND MIT
- ubuntu stonking: ndctl 82-1ubuntu1 Β· LGPL-2.1-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms