Creating a self booting ZIP archive
Web page · https://goliath32.com/blog/ziphead.html
First seen by Oriel on .
AI summary
This article describes a self-booting ZIP archive that remains a normal, self-contained archive while also running through Qemu direct kernel boot or BIOS floppy boot.
- boot.zip contains its complete source tree, build tools, messages, license, and an executable boot/ZIPHEAD.COM entry.
- The archive’s first local file header doubles as executable x86 code, while embedded bytes include the Multiboot magic 1BADB002.
- Qemu can boot it directly with qemu-system-i386 -kernel boot.zip, and the image can also be written to floppy media.
- Its BIOS loader occupies the archive’s initial sectors, enables A20, enters 32-bit protected mode, detects the boot drive, and queries disk geometry.
- Modern ZIP readers may reject front-loaded or gapped polyglots, so every boot component must remain inside valid sequential archive entries.
#zip #multiboot #x86 bootloaders #bios
Generated by gpt-5.6-sol. Check the original for details.
Metric trends
Last 30 days · Up to 120 recorded samples per source and metric, with reposts kept separate · First and latest retained
Points
Score reported by the source.
- Hacker News: 73, latest observation ; +69 over observed period since
- Lobsters: 24, latest observation ; +22 over observed period since
Comments
Comment count reported by the source.
- Hacker News: 11, latest observation ; +11 over observed period since
- Lobsters: 0, latest observation ; 0 over observed period since
Aliases
| Source | External ID | URL |
|---|---|---|
| Hacker News | 50498295 | https://goliath32.com/blog/ziphead.html Read discussion |
| Lobsters | ebahfz | https://goliath32.com/blog/ziphead.html Read discussion |