www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/06/27/14:41:15

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-1.7 required=5.0 tests=BAYES_20,RCVD_IN_DNSWL_LOW,SPF_PASS
X-Spam-Check-By: sourceware.org
Date: 27 Jun 2009 18:40:52 -0000
To: cygwin AT cygwin DOT com
Subject: Network drive issue -- 'no such host or network path'
Encoding: 8bit
From: "Stephen Wilkinson" <307cdqf02 AT sneakemail DOT com>
Message-ID: <5166-73612@sneakemail.com>
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

Hello,

I use cygwin on a computer with mapped network drives. In the cygwin shell, I can list the contents of local drives, but not that of mapped network drives, even though I have no problem in DOS. It's frustrating because I can't use tab completion on a file on a network drive either.

For example, drive U: is mapped to a network shared folder. In DOS 'dir U:\' works, but in bash in cygwin 'ls /cygdrive/u/' gives me the error 'no such host or network path'.

I've checked with 'mount' and the drive is correctly mounted as /cygdrive/u/. What is odd, is that if I specify the full path to a file, I can access it without problems -- for example 'cat /cygdrive/u/example.txt' works.

Google and mailing list searches throw up network access problems related to SSH or CRON jobs, but not on commands run locally as a user.

Since cygwin runs on top of windows, I don't understand how windows can list directory contents but cygwin can't. 

Can anyone who knows what 'ls' does offer any suggestions or hypotheses for this behaviour? I thought of using an alias to DOS's 'dir' but would rather fix the problem.

Thanks,
Steve

--
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019