X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:to:from:subject:date:message-id:references :mime-version:content-type:content-transfer-encoding; q=dns; s= default; b=U+tvrST+tL0SzOTDJaZ4p1rOIE/VbQPNfkXnkXzB9VMUe+pnS3DwR 32XaqpXv0BkWq/zUJvkF7v6ye06FmXgrCGuPUQbz7Lghb+NUK5GqMEezla5OCx7K 9QCzFMB4N1dJYjN1tn3KxgQiYtFIif4e9rDdeO6s3K1J32InL1rjf0= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:to:from:subject:date:message-id:references :mime-version:content-type:content-transfer-encoding; s=default; bh=Sb2tVsP6c55QCAtl67l3rtqPSWA=; b=eP3vjguRp6A4nmz6DrKMcE0VjC5T Z/Agx5Bjvr3jcoPnFpHgE4K5ZKTi2kDIlxUADiqQ+B1jQfOQR1G2xY0Sghfs/eNG /3Fh57bjRWfwouOB64/KkJXN4bLpD8k1czuU97z+xLW27QlWHTUxIfbg+eUhNzJ1 /H1IoDIW/PN/ZnA= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-4.4 required=5.0 tests=AWL,BAYES_50,FSL_HELO_BARE_IP_2,RCVD_IN_DNSWL_LOW,RCVD_NUMERIC_HELO,SPF_HELO_PASS,SPF_PASS,T_RP_MATCHES_RCVD autolearn=no version=3.3.2 X-HELO: plane.gmane.org To: cygwin AT cygwin DOT com From: Achim Gratz Subject: Re: bind mounts in fstab Date: Mon, 8 Jun 2015 14:53:36 +0000 (UTC) Lines: 31 Message-ID: References: <20150608124548 DOT GG3005 AT calimero DOT vinschen DOT de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit User-Agent: Loom/3.14 (http://gmane.org/) X-IsSubscribed: yes Corinna Vinschen cygwin.com> writes: > > //server/some/directory /mnt/server-share none binary 0 0 > > #bind mounts > > /mnt/server-share/some/other/directory /mnt/task1 none binary,bind > > > > That works well until I try to add another such bind mount and activate it > > via 'mount -a' without starting a new Cygwin session. Cygwin tries to > > create a mount to the underlying local directory of /mnt/task1 instead of > > binding, which doesn't work of course. > > How does your second bind mount look like? # new bind mount /mnt/server-share/some/other/directory /mnt/task2 none binary,bind Which tries to mount to %CYGWIN_ROOT%/mnt/server-share/some/other/directory when I do a 'mount -a' in the same session. If I instead put in //server/some/directory/some/other/directory none binary 0 0 then everything works OK, AFAICS. This might be related to the fact that some bind mounts appear before the physical mounts in the mount table (not in fstab!), at least if the mounts are processed in the same order. Regards, Achim. -- 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