Skip to content

How to rename this path /mountpoint "\\wsl$\ubuntu-2004" (to "\\wsl$\ubuntu") #11993

Answered by tveyben
tveyben asked this question in Q&A
Discussion options

You must be logged in to vote

More googling found a gist with an answer, I made a comment with the latest changes needed
https://gist.github.com/aronreisx/2de3d04e35003e2a167c28525013ff58

For reference I'll paste my comment here as well
1. Stop all instances of WSL
On PowerShell run the command: wsl --shutdown

	2. Open Registry Editor and go to HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Lxss
		Each subfolder on Lxss represents a distro

	3. Locate and rename the distro you want
		Inside each distro folder you have the DistributionName, change it and click ok

	4. Go to Windows Terminal -> Settings ->[the Ubuntu distribution, EG 'Ubuntu-20.04'] -> Command line
	Change to reflect the new name
		EG 'wsl.…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by tveyben
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant