Skip to content

Workspace mounts

Mount a machine’s workspace on your own workstation to use your local editor, IDE, or search tools directly on its files. Mounting requires an enrolled device, project access, and an S3 or R2 workspaces store (node-local stores cannot be mounted remotely). Linux mounts over FUSE; macOS mounts over loopback NFS.

Create an empty mount directory outside /Volumes and mount the latest committed snapshot (or pass --snapshot <fs_id> for an earlier one):

Terminal window
mkdir -p ~/anastro-workspace
anastroctl cluster fs mount <machine> ~/anastro-workspace
anastroctl cluster fs mount <machine> ~/anastro-workspace --snapshot <fs_id>

The snapshot must be Portable (already uploaded to object storage). Read-only mounts don’t interrupt the machine—it can keep running while you browse. Leave the command running and press Ctrl-C to unmount. If your project access or grant is revoked, access stops immediately.

Taking writable ownership requires project editor access and explicit confirmation using the machine’s UUID (even if you name the machine):

Terminal window
anastroctl machine get <machine>
anastroctl cluster fs mount <machine> ~/anastro-workspace \
--write --confirm 'take over <machine UUID>'

Anastro stops the machine, waits for its previous host to finish uploading its final checkpoint, and gives your workstation exclusive ownership of the branch. While mounted writable, the machine cannot resume or move.

When you’re done, close any programs holding files open in the mount directory and press Ctrl-C. anastroctl unmounts cleanly, takes a final checkpoint, uploads it, and releases ownership. The machine stays stopped until you run anastroctl machine resume <machine> or use it again.

If your laptop loses power, disconnects, or fails to unmount cleanly while holding a writable mount:

  • Don’t delete ~/.cache/anastro/dwfs. That directory holds the local journal and data packs needed to finish uploading your edits.
  • If Ctrl-C fails to unmount because a program still has files open, anastroctl keeps the writer alive—close those programs and press Ctrl-C again.
  • After a crash, re-run the writable mount command on the same workstation and let recovery finish uploading before resuming the machine. Recovery guards prevent cleanup or another host from discarding your unuploaded edits in the meantime.