Code Yarns ‍👨‍💻
Tech BlogPersonal Blog

How to mount and unmount on WSL

📅 2020-Jun-17 ⬩ ✍️ Ashwin Nanjappa ⬩ 🏷️ mount, wsl ⬩ 📚 Archive

Any drive of any filesystem that is already mounted under Windows can be then mounted under WSL. What makes this possible is a filesystem plugin in WSL named DrvFS.

$ sudo mkdir /mnt/k
$ sudo mount -t drvfs K: /mnt/k
$ cat /etc/mtab
$ sudo umount /mnt/k

© 2023 Ashwin Nanjappa • All writing under CC BY-SA license • 🐘 Mastodon📧 Email