{"thread":{"id":"32169","subject":"git bash does not access drive f:","startedAt":"2012-11-22T07:07:55Z","lastAt":"2012-11-23T15:48:15Z","messageCount":4,"participants":["Angelo Borsotti","Heiko Voigt","Sebastian Leske"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"203660","messageId":"CAB9Jk9Ae46PNRex9QrEy9gTgqAbn8KUFifmxQU4s5K5mDDmDZQ@mail.gmail.com","threadId":"32169","inReplyTo":null,"subject":"git bash does not access drive f:","fromName":"Angelo Borsotti","fromEmail":"angelo.borsotti@gmail.com","sentAt":"2012-11-22T07:07:55Z","receivedAt":"2012-11-22T07:07:55Z","isPatch":false,"sender":{"key":"angelo.borsotti@gmail.com","avatar":null},"body":"Hi\n\nI have attached an external disc, which appears on Windows as drive f:\nin Windows Explorer.\nRight-clicking on it displays a context menu showing (among other\nitems) Git Init Here, Git Gui and\nGit Bash. The first two work properly on that drive.\nHowever, the git bash does not. Not even the one that is run from the icon:\n\n$ cd f:\nsh.exe\": cd: f:: No such file or directory\n\n\nIs there any way to make it access drive f?\n\n-Angelo Borsotti\n"},{"id":"203787","messageId":"slrnkatidl.gkp.sleske@iota.localnet","threadId":"32169","inReplyTo":"CAB9Jk9Ae46PNRex9QrEy9gTgqAbn8KUFifmxQU4s5K5mDDmDZQ@mail.gmail.com","subject":"Re: git bash does not access drive f:","fromName":"Sebastian Leske","fromEmail":"sleske@sleske.name","sentAt":"2012-11-23T00:58:30Z","receivedAt":"2012-11-23T00:58:30Z","isPatch":false,"sender":{"key":"sleske@sleske.name","avatar":null},"body":"On 2012-11-22, Angelo Borsotti <angelo.borsotti@gmail.com> wrote:\n> Hi\n>\n> I have attached an external disc, which appears on Windows as drive f:\n> in Windows Explorer.\n> Right-clicking on it displays a context menu showing (among other\n> items) Git Init Here, Git Gui and\n> Git Bash. The first two work properly on that drive.\n> However, the git bash does not. Not even the one that is run from the icon:\n>\n> $ cd f:\n> sh.exe\": cd: f:: No such file or directory\n\nThis is probably a known limitation of MSYS (the shell environment that\nGit Bash uses, which is part of MingW):\n\nDrive letters added after MSYS has started only become visible if all\nMSYS processes are stopped and restarted. See e.g.\n\nHow to register newly mounted drive in git bash?\nhttp://stackoverflow.com/questions/5197540/\n\nfor some more details.\n\nIt seems there is no easy workaround, so you'll need to close all Git\nBash windows and reopen them.\n"},{"id":"203702","messageId":"20121123153106.GA14509@book.hvoigt.net","threadId":"32169","inReplyTo":"CAB9Jk9Ae46PNRex9QrEy9gTgqAbn8KUFifmxQU4s5K5mDDmDZQ@mail.gmail.com","subject":"Re: git bash does not access drive f:","fromName":"Heiko Voigt","fromEmail":"hvoigt@hvoigt.net","sentAt":"2012-11-23T15:31:06Z","receivedAt":"2012-11-23T15:31:06Z","isPatch":false,"sender":{"key":"hvoigt@hvoigt.net","avatar":"https://avatars.githubusercontent.com/u/184958?v=4"},"body":"Hi,\n\nOn Thu, Nov 22, 2012 at 08:07:55AM +0100, Angelo Borsotti wrote:\n> I have attached an external disc, which appears on Windows as drive f:\n> in Windows Explorer.\n> Right-clicking on it displays a context menu showing (among other\n> items) Git Init Here, Git Gui and\n> Git Bash. The first two work properly on that drive.\n> However, the git bash does not. Not even the one that is run from the icon:\n> \n> $ cd f:\n> sh.exe\": cd: f:: No such file or directory\n> \n> \n> Is there any way to make it access drive f?\n\nTry using the environment variable MSYS_WATCH_FSTAB=YesPlease.\n\nWe have an optimization in msys that does not update the virtually\nmounted folders and makes msys executable startups faster. I had similar\nissues with mounted disk images.\n\nThe other alternative: After having the external disc mounted logout and\nlogin again that AFAIR that should also help.\n\nCheers Heiko\n"},{"id":"203704","messageId":"CAB9Jk9CbwvygUJrvE-G3ZZAc1oE7NOh9eEJKtsxTPabupfNT_A@mail.gmail.com","threadId":"32169","inReplyTo":"20121123153106.GA14509@book.hvoigt.net","subject":"Re: git bash does not access drive f:","fromName":"Angelo Borsotti","fromEmail":"angelo.borsotti@gmail.com","sentAt":"2012-11-23T15:48:15Z","receivedAt":"2012-11-23T15:48:15Z","isPatch":false,"sender":{"key":"angelo.borsotti@gmail.com","avatar":null},"body":"Hi Heiko,\n\nI have changed the external drive and seen that the new one works. The\nissue is, I guess, that the first drive was named \"My Passport\", with\na space in it, while the second one is \"Iomega\". Spaces in drive names\nare not accepted by Linux, which could explain why they are a problem\nalso with git bash (even if bash could access them using what is\npassed to it, which is a drive letter, and not the drive name).\n\nThank you\n-Angelo\n\nOn 23 November 2012 16:31, Heiko Voigt <hvoigt@hvoigt.net> wrote:\n> Hi,\n>\n> On Thu, Nov 22, 2012 at 08:07:55AM +0100, Angelo Borsotti wrote:\n>> I have attached an external disc, which appears on Windows as drive f:\n>> in Windows Explorer.\n>> Right-clicking on it displays a context menu showing (among other\n>> items) Git Init Here, Git Gui and\n>> Git Bash. The first two work properly on that drive.\n>> However, the git bash does not. Not even the one that is run from the icon:\n>>\n>> $ cd f:\n>> sh.exe\": cd: f:: No such file or directory\n>>\n>>\n>> Is there any way to make it access drive f?\n>\n> Try using the environment variable MSYS_WATCH_FSTAB=YesPlease.\n>\n> We have an optimization in msys that does not update the virtually\n> mounted folders and makes msys executable startups faster. I had similar\n> issues with mounted disk images.\n>\n> The other alternative: After having the external disc mounted logout and\n> login again that AFAIR that should also help.\n>\n> Cheers Heiko\n"}]}