I am trying to copy files from WSL2 Ubuntu 18.04 to Windows v21H1 using path \\wsl$\Ubuntu-18-04 so I can create a boot disk for a Yocto project I am working on, and can see, access, and navigate to the WSL files in Explorer. I can copy files no problem, but when trying to paste them into a Windows directory, I get:
Error 0x80070781: The name of the file cannot be resolved by the system.
- I have searched a lot, but only found examples of errors going from Windows to WSL
- I have reinstalled Windows and WSL, but am still the same error
- I can copy and paste from WSL to Windows directories within WSL using the
mntprocess, but the files seem to be corrupted - I have done a clean install of Windows 10 and also upgraded to Windows 11
- I have tried exactly the same copy and paste procedure within Windows Explorer and this time got the following error message:
Error 0x80004005: Unspecified error''
- I have also tried to use mv and cp within WSL and got the following error:
mv: preserving times for '/mnt/c/Users/olive/Documents/b2qt-embedded-qt5-image-imx8mm-var-dart.wic': Operation not permitted
- I can copy and paste other files from adjacent directories in WSL to Windows with no issue. It seems to be something related to these Yocto image files. THERE MUST BE SOMETHING TO THIS!!!! However, until WSL supports removable USB SD card readers (or USB devices at all) then I need to copy these files to Windows to be able to create an SD boot disc.
- I have google drive set up on my computer (two set up, one for personal account another for business). Is there any change it could be causing issues? The google drive folder show up as mounted drives.
- I have checked file permissions and they are all read/write/exe.
- Have raised this on the WSL git thread https://github.com/microsoft/WSL/issues/7683
Proposed solutions that have been tried (all suggestions greatly appreciated):
The proposed solution to review a previous post is helpful to work out how it should be working (I have already learned how to use Explorer for WSL), however something is preventing me from copying some files to a Windows folder and is not addressed in the suggested post.
I tried to create the WLS.conf file with associated content and this did not solve the issue.
to my knowledge none of the files or folders are junction points.
I cleared everything I could from the temp folder (couldn't delete things that were in use) and again this didn't solve the issue. The temp folder isn't compressed either.
SOLTUION!!!: I haven't solved the issue but I have found a work around. As mention, I was ultimately trying to cerate a boot disk using a USBc external card reader. I tried this on win32 and rufus with no luck. They weren't allowing me to select the file from WSL and as you know I couldn't copy the file to put it in a windows directory. I recently came across Etcher. It worked a treat!!! I still don't know why I couldn't copy and past the files but I have a work around for my desired purpose.
Thank you all for your help.