-
Notifications
You must be signed in to change notification settings - Fork 823
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Accessing USB storage devices in WSL 2? #7770
Comments
Thanks for reporting this @tnqzh123. This isn't officially supported but I think it should work. Can you share the output of |
Hi @OneBlue This is the output of Click here to show
And I found that it seems USB storage support is not enabled by default in WSL's kerenel: Does this mean I need to build my own kernel to support USB storage? |
Hi @OneBlue I tried to build my own kernel with But I get another problem now: when I try to access the SD card(e.g. Click here to show
The SD card reader(Genesys Logic USB2.0 Card Reader) is built-in my Lenovo YOGA 14sARE 2020(or, in the outside of Mainland China, Lenovo YOGA Slim 7 14ARE05). I've tried use another USB SD card reader(Genesys Logic USB3.0 Card Reader), it works normally. Is this problem caused by the built-in SD card reader, or WSL, or USBIPD-WIN? |
This is a workaround that works for me: https://github.com/jovton/USB-Storage-on-WSL2 |
Maybe it's better way to solve this issue for those who come after. https://dowww.spencerwoo.com/4-advanced/4-4-usb.html#usbip-win |
What a shame this doesn't work OOB. Needed to change dietpi wifi settings on sd card... Ended up using linux in VM. |
Ridiculous that this doesn't work. |
updated #11335 w/ commit and temp. gist to build the modules .. currently presumes you've already setup the env to build it though. Confirmed mount and fdisk worked without issue as well. |
(for USBIPD) |
Version
Microsoft Windows [Version 10.0.22504.1010]
WSL Version
WSL 2
Kernel Version
5.10.60.1-microsoft-standard-WSL2 (installed by Windows Update)
Distro Version
Ubuntu 20.04
Hi there, I need to backup my USB storage(a partitioned 64G SDXC card used in my Raspberry Pi, adapted to PC by the built-in USB SD card reader) by
dd
tool in WSL 2. I followed Connect USB devices | Microsoft Docs, usedusbipd
to attach my USB storage to WSL lightweight VM:and the USB storage has shown up in
lsusb
output in WSL 2:But no block file appears under
/dev
directory. Could you please tell me how to access my USB storage devices in WSL 2? Thanks.The text was updated successfully, but these errors were encountered: