Skip to content
Luca Dell'Oca Principal Cloud Architect @Veeam
Virtual To The Core Virtual To The Core

Virtualization blog, the italian way.

  • Media
  • About me
Virtual To The Core
Virtual To The Core

Virtualization blog, the italian way.

Quick Tip: mount a SMB network share in Windows Linux Subsystem

Luca Dell'Oca, November 18, 2025
I regularly use a WSL (Windows Linux subsystem) inside my Windows 11 laptop, in order to play with all the different linux technologies. One of the many cool features of WSL is that it can access all the disks of the underlying Windows machine by simply going into the /mnt folder:

However, even if I have a SMB share ,published from a local NAS and mounted as a local disk in the Windows machine:

The I: disk doesn’t appear by default in WSL.
There is however an easy fix for this. First, I create a mount point:
mkdir /mnt/i
I use the same letter used in Windows Explorer, so it’s easy to remember the location of files. They do not conflict as they don’t see each other, one mount only works in Windows, the other only in WSL.
Then, I mount the network share using drvfs:
mount -t drvfs \\\\172.27.217.200\\web /mnt/i

Please note the doubled backslashes, they are needed to tell bash the correct network address.

Now I can easily navigate the network share and use its resources:

 

Share this:

  • Click to share on X (Opens in new window) X
  • Click to share on Facebook (Opens in new window) Facebook
  • Click to share on LinkedIn (Opens in new window) LinkedIn
  • Click to email a link to a friend (Opens in new window) Email
  • Click to share on Tumblr (Opens in new window) Tumblr
  • Click to share on Pinterest (Opens in new window) Pinterest
  • Click to share on Reddit (Opens in new window) Reddit
  • Click to share on WhatsApp (Opens in new window) WhatsApp
  • Click to share on Pocket (Opens in new window) Pocket
Tech drvfsmountnetworksharesmbwsl

Post navigation

Previous post

Search

Sponsors

Latest Posts

  • Quick Tip: mount a SMB network share in Windows Linux Subsystem
  • How to create a 2-nodes HA cluster in Proxmox using Qdevice
  • Not enough free space to install Veeam worker on Proxmox VE (and how to expand a PVE volume)
  • Migrate WSL (Windows Subsystem for Linux) to a new computer
  • Pass keystrokes to a pfSense virtual machine to install it automatically
©2025 Virtual To The Core | WordPress Theme by SuperbThemes
We use cookies to ensure that we give you the best experience on our website, and to collect anonymous data regarding navigations stats using 3rd party plugins; they all adhere to the EU Privacy Laws. If you continue to use this site we will assume that you are ok with it.