Linux – How to un-mount a drive in Windows Subsystem for Linux

windows-subsystem-for-linux

I successfully mounted a network drive in the Windows Subsystem for Linux (Ubuntu).

sudo mkdir /mnt/t
sudo mount -t drvfs T: /mnt/t

After exiting bash, and coming back, I still see the /mnt/t directory, but it is empty. How do I un-mount this drive?

I have tried sudo umount /mnt/t but it says this each time:

umount: /mnt/t/: not mounted

How do I un-mount it?

Best Answer

After exiting bash, and coming back, I still see the /mnt/t directory, but it is empty

If it is not mounted then run sudo rmdir /mnt/t

Related Question