Skip to content
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

Enable USB mass storage in kernel #11193

Open
7wells opened this issue Feb 22, 2024 · 2 comments
Open

Enable USB mass storage in kernel #11193

7wells opened this issue Feb 22, 2024 · 2 comments
Labels

Comments

@7wells
Copy link

7wells commented Feb 22, 2024

Is your feature request related to a problem? Please describe.
After following the instructions at https://github.com/dorssel/usbipd-win/wiki/WSL-support it is still impossible to mount the device to the WSL2 distro's filesystem.

Describe the solution you'd like
If the kernel had USB mass storage enabled, the problem would be solved AFAIK.

Describe alternatives you've considered
None

Additional context
For USB mass storage support, in drivers/usb/storage:
USB_SUPPORT [=y]
USB_STORAGE [=y]

For NBD support (to run qemu with image), in drivers/block:
BLK_DEV_NBD [=y]

References:
https://www.reddit.com/r/bashonubuntuonwindows/comments/17chaed/how_to_mount_usb_device_after_installing_usbipdwin/
https://behind.flatspot.pictures/the-ultimate-wsl2-setup/#custom-kernel

Thanks for your kind consideration!

@7wells 7wells added the feature label Feb 22, 2024
@elsaco
Copy link

elsaco commented Feb 22, 2024

@7wells you didn't specify a kernel version. In 5.15.146.1 some options are enabled already:

elsaco@texas:~$ zgrep USB_SUPPORT /proc/config.gz
CONFIG_USB_SUPPORT=y
elsaco@texas:~$ zgrep BLK_DEV_NBD /proc/config.gz
CONFIG_BLK_DEV_NBD=m

Only USB_STORAGE is not set. That could be built as a module, too. Notice how latest WSL kernels support module loading/unloading.

Even with USB_STORAGE enabled you won't be able to mount/unmount USB drives in WSL. The only option available is USB over IP.

@7wells
Copy link
Author

7wells commented Feb 23, 2024

Thank you so much! Indeed I failed to first check what the current version has enabled. I will check the USB over IP possibility you kindly mentioned.

I guess my question can be closed, right?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants