This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: ls: reading directory /: No such file or directory


-----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@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@winxp-notebook ~
> $ cd /
> 
> Administrator@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@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@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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]