How to Mount a Removable Drive in Windows Systems for Linux

|

|

This guide details how students and users can mount and unmount a removable USB or thumb drive in the Windows Systems for Linux (WSL) environment. While Windows 11 facilitates easy mounting of removable drives, this process is more complex in the WSL environment. The guide also offers steps to manually mount external drives in the…

This post shows students and new users steps to mount and unmount a removable USB or thumb drive in the Windows Systems for Linux (WSL) environment. Windows 11 allows users to mount removable drives with ease. Simply insert a removable drive, and Windows will recognize and mount it.

However, when running WSL, mounting removable drives inside the WSL environment isn’t that easy.

Windows Subsystem for Linux allows you to mount drives using the mount command manually. WSL will automatically mount all fixed NTFS drives. So, if you have internal fixed C: and E: drives, you’ll see them mounted at /mnt/c and /mnt/e in your WSL environment.

You’ll have to mount external, removable drives in WSL manually. Davis also allows you to mount external drives like USBs, CDs, and DVDs. These devices must be formatted using a Windows file system like NTFS  or FAT.

Similarly to internal drives, external drives will remain accessible in Windows 11 when mounted within the Windows Subsystem for the Linux environment.

Below is how one can mount an external drive in a WSL environment.

How to mount an external drive in WSL

As mentioned above, one can mount external drives like USB, CD, and other devices in Windows System for Linux.

For example, if you have an external drive attached to your Windows 11 computer using the drive letter F: you can mount it in WSL using the commands below.

sudo mkdir /mnt/f
sudo mount -t drvfs F: /mnt/f

You can now access the drive content in Linux at the mount point /mnt/f.

To unmount the drive, simply run the commands below.

sudo umount /mnt/f/

That should do it!

Conclusion:

This post showed you how to mount an external, removable drive in a WSL environment. Please use the comment form below if you find any errors above or have something to add.

Like this:



Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.