creating persistance mounts

Dave Korn dave.korn.cygwin@googlemail.com
Fri Aug 14 17:56:00 GMT 2009


Paul McFerrin wrote:

> The documentation does not help much (man pages & web page). 

http://cygwin.com/1.7/cygwin-ug-net/using-utils.html#mount

> mount
> 
> Usage: mount [OPTION] [<win32path> <posixpath>]
>        mount -a
>        mount <posixpath>
> Display information about mounted filesystems, or mount a filesystem
> 
>   -a, --all                     mount all filesystems mentioned in fstab
>   -c, --change-cygdrive-prefix  change the cygdrive path prefix to <posixpath>
>   -f, --force                   force mount, don't warn about missing mount
>                                 point directories
>   -h, --help                    output usage information and exit
>   -m, --mount-entries           write fstab entries to replicate mount points
>                                 and cygdrive prefixes
>   -o, --options X[,X...]        specify mount options
>   -p, --show-cygdrive-prefix    show user and/or system cygdrive path prefix
>   -v, --version                 output version information and exit

  I see no -s option there.

> 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.

  That looks pretty relevant to me.

> Please see the section called “The Cygwin Mount Table” for more information
> on the concepts behind the Cygwin POSIX file system and strategies for
> using mounts.

  Why don't we try that?

http://cygwin.com/1.7/cygwin-ug-net/using.html#mount-table

> The /etc/fstab file is used to map Win32 drives and network shares into
> Cygwin's internal POSIX directory tree. This is a similar concept to the
> typical UNIX fstab file. The mount points stored in /etc/fstab are globally
> set for all users. Sometimes there's a requirement to have user specific
> mount points. The Cygwin DLL supports user specific fstab files. These are
> stored in the directory /etc/fstab.d and the name of the file is the Cygwin
> username of the user, as it's stored in the /etc/passwd file. The content
> of the user specifc file is identical to the system-wide fstab file.

    cheers,
      DaveK


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple



More information about the Cygwin mailing list