Git bash cannot identify USB drives

I am using git bash on windowsXP system. I try to enter my USB drive by entering "cd G:" in git bash, but it finds out that "sh.exe: cd: g :: There is no such file or directory."

I can open my USB drive in my system.

What is wrong with him? How can i solve the problem?

+7
source share
3 answers

Git bash uses the /x form to identify the root of disks instead of X: . Running cd /g should work correctly (you will probably see similar paths while working inside it).

I believe that this is how bash handles disks on Windows (it is used in all versions of git bash that I used, from XP to 7).

+4
source

Gina, the real answer is in your comment above. You need to close not only the Git bash window, but ALL the Git bash, and then open one of them again. At this point, cd /f will work. By the way, cd F: also works, since the bash terminal will convert it to / f. I just confirmed this on 64 bit Windows 7.

+19
source

If you do not want to close all bash windows, or this does not help, you can share the disk and access the network share. Worked for me, the USB-Stick in //localhost/usb works fine, there was no closing of bash.

+4
source

All Articles