I am currently using wsl2 on windows and I use MS OneDrive locally in parallel for my studies. Actually I sync each file with my OneDrive account. AS my Onedrive folder's name is like :
Onedrive - SchoolName
And that for my courses I need to use WSL2 and I want to acceed to my windows file without the spaces in the path. The solution I found is to use mount bind command :
sudo mount --bind /mnt/c/Users/MyName/OneDrive\ -\ SchoolName/Project ~/Project/
This is actually working but I want to edit my fstab to not type the command each time I start my WSL. And I do not know how to do because each tuto I found wasn't working.
Thank you for your tips !