This ZIP Archive Boots Itself on a Bare PC

Creating a self booting ZIP archive

This ZIP Archive Boots Itself on a Bare PC

A developer built a ZIP archive that is also a bootable disk image. The first bytes form a valid ZIP local file header whose filename field doubles as a jump instruction, and the Multiboot magic 0x1BADB002 hides in the header bytes. It boots under QEMU direct kernel boot, from a floppy image, or on real hardware including a Pentium MMX, i486 DX2, and Am386DX-40. The archive even contains the source code to rebuild itself.

Luckily, Phil Katz' initials are valid opcodes.
  1. jlundberg

    Thx for a good read!

    Uncompressed ZIP files are a bit of an underappreciated container format.

    Fetching individual files from a big ZIP file even works over HTTP when the http server support range requests.

  2. Grimeton

    "Your scientists were so preoccupied with whether or not they could, they didn't stop to think if they should."

    -- Dr. Ian Malcolm

  3. ebb_earl_co

    I have been a software developer for ten years, enthusiast for 20 years, and am “the computer guy” to my family and friends. However, when I read through something like this, it really feels that my knowledge of computing is ε away from 0…

More from this day

2026-11-14