Update cheatsheets

This commit is contained in:
ivuorinen
2024-02-21 11:19:49 +00:00
parent 4e88a1b42f
commit 3d653cc7e6
4803 changed files with 127002 additions and 0 deletions

37
linux/ndctl Normal file
View File

@@ -0,0 +1,37 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# ndctl
> Utility for managing Non-Volatile DIMMs.
> More information: <https://manned.org/ndctl>.
- Create an 'fsdax' mode namespace:
`ndctl create-namespace --mode={{fsdax}}`
- Change the mode of a namespace to 'raw':
`ndctl create-namespace --reconfigure={{namespaceX.Y}} --mode={{raw}}`
- Check a sector mode namespace for consistency, and repair if needed:
`ndctl check-namespace --repair {{namespaceX.Y}}`
- List all namespaces, regions, and buses (including disabled ones):
`ndctl list --namespaces --regions --buses --idle`
- List a specific namespace and include lots of additional information:
`ndctl list -vvv --namespace={{namespaceX.Y}}`
- Run a monitor to watch for SMART health events for NVDIMMs on the 'ACPI.NFIT' bus:
`ndctl monitor --bus={{ACPI.NFIT}}`
- Remove a namespace (when applicable) or reset it to an initial state:
`ndctl destroy-namespace --force {{namespaceX.Y}}`