Git bash can not identify USB flash drives

If you don't want to close all bash windows, or that doesn't help, you can share the drive, and access the network share. Worked for me, usb stick at //localhost/usb works fine, closing bash didn't.


Git bash uses the /x form to identify the root of drives, instead of X:. Doing cd /g should work correctly (you'll likely see similar paths while working within it).

I believe this is just how bash handles the drives on Windows (it is used through all the versions of git bash I've used, on XP through 7).


Gina, the real answer is in your comment above. You have to close down not just any Git bash window, but ALL git bash windows and then re-open one of them. At that point, cd /f will work. By the way, cd F: also works, as the bash terminal converts that to /f. I just confirmed this on Windows 7 64-bit.

Tags:

Git