usbipd-win icon indicating copy to clipboard operation
usbipd-win copied to clipboard

WSL can't see an USB drive after attaching

Open ghost opened this issue 1 year ago • 11 comments

image image image

ghost avatar Dec 15 '23 11:12 ghost

Is there an error after the warning? Did you find the root cause of the warning?

dorssel avatar Dec 15 '23 13:12 dorssel

nope, no errors whatsoever. Just wsl can't see anything either as any other usb device

ghost avatar Dec 15 '23 13:12 ghost

Follow the steps in https://github.com/dorssel/usbipd-win/wiki/Troubleshooting

dorssel avatar Dec 15 '23 15:12 dorssel

Do you solve it?I meet the same problems,and need help.I,m almost dead kepping working for servals hours to solve it.

soul667 avatar Feb 17 '24 01:02 soul667

Do you solve it?I meet the same problems,and need help.I,m almost dead kepping working for servals hours to solve it.

No, that was a dealbreaker for me so I’ve switched from windows + well to Ubuntu

ghost avatar Feb 17 '24 10:02 ghost

Did you check the relevant logs? I really don't want to install another system

soul667 avatar Feb 24 '24 04:02 soul667

I tried pass through wifi dongle. Not working, same as above, WSL2 doesn't see any new usb device.

> usbipd.exe attach -w -b 7-4
usbipd: info: Using WSL distribution 'Debian' to attach; the device will be available in all WSL 2 distributions.
usbipd: info: Using IP address 172.29.112.1 to reach the host.
usbipd: warning: A third-party firewall may be blocking the connection; ensure TCP port 3240 is allowed.
WSL usbip: error: tcp connect
usbipd: error: Failed to attach device with busid '7-4'.

marbaa avatar Feb 27 '24 11:02 marbaa

@marbaa does your WSL guest itself faciliates an own firewall with ufw or iptables? My company applies a Group Policy which prevented local changes to the Windows firewall to be applied correctly.. Now it works out of the box.

ValentinTwin1206 avatar Mar 21 '24 09:03 ValentinTwin1206

No, don't have any firewall in WSL distro. The problem is mentioned here and in following posts. Windows Defender is treating WSL internal network as Public network.

marbaa avatar Mar 21 '24 12:03 marbaa

I tried pass through wifi dongle. Not working, same as above, WSL2 doesn't see any new usb device.

> usbipd.exe attach -w -b 7-4
usbipd: info: Using WSL distribution 'Debian' to attach; the device will be available in all WSL 2 distributions.
usbipd: info: Using IP address 172.29.112.1 to reach the host.
usbipd: warning: A third-party firewall may be blocking the connection; ensure TCP port 3240 is allowed.
WSL usbip: error: tcp connect
usbipd: error: Failed to attach device with busid '7-4'.

Same error here, however tried all the attempted solutions in other threads including #657, #794 and even this thread regarding firewall access prevention to WSL2, nothing has worked, even fully disabling firewall for a lil time as a test, with and without my VPN, same results. Testing with usbip attach -r <localip> -b 1-5 gives usbip: error: could not connect to <ip>: System error as well, which seems to make sense.

Any ideas on this problem yet?

ninetailedtori avatar Jul 07 '24 22:07 ninetailedtori

Here's a potential solution which worked for me: https://github.com/dorssel/usbipd-win/issues/794#issuecomment-2252615745

Johnny8923 avatar Jul 26 '24 12:07 Johnny8923