Quick-tip: use Online file systems from WSL 1 (Ubuntu on Windows 10)

Tags: #<Tag:0x00007f76fbc70320> #<Tag:0x00007f76fbc70208> #<Tag:0x00007f76fbc83f10>

Quick-tip: use Online file systems from WSL 1 (Ubuntu on Windows 10)

On Microsoft Windows, you can use Ubuntu from the Windows Store. In simple terms: it’s an App, that comes with Ubuntu in a Sandbox. This Sandbox is called WSL. There are subtle differences between different versions of WSL, and the following has been tested with Windows 10 Version 1809, WSL 1.

Mount the Drvfs

λ ~/ mount
C: on /mnt/c type drvfs (rw,noatime,uid=1000,gid=1000,case=off)
G: on /mnt/g type drvfs (rw,noatime,uid=1000,gid=1000,case=off)

Assuming you have a special file system (like Google Drive Filestream, BoxCryptor, MountainDuck SSHfs …) on X:\, you can map the device letter to a WSL 1 mount point:

sudo mount -t drvfs x: /mnt/x

For reference:

λ /mnt/ uname -a
Linux plug 4.4.0-17763-Microsoft #1217-Microsoft Mon May 05 16:09:00 PST 2020 x86_64 x86_64 x86_64 GNU/Linux

This way you get a direct mapping. You need to create the sub-folder in /mnt/.