Windows

How to Mount Network Drives in Windows Subsystem for Linux

Richard
Written by
Richard
Dec 21, 2021 Updated Apr 15, 2026 4 min read
How to Mount Network Drives in Windows Subsystem for Linux

If you use wsl/" class="sal-link" rel="noopener" target="_blank" data-sal-id="16936">Windows Subsystem for Linux (WSL), you might want to access files stored on your network directly from your Linux terminal. This guide shows you how to connect these network folders to your WSL environment.

Why mount network drives in WSL?

Mounting a network drive allows you to interact with shared files using Linux tools and scripts. It bridges the gap between your Windows network resources and your Linux workspace, making it easier to manage projects or data stored on a server.

What happens when you are done?

Once finished, your network folder will appear as a regular folder within your Linux file system. You can read, write, and manage files in that location just like you would with any other directory on your machine.

This post shows students and new users steps to mount or map a network drive or folder in Windows Subsystem for Linux (WSL). In Windows 11, users can map network drives and folders with ease.

Mounting a drive letter

If you have already mapped a network location to a drive letter in Windows (such as F:), you can easily bring it into WSL.

Note: The following commands require admin privileges.

1. Create a folder in Linux to act as the bridge:

🐧Bash / Shell
sudo mkdir /mnt/f

2. Mount the Windows drive letter to that folder:

🐧Bash / Shell
sudo mount -t drvfs F: /mnt/f

Mounting a network folder path

If you have the network path (also called a UNC path, like \\server\documents), you can mount it directly without a drive letter.

1. Create a mount point:

🐧Bash / Shell
sudo mkdir /mnt/documents

2. Mount the network share:

🐧Bash / Shell
sudo mount -t '\\server\documents' /mnt/documents

Handling password-protected shares

If the folder requires a login, use the Windows net use command first to establish the connection.

Run this in your command prompt (requires admin privileges):

💻Code
net.exe use f: \\server\documents /user:username MyPassword

After running this, you can follow the steps above to mount the F: drive into your WSL environment.

How to unmount

When you are finished, you can disconnect the folder using this command:

🐧Bash / Shell
sudo umount /mnt/documents

The post below also shows you how to mount a removable drive in WSL.

How to mount a removable drive in Windows Subsystem for Linux.

Summary

Mounting network drives in WSL allows you to access shared files seamlessly. By creating a mount point in Linux and using the mount command, you can link your Windows network paths to your terminal. If a password is required, use the net use command in Windows first to authenticate, then proceed with the mount process in WSL.

How do I mount a network drive in WSL?

To mount a network drive in Windows Subsystem for Linux (WSL), first create a mount point using the command 'sudo mkdir /mnt/your_mount_point'. Then, use the command 'sudo mount -t drvfs X: /mnt/your_mount_point', replacing 'X' with the drive letter of the network drive.

What is the UNC path and how do I use it in WSL?

The UNC (Universal Naming Convention) path is a format used to specify the location of resources on a network. In WSL, you can mount a network share using the UNC path by creating a mount point and running 'sudo mount -t 'server older' /mnt/your_mount_point'.

Can I access password-protected network shares in WSL?

Yes, you can access password-protected network shares in WSL by using the 'net use' command. For example, you can run 'net.exe use F: server older /user:username password' to map the network share to a drive letter.

How do I unmount a network drive in WSL?

To unmount a network drive in WSL, you can use the command 'sudo umount /mnt/your_mount_point'. Make sure to replace 'your_mount_point' with the actual mount point you used when mounting the drive.

Is it necessary to create a mount point before mounting a network drive in WSL?

Yes, it is essential to create a mount point in WSL before mounting a network drive. You can create a mount point using the command 'sudo mkdir /mnt/your_mount_point' to ensure the network location has a designated path in the Linux file system.

Was this guide helpful?

Tags: #Windows 11
Richard

About the Author

Richard

Tech Writer, IT Professional

Richard, a writer for Geek Rewind, is a tech enthusiast who loves breaking down complex IT topics into simple, easy-to-understand ideas. With years of hands-on experience in system administration and enterprise IT operations, he’s developed a knack for offering practical tips and solutions. Richard aims to make technology more accessible and actionable. He's deeply committed to the Geek Rewind community, always ready to answer questions and engage in discussions.

2471 articles → Twitter

📚 Related Tutorials

How to Map Network Shares as Drives in Windows 11
Windows How to Map Network Shares as Drives in Windows 11
How to Access Linux Files on Windows 11 Using WSL
Windows How to Access Linux Files on Windows 11 Using WSL
How to Mount Linux File System on Windows 11 via WSL
Ubuntu Linux How to Mount Linux File System on Windows 11 via WSL
How to Map Network Drives with PowerShell in Windows 11
Windows How to Map Network Drives with PowerShell in Windows 11

0 responses to “How to Mount Network Drives in Windows Subsystem for Linux”

  1. Hi!

    You’re missing one thing from this otherwise extraordinarily useful post:

    sudo mount -t ‘\\server\documents’ /mnt/documents

    should be

    sudo mount -t drvfs ‘\\server\documents’ /mnt/documents

    (I got the bit about “-t drvfs” from another post that involved doing
    “Map network drive” first to assign a drive letter to the network drive.)

Leave a Reply

Your email address will not be published. Required fields are marked *