Fixing file permissions on network shares in Cygwin

Are you seeing question marks on network shares in mapped drives?

See this page for more information. Basically, modifying the /etc/fstab fixes the problem:

# For a description of the file format, see the Users Guide
# http://cygwin.com/cygwin-ug-net/using.html#mount-table

# This is default anyway:
# none /cygdrive cygdrive binary,posix=0,user 0 0

# noacl = use the ntfs permissions
C:/cygwin/bin /usr/bin ntfs binary,auto,noacl 0 0
C:/cygwin/lib /usr/lib ntfs binary,auto,noacl 0 0
C:/cygwin / ntfs binary,auto,noacl 0 0
none /cygdrive cygdrive binary,posix=0,user,noacl 0 0

USB Drive letters changing in Windows?

Try this program:

USBDLM

It allows user to make ntfs folder mounts automatically, similar to unix systems.


[Settings]
DeleteMountPointsOnRemoval=1
WriteDebugInfo=1
LogLevel=3
WriteLogFile=1
LogFile=D:\Apps\USBDLM\USBDLM.LOG
;
;Remove unused folder mounts
[DeleteUnusedNtfsMountpoints]
Folder1=C:\mount\
;
;If drive has usbdlm.ini file, use it! Otherwise assign drive letter manually
;Not that by default this works only for USB drives, add BusType definitions
;to process Firewire drives too
[DriveLetters]
Letters=%drive%\usbdlm.ini
Letter1=H
Letter2=I
Letter3=J
Letter4=K
Letter5=L
Letter6=N
;
;If you want to hide particular devices from "safe remove" hardware dialog
;[HideFromSafelyRemoveHardware]
;DeviceID1=USB\VID_0424&PID_2228\26020128B005
;DeviceID2=USB\VID_0424&PID_2602\6&1B3E90B3&0&1

Now, the usb drive should have a configuration file, usbdlm.ini, with the following contents:


[DriveLetters]
Letter1=C:\mount\usbdrive

Much more information is found in the program manual.