I was running Restic within WLS when my PC restarted due to an update. The backup process was writing to my external HDD on /mnt/j.

After the update, the computer restarted and I noticed that I was low on space on drive C:.

I ran WinDirStat and it showed me this:

enter image description here

If I attempt to list that folder now in WLS, here is what I get:

me@server:~$ cd /mnt/j/
me@server:/mnt/j$ ls -l
ls: cannot open directory .: Invalid argument

Note, somewhere in the middle, I reformatted J: (ie. /mnt/j) thinking that it was lost as there was nothing showing in Windows Explorer (even though space was taken up)

How do I get this space back?

  • Reset the legacy WSL using my answer in my profile then update to 1709 and install the new WSL (if you use it you will appreciate the improvements) – Ramhound Nov 16 '17 at 3:15
  • Does updating to 1709 prevent future resets of being needed or are resets part of life with WLS? – TekiusFanatikus Nov 16 '17 at 10:16
  • Legacy WSL will receive no updates to Ubuntu. The non-beta Windows Store WSL Ubuntu will be updated and unless major changes happen again will not require the environment to be reset – Ramhound Nov 16 '17 at 12:47
  • Unmount J drive from WSL. – Biswapriyo Dec 2 '17 at 16:41
  • @Biswa I ended up using the Windows binary after installing the new WLS... – TekiusFanatikus Dec 3 '17 at 17:18

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.