How a Computer Works

How an SSD Saves a File

Change one bit in a recipe and save it again. Follow the change to a fresh page of flash memory and see how the drive finds the new version.

Read the steps

  1. Send a save to the drive

    The operating system submits a four-byte teaching buffer, 52 65 63 69. Changing its selected low bit changes the first byte to 53. We follow that bit from logical address 42; the controller writes it as part of a full NAND page.

  2. Translate the logical address

    A flash translation layer maps the stable logical address to a physical page. This table is what lets a rewritten file move inside the drive.

  3. Allocate an erased page

    A rewrite uses a fresh erased page. The old page becomes stale only after the new data and mapping are safely committed in this teaching sequence.

  4. Program the selected cell

    Programming changes stored charge and raises a cell’s threshold voltage for a 0. An erased SLC cell represents 1. Programming works in pages; it does not erase a single cell.

  5. Read the threshold

    A read voltage tests whether the selected cell conducts. The lower-threshold erased state conducts here; the programmed high-threshold state does not.

  6. Commit the new mapping

    The controller makes logical address 42 point at the new physical page. Reading the same logical address now returns the newly saved bit.

  7. Reclaim a whole block

    Stale pages cannot simply be overwritten. When an already-used block is needed again, this tiny model erases that all-stale destination block before allocation. Real garbage collection first copies any still-live pages elsewhere.

  8. Return to your saved recipe

    The updated page and mapping survive without power in the conceptual storage model. You can rewrite the same address and see its physical location change.