delorie.com/archives/browse.cgi | search |
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:date:from:to:subject:message-id:reply-to | |
:references:mime-version:content-type:in-reply-to; q=dns; s= | |
default; b=IC0ob+MohCibz/z8jPN8TOUSWsFZ9BapD4XDjpOj2TDEryCiLJNdS | |
/iwWocz3XwI1PRZnzlVVTgxFKDyuM3FWZMEYrM0Z7sSkobcBhchg+YAAFiNMYv93 | |
ncg3qNweHs1C4PruVNJMJGCBH5ct4X7+JIt6Rx7AquvqKg5eUhI+o0= | |
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:date:from:to:subject:message-id:reply-to | |
:references:mime-version:content-type:in-reply-to; s=default; | |
bh=qKOGxg23Ddk0gOgj9ovxBDJ7i2U=; b=IfrpndZ44f0SbuX0ZjSK6Z7D5lmb | |
4FSmSE0ZPU1lFCCRKJlUmxXFEabxI8ZIAG74xxVBHThAe58jVe86nZ3J3aUPhGn5 | |
7zFEjfOZF7tfUSV/1+wPIRimNc0sDav/vgyWogmiB0HX+OMOHmXyNUU4D6KlthWx | |
NyxDpl8lzq7txyE= | |
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 |
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 |
Date: | Tue, 3 Nov 2015 14:11:05 +0100 |
From: | Corinna Vinschen <corinna-cygwin AT cygwin DOT com> |
To: | cygwin AT cygwin DOT com |
Subject: | Re: Mounting a network share |
Message-ID: | <20151103131105.GE18567@calimero.vinschen.de> |
Reply-To: | cygwin AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
References: | <20151101210207 DOT GA4736 AT mrvideo DOT vidiot DOT com> <1046348344 DOT 20151102044033 AT yandex DOT ru> <20151102160343 DOT GC12487 AT mrvideo DOT vidiot DOT com> <20151102162651 DOT GB9730 AT calimero DOT vinschen DOT de> <20151102180623 DOT GA13339 AT mrvideo DOT vidiot DOT com> |
MIME-Version: | 1.0 |
In-Reply-To: | <20151102180623.GA13339@mrvideo.vidiot.com> |
User-Agent: | Mutt/1.5.23 (2014-03-12) |
--84ND8YJRMFlzkrP4 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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 -----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--
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |