This is the mail archive of the
mailing list for the Cygwin project.
Re: creating persistance mounts
- From: Dave Korn <dave dot korn dot cygwin at googlemail dot com>
- To: cygwin at cygwin dot com
- Date: Fri, 14 Aug 2009 19:10:03 +0100
- Subject: Re: creating persistance mounts
- References: <4A85A341.email@example.com>
Paul McFerrin wrote:
> The documentation does not help much (man pages & web page).
> 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
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: http://cygwin.com/problems.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple