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)> β€” a nmemX device name, or a dimm id number. Restricts the operation to the dimm(s) you name. you can also pass the keyword all to say "no restrictions whatsoever", but ngl that's exactly the same as just not passing a --dimm option at all. πŸ™ˆ
  • -s, --size= β€” limit the operation to the given number of bytes. and if you pass a size of 0? 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 keyword all says "no restrictions", which β€” again β€” is the same as not supplying a --bus option at all. πŸ’œ
  • -v β€” turn on verbose debug messages in the library (only if ndctl was 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 πŸ‘‘


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