NDCTL-ZERO-LABELS(1)
π NDCTL-ZERO-LABELS β zero out the label area on a dimm or set of dimms π
okay bestie, we're in the ndctl manual, page NDCTL-ZERO-LABELS(1), and this one is literally the "factory reset but for labels" button. let's get into it π«Ά
β¨ SYNOPSIS β¨
ndctl zero-labels <nmem0> [<nmem1>..<nmemN>] [<options>]
πΈ DESCRIPTION πΈ
so. the namespace label area is this tiny persistent partition of capacity that lives on some NVDIMM devices β it's not huge, but it's so important because that's where the magic happens: it's what you use to provision one or more namespaces out of your regions.
and this command? it resets the device back to its default state by deleting all the labels. all of them. every last one. it's giving "clear your camera roll and start fresh" energy π
π OPTIONS π
<memory device(s)>β anmemXdevice name, or a dimm id number. this restricts the operation to the dimm(s) you picked, bestie. and yes, the keywordallcan be specified to say "no restriction whatsoever" β but honestly? that's literally the same as just not passing a--dimmoption at all. same vibe, same result β¨-s,--size=β limits the operation to the given number of bytes. and here's the tea: a size of0means operate over the entire label capacity. go big or go home π-O,--offset=β begins the operation at the given offset into the label area. pick your starting point, main character π-b,--bus=β a bus id number, or a provider string (like"ACPI.NFIT"). this restricts the operation to the specified bus(es). and again, the keywordallcan be specified to indicate no restriction β but it's the same as not supplying a--busoption at all. iykyk π¦-vβ turns on verbose debug messages in the library (only ifndctlwas built with logging and debug enabled, so likeβ¦ if it wasn't, don't come for me). π
π 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.
not me including the whole legal bit verbatim β the facts stay, the vibes just got cuter π
π₯ 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 ndctl manual page was brought to you by the ndctl crew, dated 2026-07-07 β mwah, slay, 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