This is the mail archive of the cygwin mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: creating persistance mounts

Paul McFerrin wrote:

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

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

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


Problem reports:
Unsubscribe info:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]