0

My USB drive appears as a mounted drive in Bash for Windows 10:

ls /mnt
c  d

There is no d drive physically connected. I only have one internal hard drive c:

win10 drives

The d drive was connected in the past. How do I unmount it from Bash? Or maybe the better question is: if I connect/disconnect the USB drive often, do I need to manually eject/remove the drive from Bash every time as well?

Further, the mounted d drive contains quite a lot of data, even though it is not physically connected:

d drive data

I suppose something is being cached, but this is really inconvenient. I'd really like to reclaim this free space from my C drive on Windows. Any way to get rid of the /mnt/d?

1
  • You should be able to unmount the volume, exactly like you would unmount any volume, if you were using Ubuntu.
    – Ramhound
    Feb 21 '17 at 18:31
1

If you're sure you want to get rid of it and everything inside, you should be able to type

sudo rm -R /mnt/d
2
  • answered my question. still curious why the Linux subsystem kept those files around. perhaps I didn't remove the drive properly or something.
    – kindohm
    Feb 21 '17 at 19:21
  • Yeah that does seem odd. I don't know the answer to that either. I looked in my own WSL, and there was a /mnt/g which I assume was left over from previously having a thumb drive attached. However, it was empty. Feb 21 '17 at 20:06

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.