Experimental. Try it in the demo. The source code is not public yet: file paths below refer to it.
/ goes to a
256 MiB disk saved in this browser.linux.html?safe=1. You get the site's
current system; changes are lost at power off; the saved disk is not opened.The saved disk is a convenience, not a backup. There is no export yet. Closing the tab and “Power off” are like pulling the plug: press Save now first. A browser may delete stored data (Safari can after seven days without a visit), private windows usually forget it, and a crash or power cut can lose recent saves.
| Piece | What it does | Source |
|---|---|---|
| virtio-blk device | Asynchronous: requests may finish late and in any order; guest-supplied addresses are checked | src/virtio.src |
| Two layers | Read-only SquashFS system disk plus ext4 saved disk, joined with overlayfs | linux/init, tools/mkrootfs.py |
| Block cache | 64 KiB chunks, read on demand; a save commits all unsaved chunks as they are at one instant | web/disk.js |
| IndexedDB | One transaction per save; a guest flush completes only after it does | web/disk-idb.js |
| Save now | Console SysRq sync (nothing is typed into your program), then 500 ms of disk quiet, then a save | web/disk-save.js |
| Kept copies | Each new saved disk stores its own system disk and blank disk (about 3 MiB), all or nothing | web/disk-pin.js |
| One user at a time | A Web Lock refuses a second tab on the same saved disk | web/linux-worker.js |
A saved disk keeps running on the system it was made with, even if the site ships a newer one
or loses its own. The page says when a newer one exists. There is no upgrade in place:
moving to it means deleting the saved disk. For maintainers: every later kernel and initramfs
must still boot old system disks (see the top of linux/rootfs-init); only a disk
update has been tested, not a kernel or initramfs update.
e2fsck did not catch a deliberately
non-atomic save. The evidence for safe saving is the one-transaction design, a direct
failing-transaction test and a cache model test.