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)> β€” a nmemX device name, or a dimm id number. this restricts the operation to the dimm(s) you picked, bestie. and yes, the keyword all can be specified to say "no restriction whatsoever" β€” but honestly? that's literally the same as just not passing a --dimm option at all. same vibe, same result ✨
  • -s, --size= β€” limits the operation to the given number of bytes. and here's the tea: a size of 0 means 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 keyword all can be specified to indicate no restriction β€” but it's the same as not supplying a --bus option at all. iykyk πŸ¦‹
  • -v β€” turns on verbose debug messages in the library (only if ndctl was built with logging and debug enabled, so like… if it wasn't, don't come for me). πŸ‘‘

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 πŸ”₯


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