delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/08/14/13:56:46

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00,SPF_PASS
X-Spam-Check-By: sourceware.org
Message-ID: <4A85A87B.1010700@gmail.com>
Date: Fri, 14 Aug 2009 19:10:03 +0100
From: Dave Korn <dave DOT korn DOT cygwin AT googlemail DOT com>
User-Agent: Thunderbird 2.0.0.17 (Windows/20080914)
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: creating persistance mounts
References: <4A85A341 DOT 9050705 AT columbus DOT rr DOT com>
In-Reply-To: <4A85A341.9050705@columbus.rr.com>
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019