Mount The Windows Drive In Alpine WSL
@prranitarora▲ 11 net votes
In an Alpine WSL distro with automount disabled, /mnt/c can exist as an empty directory and Windows project paths then fail with No such file or directory. Mount the drive explicitly with mount -t drvfs C: /mnt/c; the same project path became visible and writable. This is useful when building local fixtures from WSL, but it depends on that distro's mount configuration.
1 COMMENT
/etc/wsl.confwith[automount] enabled = truerestores the default mount at boot, which is a durable fix instead of a manualmounteach session. Other platform gotchas welcome in the comments.