delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-Spam-Check-By: | sourceware.org |
To: | cygwin AT cygwin DOT com |
From: | Robert Pendell <shinji+gmane AT elite-systems DOT org> |
Subject: | Re: ls: reading directory /: No such file or directory |
Date: | Mon, 24 Dec 2007 04:37:11 -0500 |
Lines: | 111 |
Message-ID: | <fknuka$vio$1@ger.gmane.org> |
References: | <476E5113 DOT 20902 AT bigfoot DOT com> <476E5430 DOT 3D01052D AT dessent DOT net> <5JvbHx3lQrwa092yn AT verizon DOT net> <fkn1gp$99n$1 AT ger DOT gmane DOT org> <kHxbHx3lQ7YO092yn AT verizon DOT net> |
Mime-Version: | 1.0 |
User-Agent: | Thunderbird 2.0.0.9 (Windows/20071031) |
In-Reply-To: | <kHxbHx3lQ7YO092yn@verizon.net> |
X-Antivirus: | avast! (VPS 071223-0, 12/23/2007), Outbound message |
X-Antivirus-Status: | Clean |
X-IsSubscribed: | yes |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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 |
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Jeff wrote: > On Sun, 23 Dec 2007 20:20:23 -0500, > Robert Pendell <shinji+gmane[at]elite-systems[dot]org> wrote: > >> Jeff wrote: > [...] >>> $ mount >>> >>> \\Winxp-inspiron\c on /inspiron type system (binmode) >>> C:\WINDOWS\TEMP on /tmp type system (binmode) >>> \\Winxp-desk\c on /desk-c type system (binmode) >>> \\Winxp-desk\d on /desk-d type system (binmode) >>> C:\Cygwin\bin on /usr/bin type system (binmode) >>> C:\Cygwin\lib on /usr/lib type system (binmode) >>> C:\Cygwin on / type system (binmode) >>> A: on /a type system (textmode) >>> C: on /c type system (textmode) >>> D: on /d type system (textmode) >>> E: on /e type system (textmode) >>> >>> [Note: this is the same mount table I've been using for the past >>> several versions of the dll. > [...] >> I was unable to reproduce this from here. My cygwin.dll file is the >> same as yours (I just updated). I also ran the same series of commands >> so you can compare results... > [...] >> shinji AT Shinji-Winxp ~ >> $ mount >> C:\cygwin\bin on /usr/bin type system (binmode) >> C:\cygwin\lib on /usr/lib type system (binmode) >> C:\cygwin on / type system (binmode) >> c: on /cygdrive/c type system (binmode,noumount) >> d: on /cygdrive/d type system (binmode,noumount) > > IOW, the standard default mount table that setup.exe installs. Perhaps > something in my mount table is causing this...? > >> As for the /: bit. /: is likely just / (indicating root folder) and the >> colon (:) is just a seperator to split between the error messages. This >> is typical. > > So 'ls' is telling me that my root directory is not found, then listing > its contents? That makes even less sense to me... > > Administrator AT winxp-notebook ~ > $ cd / > > Administrator AT winxp-notebook / > $ ls -la > ls: reading directory .: No such file or directory > total 425 > drwx------+ 21 Administrator None 0 Dec 23 16:29 . > drwx------+ 21 Administrator None 0 Dec 23 16:29 .. > drwx------+ 2 Administrator None 0 Dec 19 12:23 bin > [...] > Ahh.. OK. I was finally able to reproduce it. I started to add mount points and I added one that pointed to an invalid drive (or location). Pay special attention to the fact that there is no entry in the directory list that says "nofile" even though there should be a mount point there. shinji AT Shinji-Winxp ~ $ mount C:\cygwin\bin on /usr/bin type system (binmode) C:\cygwin\lib on /usr/lib type system (binmode) C:\cygwin on / type system (binmode) C:\nofile on /nofile type system (binmode) c: on /cygdrive/c type system (binmode,noumount) d: on /cygdrive/d type system (binmode,noumount) shinji AT Shinji-Winxp ~ $ ls -al / ls: reading directory /: No such file or directory total 9 drwxrwx---+ 14 shinji Users 0 Dec 15 00:57 . drwxrwx---+ 14 shinji Users 0 Dec 15 00:57 .. - -rwxr-x---+ 1 shinji Users 57 Dec 13 13:15 Cygwin.bat - -rwxr-x---+ 1 shinji Users 7022 Dec 23 20:15 Cygwin.ico drwxrwx---+ 2 shinji Users 0 Dec 23 20:15 bin dr-xr-xr-x 1 0 root 0 Dec 31 1969 cygdrive drwxrwx---+ 2 shinji Users 0 Dec 13 13:14 dev drwxrwx---+ 11 shinji Users 0 Dec 13 13:24 etc drwxrwxrwx+ 3 shinji None 0 Dec 15 00:57 home drwxrwx---+ 18 shinji Users 0 Dec 23 20:15 lib drwxrwx---+ 3 shinji Users 0 Dec 13 11:27 packages drwxrwxrwt+ 2 shinji Users 0 Dec 24 04:24 tmp drwxrwx---+ 16 shinji Users 0 Dec 13 13:22 usr drwxrwx---+ 7 shinji Users 0 Dec 13 13:22 var Now looking at your mount points I would say that there are 7 potential problem points. The 3 mounts pointing to smb shares and the 4 mounts for your drives. If the drive doesn't exist then it can cause this. If the smb share cannot be reached it may be causing this and the 2 second delay. Now creating a folder in the root to match the mount point will resolve this issue without having to change your mount table however. I just checked and that cleared it right back up. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHb33Hs1pR2j1qW+sRAs7EAJ4tz643GNoejKYpx+OQSiiQxaY0/ACghWwe w8QjsDzA918hLI1QObQogos= =einK -----END PGP SIGNATURE----- -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |