NDCTL-READ-LABELS(1)

✨ NDCTL-READ-LABELS ✨

okay bestie, welcome to the ndctl manual, this one's NDCTL-READ-LABELS(1) and it's giving "let me peek inside your DIMM's label area" energy πŸ’…


🌸 NAME 🌸

ndctl-read-labels β€” read out the label area on a dimm or set of dimms


πŸŽ€ SYNOPSIS πŸŽ€

ndctl read-labels <nmem0> [<nmem1>..<nmemN>] [<options>]

πŸ¦‹ DESCRIPTION πŸ¦‹

so like, the namespace label area? it's a small persistent partition of capacity that lives on some NVDIMM devices, no cap. and what's it for? it's literally the thing that provisions one, or more, namespaces out of regions. main character behavior tbh πŸ‘‘

this command dumps the raw binary data in a dimm's label area β€” either straight to stdout or out to a file, your call. and in the multi-dimm case? the data gets concatenated. fr fr, all mushed together. 🌈


πŸ’– OPTIONS πŸ’–

  • <memory device(s)> β€” a nmemX device name, or a dimm id number. this restricts the operation to the dimm(s) you picked. you can pass the keyword all to say "no restriction bestie" β€” but lowkey that's the same as just not supplying a --dimm option at all, so do with that what you will πŸ™ˆ
  • -s, --size= β€” limits the operation to the given number of bytes. a size of 0 means operate over the entire label capacity. zero = all of it, iconic. ✨
  • -O, --offset= β€” begins the operation at the given offset into the label area. gotta know where to start, yk? 🎯
  • -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 can be specified to indicate the lack of any restriction, however this is the same as not supplying a --bus option at all. same deal as before, we love consistency 🫢
  • -v β€” turns on verbose debug messages in the library (if ndctl was built with logging and debug enabled). yes, if. conditional slay πŸ’…
  • -I, --index β€” limits the span of the label operation to just the index-block area. super useful for figuring out whether the dimm label area is initialized or not. πŸ‘€
⚠️ note that this option and --size/--offset are mutually exclusive. pick a lane bestie, you cannot have both 😭
  • -o, --output β€” output file
  • -j, --json β€” parses the label data into json, assuming the NVDIMM Namespace Specification format. structured data era πŸ’€
  • -u, --human β€” enables json output and converts number formats into human readable strings β€” like showing the size in terms of "KB", "MB", "GB", etc instead of signed 64-bit numbers per the JSON interchange format. (this implies --json). your eyeballs will thank you πŸ“

Copyright Β© 2016 - 2022, Intel Corporation. License GPLv2: GNU GPL version 2 <http://gnu.org/licenses/gpl.html>. This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.


🌟 SEE ALSO 🌟


okay that's the whole page, you ate that 🧚 this was ndctl manual, version ndctl, dated 2026-07-07 β€” mwah, go read some labels bestie, periodt πŸ’œ

πŸ“¦ where this page comes from