Open utterances-bot opened 1 year ago
Great
Hi Chris
I tired to do this but failed. PS C:\Windows\system32> GET-CimInstance -query "SELECT * from Win32_DiskDrive"
DeviceID Caption Partitions Size Model
\.\PHYSICALDRIVE6 LaCie P9223 Slim SCSI Disk Device 0 500105249280 LaCie P9223 Slim SCSI Disk Device \.\PHYSICALDRIVE4 Samsung SSD 840 EVO 250GB 0 250056737280 Samsung SSD 840 EVO 250GB \.\PHYSICALDRIVE0 WDC WDS120G2G0A-00JH30 0 120039736320 WDC WDS120G2G0A-00JH30 \.\PHYSICALDRIVE8 Generic MassStorageClass USB Device 0 Generic MassStorageClass USB Device \.\PHYSICALDRIVE5 Samsung SSD 970 EVO Plus 500GB 4 500105249280 Samsung SSD 970 EVO Plus 500GB \.\PHYSICALDRIVE7 Generic MassStorageClass USB Device 0 Generic MassStorageClass USB Device \.\PHYSICALDRIVE2 Samsung SSD 840 EVO 250GB 0 250056737280 Samsung SSD 840 EVO 250GB \.\PHYSICALDRIVE3 Samsung SSD 840 EVO 250GB 0 250056737280 Samsung SSD 840 EVO 250GB \.\PHYSICALDRIVE1 WDC WDS250G2B0A-00SM50 0 250056737280 WDC WDS250G2B0A-00SM50
PS C:\Windows\system32> wsl --mount \.\PHYSICALDRIVE5 --bare The process cannot access the file because it is being used by another process. Error code: Wsl/Service/AttachDisk/0x80070020
I think this happens because the disk I'm trying to mount has my win10 Cdrive partition on it. The drive has Fedora and Win10 as a dual boot situation.
Any ideas what I could do in this instance?
Tony
Hi Chris
I tired to do this but failed. PS C:\Windows\system32> GET-CimInstance -query "SELECT * from Win32_DiskDrive"
DeviceID Caption Partitions Size Model
.\PHYSICALDRIVE6 LaCie P9223 Slim SCSI Disk Device 0 500105249280 LaCie P9223 Slim SCSI Disk Device .\PHYSICALDRIVE4 Samsung SSD 840 EVO 250GB 0 250056737280 Samsung SSD 840 EVO 250GB .\PHYSICALDRIVE0 WDC WDS120G2G0A-00JH30 0 120039736320 WDC WDS120G2G0A-00JH30 .\PHYSICALDRIVE8 Generic MassStorageClass USB Device 0 Generic MassStorageClass USB Device .\PHYSICALDRIVE5 Samsung SSD 970 EVO Plus 500GB 4 500105249280 Samsung SSD 970 EVO Plus 500GB .\PHYSICALDRIVE7 Generic MassStorageClass USB Device 0 Generic MassStorageClass USB Device .\PHYSICALDRIVE2 Samsung SSD 840 EVO 250GB 0 250056737280 Samsung SSD 840 EVO 250GB .\PHYSICALDRIVE3 Samsung SSD 840 EVO 250GB 0 250056737280 Samsung SSD 840 EVO 250GB .\PHYSICALDRIVE1 WDC WDS250G2B0A-00SM50 0 250056737280 WDC WDS250G2B0A-00SM50
PS C:\Windows\system32> wsl --mount .\PHYSICALDRIVE5 --bare The process cannot access the file because it is being used by another process. Error code: Wsl/Service/AttachDisk/0x80070020
I think this happens because the disk I'm trying to mount has my win10 Cdrive partition on it. The drive has Fedora and Win10 as a dual boot situation.
Any ideas what I could do in this instance?
Tony
I think you forgot the part where it is typing the partition, your command appears to try to be using the whole drive. If your device has only one partition, you might need to add "--partition 1" to the end of your command and it may probably work.
I love windows
WSL2 has this limitation as well re: USB mounting of ext4 so it must be some core DLL that can't handle it. It's super annoying, especially if your ext4 partition is one of several partitions.
FYI you can use Paragon LinuxFS for Windows (there's a fully functional trial) that will read all drives including USB in W10 and probably 11- Good for unbreaking my Raspberry PI.
Chris,
I tried these steps to mount my EXT4 partitions that are on my first drive. Windows 11 is also on one of the other partitions on this SSD.
It seems that WSL needs to be able to detach the drive from Windows, which excludes the boot device.
Hi i know im late to the party but i am having trouble figuring out how to change the permissions from read only on the /mnt folder is this something i have to do via my wsl install?
Ext4 in Windows
Having Fun with Technology
https://christitus.com/ext4-in-windows/