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

Bug: Device not visible under lsblk in WSL2 Ubuntu 22.04 #1095

Open
thernstig opened this issue Dec 23, 2024 · 2 comments
Open

Bug: Device not visible under lsblk in WSL2 Ubuntu 22.04 #1095

thernstig opened this issue Dec 23, 2024 · 2 comments

Comments

@thernstig
Copy link

thernstig commented Dec 23, 2024

# On PowerShell side:
> usbipd list
Connected:
BUSID  VID:PID    DEVICE                                                        STATE
4-3    0951:1666  USB-masslagringsenhet                                         Attached
4-11   0489:e0e2  MediaTek Bluetooth Adapter                                    Not shared
4-14   1e71:300c  NZXT Kraken Elite, USB-enhet                                  Not shared
4-16   0b05:19af  AURA LED Controller, USB-enhet                                Not shared
6-1    05ac:024f  USB-enhet                                                     Not shared
6-3    048d:8295  USB-enhet                                                     Not shared
6-6    0bda:1100  USB-enhet                                                     Not shared

Persisted:
GUID 

# On WSL2 (Ubuntu) side:
> lsblk
NAME
    MAJ:MIN RM   SIZE RO TYPE MOUNTPOINTS
sda   8:0    0 388.4M  1 disk
sdb   8:16   0     8G  0 disk [SWAP]
sdc   8:32   0     1T  0 disk /mnt/wslg/distro
                              /
> lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 002 Device 002: ID 0951:1666 Kingston Technology DataTraveler 100 G3/G4/SE9 G2/50 Kyson

If I do a wsl --shutdown the usbipd list command shows the device is Shared again (as opposed to Attached) so restarting WSL does not work. I am using the latest Ubuntu and WSL kernel release.

Why can I not see the USB device under lsblk so that I can mount it under /media/?

@ValentinTwin1206
Copy link

ValentinTwin1206 commented Dec 23, 2024

Your Linux kernel must have USB_STORAGE enabled. Have you checked this?

@dorssel
Copy link
Owner

dorssel commented Dec 23, 2024

Your Linux kernel must have USB_STORAGE enabled. Have you checked this?

You can check with running from within WSL:

zgrep CONFIG_USB_STORAGE /proc/config.gz

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

No branches or pull requests

3 participants