I have two Windows machines with WSL 2/Pengwin/zsh here and the first one shows prompt and refers to files and folders in Windows as /c/...
but the second as /mnt/c/...
for one and the same folder or file in Windows. I'm not sure which one I like better yet but surely I'd like to be able to switch between the two modes. Is this possible?
Asked
Active
Viewed 2,348 times
1

Valo
- 1,872
- 2
- 15
- 23
2 Answers
1
By accident, I ran into a (the?) solution for Pengwin:
- Make sure you have installed Docker Desktop
- In pengwin-setup install the Docker bridge to Docker Desktop
I hope this is not the only solution and there would be a better way not dependant on Docker. Anyone?

Valo
- 1,872
- 2
- 15
- 23
0
pengwin-setup made the change from /mnt/c to /c when you installed docker. This change is located in this file: /etc/wsl.conf
[automount]
**root=/**
enabled = true
options = "metadata,uid=1000,gid=1000,umask=0022,fmask=11,case=off"
mountFsTab = true
crossDistro = true
Change root=/mnt
to change to the default behavior or simply delete the root line.
Restart Windows to apply the change

Nimantha
- 6,405
- 6
- 28
- 69

Carlos Rafael Ramirez
- 5,984
- 1
- 29
- 36