LukeShortCloud / rootpages

Root Pages is a collection of easy-to-reference tutorials and guides primarily for Linux and other UNIX-like systems.
Other
56 stars 6 forks source link

[windows][storage] Mount network drives from Windows in WSL #1017

Open LukeShortCloud opened 12 months ago

LukeShortCloud commented 12 months ago

By default, only physically connected drives are automatically mounted in /mnt/ on WSL.

Temporary:

$ sudo mkdir /mnt/<DRIVE_LETTER_UPPER_CASE>
$ sudo mount -t drvfs <DRIVE_LETTER_UPPER_CASE>: /mnt/<DRIVE_LETTER_LOWER_CASE>

Permanent in /etc/fstab:

<DRIVE_LETTER_UPPER_CASE>: /mnt/<DRIVE_LETTER_LOWER_CASE> drvfs defaults 0 0

https://www.public-health.uiowa.edu/it/support/kb48568/