I have a dual boot computer.
- Drive c:\ has Windows 10 on ntfs.
- Drive d:\ has Ubuntu on ext4.
- Drive e:\ is a NTFS partition to share files between my Windows 10 and Ubuntu.
- Local Ubuntu mounts with uid=1000,gid=1000
- I'm not sure what options are automounted on WSL Ubuntu but I can read and write with my username ownership and group
On Windows 10, I installed WSL Ubuntu. It automounts my shared ntfs drive e:. I can read/write on this drive in both my local Ubuntu and WS Ubuntu.
However, whenever I make changes in my local Ubuntu writing to drive e:, WSL can not read the files.
Here's a example of what happens:
I'm on my local Ubuntu at ext4 drive d:.I or some program write files to my shared ntfs drive e:\
On my WSL Ubuntu, it loads my share drive e:\ but the files created previously in my local Ubuntu has lost all file permissions and so WSL Ubuntu can't access the files. Here's a ls command to list the files
> ls -ltotal 8---------- 1 moredrowsy moredrowsy 1080 Oct 26 1985 LICENSE---------- 1 moredrowsy moredrowsy 415 Oct 26 1985 README.mdIf I use the ls command again, the file permissions are restored:
> ls -ltotal 8-rwxrwxrwx 1 moredrowsy moredrowsy 1080 Oct 26 1985 LICENSE-rwxrwxrwx 1 moredrowsy moredrowsy 415 Oct 26 1985 README.mdNow, I can do a chmod -R +755 on all my folders recursively and it will be fine until my local Ubuntu on drive d:\ access or modify the files, then it loses all file permissions on WSL Ubuntu.
I don't want to keep re-doing chmod all the time.
How do I solve this?