title: "Windows Subsystem for Linux has no installed distributions" even though 'Ubuntu' is installed
body: <p>I recently moved my <code>wsl</code> directory to another drive due to low storage in <code>C:</code> drive. As per the answer provided in <a href="https://stackoverflow.com/questions/38779801/move-wsl-bash-on-windows-root-filesystem-to-another-hard-drive">this StackOverflow post</a>, I used <code>lxrunoffline</code> tool and moved my <strong>Ubuntu</strong> distribution to another drive (<code>E:\wsl</code> in my case). As soon as the distribution was moved successfully, I ran <code>wsl</code> to test and it worked like a charm.</p>
  
  <p>Everything went fine until one day I accidentally renamed the <code>E:\wsl</code> folder to something else. Well, as expected, <code>wsl</code> didn't work. Then, I reverted back to the name <code>wsl</code> and expected it to work but to my surprise, it didn't find any installed distribution after that even though it's installed... </p>
  
  <pre><code>E:&gt; wsl
  Windows Subsystem for Linux has no installed distributions.
  Distributions can be installed by visiting the Microsoft Store:
  https://aka.ms/wslstore
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/pzqtL.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/pzqtL.png" alt="Ubuntu installed"></a></p>
  
  <p>Is there any way to revert back to the old directory or make <code>wsl</code> point to a manual location?</p>
  
  <p><strong>EDIT:</strong> I don't want to reset <code>Ubuntu</code> as I want to retain the installed packages and preferences...</p>