-
Notifications
You must be signed in to change notification settings - Fork 827
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
--mount support for USB flash drives #6011
Comments
Hi @HoFamilyMaker, This issue has already been identified and will be fixed in an upcoming insider build. Out of curiosity, what kind of disk are you trying to mount ? |
Is this related to being able to access a WSL folder of the form... \wsl$\docker-desktop-data\mnt\wsl\docker-desktop-data\data with "Attempt to access invalid address" (this has been my Quick Access list in Explorer so I now it WAS the right folder). Curiously, if I drill down to this folder in Explorer I can see the folder but it is now empty. I have been using this for months, to edit in VS.Code. As of today, though, that folder is empty and I can no longer access the WordPress plugin I have been developing, since I can't access from VS.Code. Strangely, though, the web site that is supposedly running from their (localhost) remains available. I'm really confused so any help would be really appreciated. |
Thanks I found this Limitations my disk is USB flash |
Thanks My windows 10 is latest Insider build 20226 I found this Limitations try wsl2 to mount USB flash receive the error 'The remote procedure call failed' |
My apologies @HoFamilyMaker I realize that the fix is not yet in Insiders, but thank you for updating! As @OneBlue mentioned we have a fix incoming for this soon, we'll ping this thread when it's available in the latest Insider build. |
Need this so much! Can't do wsl --mount \.\PhysicalDrive1 :( |
I too am affected by this issue. Would really like to manipulate my linux partitions without additional software like Paragon. native support would be excellent. Guessing this goes for the following as well:
I tried also with my SD card device, but that's definitely flash memory. |
Any update? |
Hey folks, wanting to add some clarity here since I realize that my last comment was not very clear. We added a fix for the 'remote procedure call failed' which was the immediate blocker for this in the root issue. However WSL --mount does not yet have support for USB flash drives formatted in Linux file formats. If you'd like to mount a flash drive in WSL you can do that if it's seen in Windows (in other words, if it's formatted in a file format that Windows understands like NTFS) using |
The reason I want wsl to work is so I can work on Raspberry pi drives from my Windows PC or laptop. |
I want this so I can dd |
It would be great to get more clarification on this if It now works or not. I am confused if it works or not. Use case why we like this feature: A bunch of us seem to want to get access to the Raspberry PI sdcards so we can manipulate them. Originally we wanted to use wsl2 (the development version but the person working on this failed o get it working). Thus we developed an alternative in for gitbash at https://github.com/cloudmesh/cloudmesh-pi-burn in the branch https://github.com/cloudmesh/cloudmesh-pi-burn/tree/windows I think many of us using the Pi for education would really appreciate a clarification about the status of this. Thanks |
@laszewsk as of right now --mount does not support USB flash drives if they are formatted in a Linux file format. This issue is left open to track this request. Please see this comment for full details: #6011 (comment) |
Can someone tell me how to do this please? I need to fsck my raspi card |
you could do a boot from a live linux CD and then use fsck from that. In case you like to burn multiple SD Cards for a PI cluster, we updated our documentation at |
Thanks, i've tried that but it was unable to fix my card through Parted and commandline |
+1, this feature is critical for anyone doing embedded development (and relies on transfers from SD cards via USB adapter). |
Same thing here, when using an sd card with adapter.
|
Workaround is use Usb Reader (notebook integrated not allways works) + VMWare with Debian and GParted |
Same here, not working using USB reader DeviceID Caption Partitions Size Model
-------- ------- ---------- ---- -----
\\.\PHYSICALDRIVE0 Samsung SSD 970 EVO Plus 1TB 3 1000202273280 Samsung SSD 970 EVO Plus 1TB
\\.\PHYSICALDRIVE2 Lexar SD WorkflowUR2 USB Device 2 15924142080 Lexar SD WorkflowUR2 USB Device
\\.\PHYSICALDRIVE3 Lexar SD WorkflowUR2 USB Device 0 Lexar SD WorkflowUR2 USB Device
\\.\PHYSICALDRIVE1 Lexar SD WorkflowUR2 USB Device 0 Lexar SD WorkflowUR2 USB Device
PS C:\Users\Eugene> wsl --mount \\.\PHYSICALDRIVE2
The system cannot find the drive specified. laptop buildin sd card slot not working too
|
+1 on the desire to interact with my Pi SD card from windows |
We just released a new version of cloudmesh-pi-burn: https://cloudmesh.github.io/pi/tutorial/raspberry-burn-windows/ |
Great, can you share your kernel so that I can quickly check if it works for me?
|
🤣 True |
Can't upload kernel to something which I'll feel comfortable sharing, might write my step by step when I have time, but that'll have to wait, hope you can work it out without my help, because I won't count on it. PS. can't upload it on GH, size too large |
Ok, I'll try this weekend.
If you write your tutorial in between, then let me know.
…On 3/27/2023 10:07 PM, Animesh Thakur wrote:
Great, can you share your kernel so that I can quickly check if it
works for me? Later will build it for myself.
I found what worked for me best was to delete windows and
install ubuntu
Can't upload kernel to something which I'll feel comfortable sharing,
might write my step by step when I have time, but that'll have to
wait, hope you can work it out without my help, because I won't count
on it.
—
Reply to this email directly, view it on GitHub
<#6011 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABQWBM3EIA5HWH63IG3UZXTW6G64XANCNFSM4SAKTF3Q>.
You are receiving this because you commented.Message ID:
***@***.***>
|
Just wanting to clarify here and maybe help serve as a reminder for anyone else coming to this thread that hasn't read all the way through:
This is because , according to this issue, USB flash drives (which is what I needed to mount all along) are still not supported even after almost 3 years of this issue being open?!
However, their support wiki page also states:
I'm still running off the kernel I compiled with no issues, but it seems that some users may not need to compile their own kernels. In short, it seems that the "wsl --mount" option is still severely lacking in functionality and that usbipd-mount may be the preferable solution. Is there any advantage, if USB support is now compiled into WSL kernel and therefore usbipd-win setup is very easy to use "wsl --mount" over usbipd-win? With usbupd-win I was able to perform block-level operations against a mounted USB flash drive. I would think that most other operations would build on top of that and not have issues. If it were up to me, at this point, I would recommend the use of usbipd-win in any scenario due to my experience and the limitations of "wsl --mount". With the exception of 5 minutes of setup, there seems to me no disadvantage. However I am but one user and admittedly do not understand the full scope of the underlying architecture between the two choices. Can anyone speak to how/why/when "wsl --mount" would be a superior option? |
The same here,Looking forward to deal with it early |
@OneBlue @craigloewen-msft Hey folks, what ever became of this issue? I just plopped the SD card from one of my Rasp Pi's into a card reader and thought I'd be able to access its contents from WSL to move some stuff around. That feels like a pretty basic and common use-case for WSL to me if one does not have some flavor of Linux on hand to access non-NTFS / FAT formatted drives. I'm guessing this is very difficult feature to implement, given how long this ticket has been open? |
for what it's worth, I was able to access a luks partition on a USB drive by using usbipd approach. I needed to rebuild my kernel with if that works with devmapper and encrypted partitions, I imagine it would cover most scenarios, which probably also explains the relative low priority/long issue age. |
@alexeldeib I also managed this by the method you link to, on Windows 11. However the external SD card reader I wanted to talk to is on a USB-C dock that is also driving my 2 external monitors. I got control of the SD card, but in doing so, I lost the displays. This condition persists after reboot. The PC is no longer able to use the dock to drive the external monitors. So I'll have to roll back to the standard wsl kernel. Using a raspberry pi for this kind of work is still the most sensible answer. |
Still can't edit SD-Card in a USB-Adapter. Trying it with a LibreElec ext4 partition.
|
Disappointing this is still an issue. Recommended friend to use WSL to set up an SD card for Arch for Raspberry Pi, since I assumed this would just work, unfortunately just get the same issue as described numerous times in this thread. +1 for "just install Linux" gang |
Wouldn't it make sense to release the stock builds with CONFIG_USB_STORAGE. Then usbipd.exe would be a method to access a USB stick. This is what I was initially trying, before I heard of the '--mount' option to wsl. Is this is a real overhead in the kernel. At the very least it could be a module supplied with the distro releases. It is clear lots of people desire this feature and MS has probably wasted more time responding to this thread than the time it would take to bundle USB_STORAGE. I alway just revert to using a Linux box instead trying to use WSL2 for this issue. Compiling custom WSL2 kernels is too much effort. |
It's 2024 and still...
|
Same error here.
|
It's been 4 years, Microsoft, c'mon... |
|
me too |
need solution |
Come on MS please make this work! |
Another 6 month go by. Why is this so hard to implement, MS? |
In case anyone else also only needs to read files from a Linux-formatted microSD card, I will share a Hyper-V-based workaround (which, again, only works for reading; it does not work for writing). Rather than installing third-party software and opening up a port to my local subnet (!), I was able to inconveniently work around the lack of built-in USB drivers (in WSL 2.2.4.0, kernel 5.15.153.1-2) using Hyper-V by:
Note that this copies the whole drive, so it's quite slow--but still faster than figuring out how to recompile the WSL2 kernel to add the |
I followed this guide but got the same error as others. EDIT: |
As this isuue is so utility for embedded developers, could MS work harder on it? |
I hit this too. May be not related to embedded development, but I have a secondary 512GB Flash drive and SSD 2230 disk, and I would very much like to move all my WSL distros to disk instead of using VHDs on Windows System disk. I'm also trying to see if I can merge both desktop and WSL editions into one partition so that I can use the same image for Azure, Hyper-V, Bare metal boot and WSL scenarios. |
Need SD Card reader support! |
upgrade to build 20226
run this command wsl --mount
receive the error 'The remote procedure call failed'
Originally posted by @HoFamilyMaker in #6008 (comment)
The text was updated successfully, but these errors were encountered: