This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: bind mounts in fstab
- From: Achim Gratz <Stromeko at NexGo dot DE>
- To: cygwin at cygwin dot com
- Date: Mon, 8 Jun 2015 14:53:36 +0000 (UTC)
- Subject: Re: bind mounts in fstab
- Authentication-results: sourceware.org; auth=none
- References: <loom dot 20150608T122736-327 at post dot gmane dot org> <20150608124548 dot GG3005 at calimero dot vinschen dot de>
Corinna Vinschen <corinna-cygwin <at> 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