The Computer Oracle

How does cygwin mount mapped network drives

--------------------------------------------------
Hire the world's top talent on demand or became one of them at Toptal: https://topt.al/25cXVn
and get $2,000 discount on your first invoice
--------------------------------------------------

Music by Eric Matyas
https://www.soundimage.org
Track title: Music Box Puzzles

--

Chapters
00:00 How Does Cygwin Mount Mapped Network Drives
00:43 Accepted Answer Score 6
01:44 Answer 2 Score 1
02:17 Thank you

--

Full question
https://superuser.com/questions/934178/h...

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#networkshares #cygwin

#avk47



ACCEPTED ANSWER

Score 6


How does cygwin mount mapped network drives

The mount table is set up somewhere in the bowels of cygwin.dll during cygwin startup.

Without looking at the source code I can't give a more precise answer.

You can unmount and then remount using mount with different options if you need to change the default options.

mount will display the current mount table (with the mount options used).

Note:

The mount program is used to map your drives and shares onto Cygwin's simulated POSIX directory tree, much like as is done by mount commands on typical UNIX systems. However, in contrast to mount points given in /etc/fstab, mount points created or changed with mount are not persistent. They disappear immediately after the last process of the current user exited.

Edit /etc/fstab or /etc/fstab.d/$USER to make permanent changes.


Further reading

  • fstab for examples.

  • mount for more information about mount.

  • Special filenames for a list of filename that are read by Cygwin before the mount table has been established.




ANSWER 2

Score 1


Two docs pages describe Cygwin's mount mechanic:

An important quotation:

The /etc/fstab file is used to map Win32 drives and network shares into Cygwin's internal POSIX directory tree.

The only two exceptions are the file system types cygdrive and usertemp. The cygdrive type is used to set the cygdrive prefix.