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:

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

Post navigation

Previous post
Next post

Search

Latest Posts

  • Upgrading my Packer Templates for Ubuntu 24.04 on vSphere 8, with the help of AI
  • Easily build Linux DNS servers for your home lab using Webmin
  • Connect to your home lab with RDP via browser using Cloudflare
  • Quick Tip: mount a SMB network share in Windows Linux Subsystem
  • How to create a 2-nodes HA cluster in Proxmox using Qdevice
©2026 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.