Forum Discussion
dos2unix fails to change permissions when creating project from template
- 5 years ago
I also ran into this problem. I did some debugging and the problem is that the dos2unix command tries to change the UNIX filesystem permissions of the temporary file it creates; this fails for me in WSL.
You need to tell WSL that it should allow these kinds of operations on the filesystem. You can do this as follows:
- Start your Ubuntu 18.04 LTS prompt
- Create/edit a file '/etc/wsl.conf'
- Add the following to '/etc/wsl.conf':
[automount] options = "metadata" - Save the file.
- Reboot your computer.
I have no idea why this works for some people but not others, but this worked for me and fixed the dos2unix permissions error; at which points I was able to create the BSP and everything else in Nios II EDS worked fine.
Hello @juschri Justin,
First of all, thank you for reaching us,
Please try the next KDB (Knowledge DataBase) and let me know who it worked and if you have any questions please do not hesitate to let me know.
Regards,
-Eliath Guzman
- TrainMan5 years ago
New Contributor
Hi Eliath,
I see it has been 2 months since you replied to Justin's question but I don't see a solution. Have you found one? I have this issue with Quartus lite v20.
- NickWilliams5 years ago
Occasional Contributor
I also ran into this problem. I did some debugging and the problem is that the dos2unix command tries to change the UNIX filesystem permissions of the temporary file it creates; this fails for me in WSL.
You need to tell WSL that it should allow these kinds of operations on the filesystem. You can do this as follows:
- Start your Ubuntu 18.04 LTS prompt
- Create/edit a file '/etc/wsl.conf'
- Add the following to '/etc/wsl.conf':
[automount] options = "metadata" - Save the file.
- Reboot your computer.
I have no idea why this works for some people but not others, but this worked for me and fixed the dos2unix permissions error; at which points I was able to create the BSP and everything else in Nios II EDS worked fine.
- jim121385 years ago
New Contributor
Can you please provide how you did it? Is it in the command line? I can't seem to find anything