Sorry if I am bothering you. I have no idea why. But after running wsl -t ubuntu then wsl -d ubuntu, now it works. The only thing is it's so slow. Should I move my project folder into WSL ext4 hard disk image file? Or should I just format my D:/ to ext4? What is your advice? Thanks.
So, especially in WSL 2, Windows disk performance is very, very poor. Try doing your work in the Linux filesystem (in your home directory, for instance) instead. Is that faster?
Sorry if I am bothering you. I have no idea why. But after running
wsl -t ubuntu
thenwsl -d ubuntu
, now it works. The only thing is it's so slow. Should I move my project folder into WSL ext4 hard disk image file? Or should I just format my D:/ to ext4? What is your advice? Thanks.So, especially in WSL 2, Windows disk performance is very, very poor. Try doing your work in the Linux filesystem (in your home directory, for instance) instead. Is that faster?
Yes, indeed, it is much faster.