IT lexicon › Hardware › Bad block management

Bad block management

Hardware På svenska → Updated: 2026-11-04

How software copes with the fact that NAND flash ships with broken blocks and keeps acquiring more for as long as it lives.

NAND is cheap partly because manufacturers don't have to deliver flawless parts. The spec allows a small share of bad blocks straight from the factory, flagged by a marker in the spare area of the block's first page. More blocks wear out over time as erases fail or ECC stops being enough. Software therefore keeps a bad block table, a BBT, and redirects writes to spare blocks.

The classic mistake is a production tool that erases the whole chip before reading the table. The factory markers are then gone for good, and nobody knows any more which blocks were broken. On raw NAND the job falls to drivers, UBI or filesystems such as LittleFS. In eMMC and SSDs the controller's FTL hides it entirely.

← Back to the lexicon