Reputation: 1
I want to clone a git directory on my WSL but I get the same error, I've tried a bunch of stuff that I've found online but nothing worked. I was told modifying the /etc/wsl.conf
file would help but I cant modify files in /etc.
I don't know if it is because I mounted an sd card or not. The space I am using WSL on is an sd card added to my Surface Pro 7. Previously I just used WSL without it caused no problems but I was running out of space.
My generate sshkey doesnt work either. I've tried many things.
My main WSL directory still works
Do you think you can help ? Was I clear enough with my issue ?
I want to be able to use git on the mounted sd card.
I tried:
/etc/wsl.conf
fileUpvotes: 0
Views: 323
Reputation: 3469
As it is explained in this askubuntu.com question the reason is that you are accessing an NTFS partition from WSL. NTFS does not support the chmod
call. However, if you were working on Ubuntu, this is hidden and the call succeeds even if it does not do anything. On WSL on the other hand the call results in an error, which is what you see.
The solutions outlined on the above mentioned page are:
sudo umount /mnt/c
sudo mount -t drvfs C: /mnt/c -o metadata
(modify according to your partition and drive letter)
/etc/wsl.conf
so that WSL automatically mounts using the correct options[automount]
options = "metadata"
(reboot to see the effects)
Upvotes: 1