X-Spam-Check-By: sourceware.org
Date: Tue, 3 Jan 2006 11:46:45 -0500 (EST)
From: Igor Peshansky <pechtcha@cs.nyu.edu>
Reply-To: cygwin@cygwin.com
To: Ismael Valladolid Torres <ivalladt@punkass.com>
cc: cygwin@cygwin.com
Subject: Re: Managed mount: Permission denied
In-Reply-To: <20060103162051.GA2868@spma33>
Message-ID: <Pine.GSO.4.63.0601031131380.8210@slinky.cs.nyu.edu>
References: <20060103162051.GA2868@spma33>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

On Tue, 3 Jan 2006, Ismael Valladolid Torres wrote:

> I am trying to get a managed mount in order to store a
> maildir. However it looks like I'm missing something:
>
> $ mkdir "D:\Mail"
> $ mkdir /Mail
> $ mount -o managed "D:\Mail" /Mail
> mount: /Mail: Permission denied

Judging by the prompt, you're using a Cygwin shell.  Most Unix shells use
the backslash as the escape character, so you're really creating a
directory "D:Mail" (which may not really be in the root of the D: drive).

> I don't understand why I could create de directory but not mount over
> it.

WFM.  Please read and follow the Cygwin problem reporting guidelines at
<http://cygwin.com/problems.html>, especially the part about attaching (as
an uncompressed text *attachment*) the output of "cygcheck -svr" on your
system.

> Moreover which is the preferred way to get managed mounts on boot?

Mounts in Cygwin are different from Unix mounts in that they are
persistent -- you only need to give the 'mount' command once.
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_	    pechtcha@cs.nyu.edu | igor@watson.ibm.com
ZZZzz /,`.-'`'    -.  ;-;;,_		Igor Peshansky, Ph.D. (name changed!)
     |,4-  ) )-,_. ,\ (  `'-'		old name: Igor Pechtchanski
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte."
"But no -- you are no fool; you call yourself a fool, there's proof enough in
that!" -- Rostand, "Cyrano de Bergerac"


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

