Skip to content

Automatically share the filesystem of a distro with other WSL distros.

License

Notifications You must be signed in to change notification settings

arkane-systems/wsl-share-fs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

wsl-share-fs

Automatically share the filesystem of a distro with other WSL distros.

This is a systemd unit which automates the mounting of the distribution filesystem under the /mnt/wsl folder, which makes it available to other WSL distributions. It runs automatically when systemd starts. (See microsoft/WSL#4654 for how this works.)

Why?

Because I'm tired of doing it manually.

Installation

  1. Set up the WSL Transdebian repository following the instructions here, if you have not already done so.

  2. apt install wsl-share-fs

  3. Either restart WSL, or sudo systemctl start wsl-share-fs.