NVME-LNVM-DIAG-BB(1)

πŸ“¦ version 1.16, in ubuntu jammy

πŸ’– 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 πŸ“

  1. retrieve bad block table statistics for physical device nvme0, channel 0, and lun 0:
# nvme lnvm-diag-bbtbl /dev/nvme0 -c 0 -n 0
  1. 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