Mount drive at /Volumes/NAME/ or similar in Cygwin

Posted by Adam on Super User See other posts from Super User or by Adam
Published on 2011-01-31T15:04:11Z Indexed on 2011/01/31 23:28 UTC
Read the original article Hit count: 207

Filed under:
|
|
|

Hi..

I'm using Cygwin on Windows 7. When I plug in an USB stick, the drive automatically gets mounted to /cygdrive/x . This is good and really easy to use.

My problem is that the drive letter changes sometimes, and when I've got remotes set up in git - I've got one called usb at /cygdrive/h/ - this sometimes doesn't work and I have to change the remote URL. That's just an example, there are other scenarios where I wouldn't want it to change.

I like what the Mac does, and puts mounts a volume at /Volumes/STICK (STICK is the Volume name of my usb stick). Is there any way I can do this, or something similar under Cygwin.

Thanks

© Super User or respective owner

Related posts about git

Related posts about cygwin