Cygwin 1.7.15: Cannot access mapped drive

1

Folks, My Windows 2003 Server machine maps a shared network folder to a drive letter. For example:

\\192.168.1.3\d$\logs maps to Z:

I am able to get to this drive using the Windows commandline. This also used to work with Cygwin 1.5. After the upgrade to 1.7, none of the following works from Cygwin:

Z:\
Z:/
/cygdrive/z

When I list the mountpoints in cygwin, by typing mount, I don't see the Z drive. I do see the physical drives:

C:/cygwin/bin on /usr/bin type ntfs (binary,auto)
C:/cygwin/lib on /usr/lib type ntfs (binary,auto)
C:/cygwin on / type ntfs (binary,auto)
C: on /cygdrive/c type ntfs (binary,posix=0,user,noumount,auto)
E: on /cygdrive/e type ntfs (binary,posix=0,user,noumount,auto)

I tried to manually mount the Z drive: mount Z:/ /cygdrive/z/ -o posix=0 This brings up Z drive in mount listing as "unknown" and I still cannot cd into it:

...
Z: on /cygdrive/z type unknown (binary,posix=0,user)
...

How do I make this drive show up? Any ideas?

Thanks for your help and insights.

user49692

Posted 2012-05-18T23:38:25.417

Reputation: 153

Answers

1

Share Mounts are running in the user context and are not necessarily available to all processes (especially if you run the cygwin process under another account for example).

While there are possibilities to mount the share in cygwin, wouldnt it be sufficient to simply access it? You can use the following notation:

//192.168.1.3/d$/logs

leepfrog

Posted 2012-05-18T23:38:25.417

Reputation: 565

1Note: Run net use in cmd to get those paths – VarunAgw – 2016-01-06T15:00:41.153

Thanks leepfrog. It probably would, but this would require changing an application that used to work before. Is this not supported in 1.7.15? – user49692 – 2012-05-19T00:15:22.303

I have just verified this with my local installation (also 1.7) and it works there without issues. You could try to run /bin/copy-user-registry-fstab from cygwin once and then test again – leepfrog – 2012-05-19T23:23:27.460