Pcornel
Storage · Physical Storage Media › SSD

NAND Flash

Cheat sheet · https://pcornel.dk/topic.php?topic=3879

Back to the Topic

Answer

NAND flash is the non-volatile memory inside SSDs. Data is written in pages and erased in larger blocks, and each cell survives a limited number of program/erase cycles, which shapes SSD behaviour.

Remember

  • Write in pages, erase in blocks.
  • Limited program/erase cycles.
  • Controller hides this with FTL.

First checks

  • nvme smart-log /dev/nvme0 | grep -i percentage_used — wear
  • smartctl -a /dev/sdX | grep -i -e wear -e nand — NAND writes
  • nvme id-ctrl /dev/nvme0 | grep -i -e fr -e mn — model/firmware

Verify in this order

logical write → FTL → NAND page → erase block

Where it usually breaks

First mismatch in media/firmware → device controller → interface/link → host driver → block device → upper storage layer; preserve identity/pre-state before mutation.

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=3879

Confirmation

Confirm action

Continue?