To mount a network drive in WSL2 temporarily (until logoff):
sudo mkdir /mnt/x sudo mount -t drvfs X: /mnt/x
To mount the network drive persistently, edit /etc/fstab
and add the following:
X: /mnt/x drvfs defaults 0 0
Then execute:
sudo mount -a
Source: https://www.public-health.uiowa.edu/it/support/kb48568/