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)>β anmemXdevice name, or a dimm id number. this restricts the operation to the dimm(s) you picked. you can pass the keywordallto say "no restriction bestie" β but lowkey that's the same as just not supplying a--dimmoption at all, so do with that what you will π-s,--size=β limits the operation to the given number of bytes. a size of0means 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 keywordallcan be specified to indicate the lack of any restriction, however this is the same as not supplying a--busoption at all. same deal as before, we love consistency π«Ά-vβ turns on verbose debug messages in the library (ifndctlwas 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/--offsetare 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 π
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 π
- UEFI NVDIMM Label Protocol
- <http://www.uefi.org/sites/default/files/resources/UEFI_Spec_2_7.pdf>
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
- 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