How to access external drives from WSL ? Windows subsystem for Linux

preview_player
Показать описание
Commands:-
1. cd /mnt
2. sudo mkdir g {Your drive's drive letter}
3. sudo mount -t drvfs g: /mnt/g
---Mounted---
*To unmount
1. sudo umount g
2. rmdir g
------------Unmounted successfully-----------------------------------------------------------------------

---------------------------------------------------------------------------------------------------------------------------------------------------------------------
mount pendrive in wsl (windows subsystem for linux)
\ thumb drive \hdd
#wsl #ubuntu #wsl2.0 #windows_subsystem_for_linux
Song: Midranger - Apocalypse [NCS Release]
Music provided by NoCopyrightSounds
Рекомендации по теме
Комментарии
Автор

doesn't work for me. sudo mount -t drvfs g: /mnt/g
<4>WSL (312) WARNING: mount: waiting for virtio device drvfs
<3>WSL (312) ERROR: MountWithRetry:306: mount(drvfs, /mnt/g, 9p, cache=mmap, msize=262144, trans=virtio, aname=drvfs;path=g:;symlinkroot=/mnt/) failed: No such file or directory

rtrumbly
Автор

command cd /mnt
'command' is not recognized as an internal or external command,
operable program or batch file.

VariousRandoms
Автор

Hi! When I execute the command at 1:03 I get the following error: MountPlan9WithRetry:285: mount drvfs on /mnt/f (cache=mmap, rw, msize=262144, trans=virtio, aname=drvfs;path=f:;symlinkroot=/mnt/) failed: 2
mount: No such file or directory.

Do you know why this happens & how can I solve it? (I have Windows 11)

KW-
Автор

It did not work for me. Are you using USBIPD to attach the usb drive to WSL? Is this WSL or WSL2 you are using?

xphis