git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: git bash does not access drive f:

From
SLSebastian Leske <sleske@sleske.name>
Date
Nov 23, 2012, 00:58 UTC
Message-ID
<slrnkatidl.gkp.sleske@iota.localnet>
In-Reply-To
<CAB9Jk9Ae46PNRex9QrEy9gTgqAbn8KUFifmxQU4s5K5mDDmDZQ@mail.gmail.com>
On 2012-11-22, Angelo Borsotti <angelo.borsotti@gmail.com> wrote:
Show 11 quoted lines
> Hi
>
> I have attached an external disc, which appears on Windows as drive f:
> in Windows Explorer.
> Right-clicking on it displays a context menu showing (among other
> items) Git Init Here, Git Gui and
> Git Bash. The first two work properly on that drive.
> However, the git bash does not. Not even the one that is run from the icon:
>
> $ cd f:
> sh.exe": cd: f:: No such file or directory

This is probably a known limitation of MSYS (the shell environment that Git Bash uses, which is part of MingW):

Drive letters added after MSYS has started only become visible if all MSYS processes are stopped and restarted. See e.g.

How to register newly mounted drive in git bash? http://stackoverflow.com/questions/5197540/

for some more details.

It seems there is no easy workaround, so you'll need to close all Git Bash windows and reopen them.

Previous: Angelo BorsottiNext: Heiko Voigt
Message 2 of 4 in “git bash does not access drive f:”
  1. Angelo BorsottiNov 22, 2012
  2. Sebastian LeskeNov 23, 2012
  3. Heiko VoigtNov 23, 2012
  4. Angelo BorsottiNov 23, 2012

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.