NDCTL-CHECK-LABELS(1)
π NDCTL-CHECK-LABELS π
okay bestie, this one lives in the ndctl Manual, and it's here to answer one very specific question: are your dimms' labels actually valid or are they lying to you? let's get into it π¦
β¨ NAME β¨
ndctl-check-labels β determine if the given dimms have a valid namespace index block π
like. that's the whole job. vibe check on the namespace index block. periodt.
πΈ SYNOPSIS πΈ
ndctl check-labels <nmem0> [<nmem1>..<nmemN>] [<options>]
π DESCRIPTION π
okay so the namespace label area is this lil persistent partition of capacity that some NVDIMM devices have, right? it's small but it's doing the MOST. that label area is what you use to provision one, or more, namespaces out of regions. iconic behavior honestly. π
so what does this command do? it checks whether a label area has a valid index block. and here's the cute part: if you run it in verbose mode, it will also spill the tea on why the index block got deemed invalid. no vague "something's wrong" energy here, it tells you. we love a transparent king. β¨
π OPTIONS π
<memory device(s)>β anmemXdevice name, or a dimm id number. use this to restrict the operation to the specified dimm(s). you can also pass the keywordallto say "no restrictions, we're free-range", but ngl that's the exact same thing as just not supplying a--dimmoption at all. same energy fr fr π«Ά-s,--size=β limit the operation to the given number of bytes. a size of0means "operate over the entire label capacity" β the whole thing, no crumbs left behind. π-O,--offset=β begin the operation at the given offset into the label area. like starting your reading at chapter 4, iykyk. πΈ-b,--bus=β a bus id number, or a provider string (e.g."ACPI.NFIT"). restrict 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. yes we're saying it twice, it's the same clause, don't come for me π-vβ turn on verbose debug messages in the library (ifndctlwas built with logging and debug enabled). that's your backstage pass, bestie. ποΈβ¨
π 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.
okay real talk for a sec π«Ά that NO WARRANTY part is in all caps for a reason β it means it, fr fr. free to change, free to share, but nobody's catching you if it goes sideways. π
π SEE ALSO π
- UEFI NVDIMM Label Protocol
- <http://www.uefi.org/sites/default/files/resources/UEFI_Spec_2_7.pdf>
like go read the spec if you want the deep lore, it's giving academic but it slaps. π
and that's the whole page, bestie!! this was ndctl, dated 2026-07-07, and you just read the whole thing top to bottom. so proud of you. go check those labels. 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