-
Notifications
You must be signed in to change notification settings - Fork 830
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
SD Card Mounting in WSL2 from Win 11 and a USB Card Reader #8408
Comments
I have found that there are issues with USB Ports on WSL2 instances from a Win 11 dev. desktop. Are there any workarounds or destination tutorials for this effort? I am asking b/c I found Seth |
So... I can make Is this a limitation on WSL2 or is it a Seth P.S. Is there any method to look into for finding out why the Card Reader and SD Card are not allowing me to access the SD Card? |
Thanks for reporting this @silver2row. Can you share the exact commands you run, and what the output is ? What do you mean exactly by 'does not allow me to access the USB Card Reader' ? |
@OneBlue , Hello...sure. I will attempt to reproduce the commands but w/out notes on what actually took place, I am in the dark myself. Oh... By, And... I just figured this would have been a big deal. I read over how to manage specifics on other channels online for the Seth P.S. I will try to reproduce the commands in diskpart and WSL2 and then reply once more. I will be more constructive and soon. Thank you for replying. |
|
Hello Again, I checked Seth P.S. I am still not able to read my SD Card contents from w/in WSL2 which is running Debian. |
Thanks for the info @silver2row. Can you share the output of |
Sure. I will get on it soon. Thank you for replying so quickly. Seth P.S. I am going to take a shot in the dark here. I think since I cannot update to the latest linux-headers-$(uname -r), I am stuck for now. The show must go on! brb |
Okay and Sorry Here, I am here. So,
and...
Seth P.S. I performed |
The issue is lack of usb-storage drivers in the WSL kernel. If they could be added it would be great. Working but painful workaround (i.e. recompile your own kernel) can be found here: https://www.youtube.com/watch?v=iyBfQXmyH4o |
Hello, Thank you for your update. I will try it. Seth |
Hello @alexjmoore , I am sorry. I followed the instructions from that fellow online. When using Seth P.S. Something funny here though! When I do not use |
Same issue here, any update? |
Not sure why this is closed. But maybe it would be useful to actually document a way to connect an SDCard to WSL. It would be useful for exploring the SDCards on small singleboard computers such as a raspberrypi. |
@spectrapulse I think, it is resolved here. #7770 |
a workaround is not a solution |
Agreed. I just hit this wall myself. If you can resolve it by rebuilding the kernel to add USB support, then why in the world doesn't Micrsoft just ship a kernel with USB support in the first place? What's the rationale for specifically removing support for USB? |
I'm confused why this got closed - I would love to be able to mount USB flash drives/SD cards into WSL but would prefer not needing to rely on building my own kernel |
I'm able to mount it with I don't think you'll be able to format it as ext4 with that though. |
This works for me, thank you. |
This solution did not work for me. Curious what version of WSL someone who has successfully used it on is running, and what distribution. |
Hello~~
I'd love some support from Microsoft... |
For others who end up here, I found this useful: https://www.tomshardware.com/how-to/access-linux-ext4-partitions-in-windows |
@huiyeruzhou , unfortunately, my disk disappeared after one failed boot of WSL2. I hope my experience can help you.
delete all partitions of the disk you want to mount
mount the disk barely in powershell
wsl --mount <DiskPath> --bare
find you disk in WSL2 by
blkid
orlsblk
orfdisk -l
build a new partition with ext4 filesystem in WSL2
mkfs.ext4 /dev/sdf1
unmount the disk
wsl --unmount <DiskPath>
mount the disk barely again in powershell
wsl --mount <DiskPath> --bare
Now you should see the disk with ext4 filesystem by
blkid
mount /dev/sdf /app
Originally posted by @zouherenjie in #8215 (comment)
Hello,
I am having issues connecting to a SD Card, mounting it, and using WSL2.
I tried diskpart, wsl, and other commands. I cannot mount the SD Card to turn it into an ext4 partition so I can mount it to put data on it.
Seth
The text was updated successfully, but these errors were encountered: