From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 128855 invoked by alias); 3 Nov 2015 13:11:09 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 128841 invoked by uid 89); 3 Nov 2015 13:11:09 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-4.1 required=5.0 tests=AWL,BAYES_50,KAM_LAZY_DOMAIN_SECURITY autolearn=no version=3.3.2 X-HELO: calimero.vinschen.de Received: from aquarius.hirmke.de (HELO calimero.vinschen.de) (217.91.18.234) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 03 Nov 2015 13:11:08 +0000 Received: by calimero.vinschen.de (Postfix, from userid 500) id 52EF2A805F0; Tue, 3 Nov 2015 14:11:05 +0100 (CET) Date: Tue, 03 Nov 2015 13:11:00 -0000 From: Corinna Vinschen To: cygwin@cygwin.com Subject: Re: Mounting a network share Message-ID: <20151103131105.GE18567@calimero.vinschen.de> Reply-To: cygwin@cygwin.com Mail-Followup-To: cygwin@cygwin.com References: <20151101210207.GA4736@mrvideo.vidiot.com> <1046348344.20151102044033@yandex.ru> <20151102160343.GC12487@mrvideo.vidiot.com> <20151102162651.GB9730@calimero.vinschen.de> <20151102180623.GA13339@mrvideo.vidiot.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="84ND8YJRMFlzkrP4" Content-Disposition: inline In-Reply-To: <20151102180623.GA13339@mrvideo.vidiot.com> User-Agent: Mutt/1.5.23 (2014-03-12) X-SW-Source: 2015-11/txt/msg00077.txt.bz2 --84ND8YJRMFlzkrP4 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-length: 2585 On Nov 2 12:06, Mike Brown wrote: > On Mon, Nov 02, 2015 at 05:26:51PM +0100, Corinna Vinschen wrote: > > On Nov 2 10:03, Mike Brown wrote: > > > On Mon, Nov 02, 2015 at 04:40:33AM +0300, Andrey Repin wrote: > > > > If you want to do it from Cygwin side, use fstab and don't use /cyg= drive > > > > prefix. It is for automatic mounts ONLY. > > >=20 > > > I went and found the Cygwin web page that describes fstab. What it d= oesn't > > > say is how to use it. > >=20 > > It does: https://cygwin.com/cygwin-ug-net/using.html#mount-table >=20 > What I mean is that I was able to create an entry, but I have no idea how= to > get the mount program to read the contents. >=20 > > > I have the following entry: > > >=20 > > > 192.168.1.40:/Public /Public nfs noacl 0 0 > > ^^^^^^^^^^^^^^^^^^^^ > >=20 > > This syntax isn't known in Windows. Use the same syntax as with SMB > > shares, just use forward slashes: > >=20 > > //192.168.1.40/Public /Public foo binary 0 0 > >=20 > > "noacl" has no meaning on NFS shares, btw.=20 >=20 > No there no explantion on how to enter a user and password. I tried the = nfs > syntax because it doesn't require a password. The Cygwin mount is no actual mount command because it doesn't mount anything. It's not an OS. The mount point in Cygwin is just a translation from DOS to POSIX path as outlined in the documentation. The first field in fstab is basically the underlying Windows path, just with forward slashes. The *actual* mounting, as on Linux, has to be done on the OS level. If you have to attach to a remote drive with username and password, you have to use `net use ...'. In case of NFS mounts you can also (preferredly) use the $SYSTEMROOT\\system32\\mount.exe command which is part of the Windows NFS client installation. Due to this executable name clash between Cygwin mount(1) and NFS mount(1) command, you have to call the latter typically with full path, e.g. $ /cygdrive/c/Windows/System32/mount -h Alternatively, if the mount doesn't require a username/password because the mapping is done in AD or some RFC2307 service(*), just use the SMB-like path (even for NFS) in the Cygwin mount table: //server/share /cygwin-path foo binary 0 0 HTH, Corinna (*) There's also a way to map the anonymous account to a certain uid/gid value using a registry entry: http://blogs.msdn.com/b/sfu/archive/2009/03/27/can-i-set-up-user-name-m= apping-in-windows-vista.aspx --=20 Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Maintainer cygwin AT cygwin DOT com Red Hat --84ND8YJRMFlzkrP4 Content-Type: application/pgp-signature Content-length: 819 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJWOLJpAAoJEPU2Bp2uRE+g4AkP+wZ2XTryaCPsDI6vTK6IfaT9 GmUiYqQvbR7C43fesA1gbVskuFjbPg1b4siK/CPC8Kcy1+bJGGYSM9O2YLeKc7qQ Sf9wt0ruSbtHLvNJ4D6r1V7GVY7D+9m9omFRvGI9w2VLAixTBGLAotDaQdjLHzmp mNZhragRSX4HugfQay3q41fAtIe4NhrvSvXTvagzhLHvRsHomCcP0k1uQ1TDJ4do RGei6Mz9+xKpLCmzVRnkfazgrwRX3VIUZy2+sqZExULX+PQpulX7UaXf0SN7SEL0 RMCQHVKhZX4EPjAhW5/y2Wx60VxHLqNj796T6IkAtvCPsPpgFWDEkUr9hdoYPcU/ jKWwjb5gQSFF6Z2KXuAhAbakhrI0PupRLBms5QKAN2x2LiiC0CzCcsYIINiK7Off b2OZUnaEtTvymJ43Lc3LVR7HhPa/0dU7a4s7aFItP2tGUAXM7YXaDSv/4jyvRtFo KlQDb17ZlQ6G6LnfJCga9/+qPQbxpZ6qPGV3jGkXMYAepYCJVZs8cNHjS4JhY1xt GVNo4LFpgs5IrRD85durtnDl/bWGCnhswfoTUUUHSn8uMytbvWpJoPopf6E4FpkZ GH/VRkUuyk7JprDSLGMB6mDZaJ7RNqZJme4gsX65UgL0vC5I9FvF/3Z7K2T8f3Eu +dtqNUtIbRrO9zQ/xE+S =2XyO -----END PGP SIGNATURE----- --84ND8YJRMFlzkrP4--