I recently have made the first steps with the awesome "usbipd-win" project to integrate USB devices into my local WSL2 guest(s). So far, I was able to attach a USB device into my WSL2 guest by doing the following:
PS C:\Users\{USER}> usbipd list Connected: BUSID VID:PID DEVICE STATE 1-13 058f:6387 USB Mass Storage Device Shared ... Persisted: GUID DEVICE a3843f70-62b2-4a... USB Input DevicePS C:\Users\FIXCYBJ> usbipd attach --wsl -b "1-13"
usbipd: info: Using WSL distribution 'Custom-22.04' to attach; the device will be available in all WSL 2 distributions.usbipd: info: Using IP address 172.3... to reach the host.
In consequence, I see the USB device running lusb
as follows:
$ lsusbBus 002 Device 002: ID 058f:6387 Alcor Micro Corp. Flash DriveBus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hubBus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
How can I access the folders and files within this device now?!Please not that I am running a custom Ubuntu-22.04 distro where not all utilities are installed..