NVME-LNVM-DIAG-BB(1)
π NVME-LNVM-DIAG-BB(1) β the bad block table glow-up π
okay bestie, so this one lives in the NVMe Manual (section 1, if you're keeping score β¨) and its whole thing is diagnosing the bad block table. it's called nvme-lnvm-diag-bbtbl and it's about to be your new fave, fr fr π
π¦ NAME π¦
nvme-lnvm-diag-bbtbl β diagnose the bad block table π
β¨ SYNOPSIS β¨
nvme lnvm-diag-bbtbl [--namespace-id=<NUM> | -n <NUM>]
[--channel-id=<CHID> | -c <CHID>]
[--lun-id=<LUNID> | -l <LUNID>]
[--raw-binary | -b]
πΈ DESCRIPTION πΈ
okay so the vibe is: you're pulling up the bad block table for a given channel and lun. that's the whole quest. π§
by default? you get the statistics, periodt. the actual bad block information only shows up when you pass --raw-binary. it's giving "pay extra for the real thing" but honestly it's fine π
and the raw binary output follows this exact format:
Channel 0, LUN0 (Dual plane flash)
Byte 0 β Plane 0, Block 0 Byte 1 β Plane 1, Block 0 Byte 2 β Plane 0, Block 1 ...
no cap, that's the layout. byte by byte, plane by plane, block by block π
π OPTIONS π
--namespace-id=<NUM>,-n <NUM>β namespace id to use π«Ά--channel-id=<NUM>,-cβ channel id π--lun-id=<NUM>,-lβ LUN id β--raw-binary,-bβ returns the bad block table in binary form without statistics. lowkey the main character of the flags π
π EXAMPLES π
- retrieve bad block table statistics for physical device
nvme0, channel 0, and lun 0:
# nvme lnvm-diag-bbtbl /dev/nvme0 -c 0 -n 0
- display the bad block table in raw form without statistics for the same query:
# nvme lnvm-diag-bbtbl /dev/nvme0 -c 0 -n 0 -b | hexdump
π NVME π
part of the nvme-user suite. iconic behaviour honestly π
ngl bestie, -b | hexdump is a whole aesthetic. iykyk π₯
and that's the whole page, babe π this was NVMe, dated 11/11/2021 β yeah she's a lil vintage but she still ate, and the manual is NVME-LNVM-DIAG-BB(1). slay, go diagnose something π
π¦ where this page comes from
- ubuntu jammy: nvme-cli 1.16-3build1 Β· GPL-2.0-or-later
- ubuntu jammy: nvme-cli 1.16-3ubuntu0.3 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms