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]

ls: reading directory /cygdrive/c: No such file or directory


Hi there!
Some time ago my rsync-backup-scripts stopped working and there is really a weird issue that I could not solve using Google and the mailing list archive. Look at the following:


bash-3.2$ ls /
bin  cygdrive  ... works
bash-3.2$ ls /cygdrive/c
ls: reading directory /cygdrive/c: No such file or directory
bash-3.2$ cd /cygdrive/c
bash-3.2$ ls
ls: reading directory .: No such file or directory
bash-3.2$ cd temp
bash-3.2$ ls
... works ...

Why can't I list some directories inside /cygdrive/c, but others work fine?

Any ideas?

Here is my output of cygcheck -s:

Cygwin Configuration Diagnostics
Current System Time: Thu Dec 21 09:57:03 2006

Windows XP Professional Ver 5.1 Build 2600 Service Pack 2

Path:	c:\cygwin\bin
	C:\Perl\bin\
	C:\Program Files\ThinkPad\Utilities
	C:\WINDOWS\system32
	C:\WINDOWS
	C:\WINDOWS\System32\Wbem
	C:\Program Files\IBM\Infoprint Select
	C:\Notes
	C:\Program Files\XLView
	C:\lotus\compnent
	C:\Utilities
	C:\Program Files\IBM\Personal Communications\
	C:\Program Files\IBM\Trace Facility\
	C:\IBMTOOLS\Python22
	C:\WINDOWS\Downloaded Program Files
	C:\Program Files\Altiris\Software Virtualization Agent\

Output from C:\cygwin\bin\id.exe (nontsec)
UID: 500(XXX)   GID: 513(None)
0(root)             513(None)           544(Administrators) 545(Users)

Output from C:\cygwin\bin\id.exe (ntsec)
UID: 500(XXX)   GID: 513(None)
0(root)             513(None)           544(Administrators) 545(Users)

SysDir: C:\WINDOWS\system32
WinDir: C:\WINDOWS

TCL_LIBRARY = 'C:\IBMTOOLS\Python22\tcl\tcl8.4'
PWD = '/home/Mike'
HOME = '/home/Mike'

Use '-r' to scan registry

c:  hd  NTFS     38154Mb  92% CP CS UN PA FC     LocalSystem
e:  cd             N/A    N/A

C:\cygwin      /          system  binmode
C:\cygwin/bin  /usr/bin   system  binmode
C:\cygwin/lib  /usr/lib   system  binmode
.              /cygdrive  system  binmode,cygdrive

Found: c:\cygwin\bin\awk.exe
Found: c:\cygwin\bin\bash.exe
Found: c:\cygwin\bin\cat.exe
Found: c:\cygwin\bin\cp.exe
Found: c:\cygwin\bin\cpp.exe
Not Found: crontab
Found: c:\cygwin\bin\find.exe
Found: c:\cygwin\bin\gcc.exe
Not Found: gdb
Found: c:\cygwin\bin\grep.exe
Found: c:\cygwin\bin\kill.exe
Found: c:\cygwin\bin\ld.exe
Found: c:\cygwin\bin\ls.exe
Found: c:\cygwin\bin\make.exe
Found: c:\cygwin\bin\mv.exe
Found: c:\cygwin\bin\patch.exe
Found: c:\cygwin\bin\perl.exe
Found: C:\Perl\bin\perl.exe
Found: c:\cygwin\bin\rm.exe
Found: c:\cygwin\bin\sed.exe
Found: c:\cygwin\bin\ssh.exe
Found: c:\cygwin\bin\sh.exe
Found: c:\cygwin\bin\tar.exe
Found: c:\cygwin\bin\test.exe
Not Found: vi
Found: c:\cygwin\bin\vim.exe

   61k 2006/11/10 c:\cygwin\bin\cygbz2-1.dll
    7k 2006/10/22 c:\cygwin\bin\cygcharset-1.dll
    7k 2003/10/19 c:\cygwin\bin\cygcrypt-0.dll
 1125k 2006/10/04 c:\cygwin\bin\cygcrypto-0.9.7.dll
 1053k 2006/10/04 c:\cygwin\bin\cygcrypto-0.9.8.dll
  895k 2004/04/28 c:\cygwin\bin\cygdb-4.2.dll
  965k 2005/05/14 c:\cygwin\bin\cygdb-4.3.dll
 1156k 2004/04/28 c:\cygwin\bin\cygdb_cxx-4.2.dll
 1240k 2005/05/14 c:\cygwin\bin\cygdb_cxx-4.3.dll
  174k 2004/10/14 c:\cygwin\bin\cygexpat-0.dll
   40k 2006/11/15 c:\cygwin\bin\cygform-8.dll
   45k 2001/04/25 c:\cygwin\bin\cygform5.dll
   35k 2002/01/09 c:\cygwin\bin\cygform6.dll
   48k 2003/08/09 c:\cygwin\bin\cygform7.dll
   28k 2003/07/20 c:\cygwin\bin\cyggdbm-3.dll
   19k 2006/11/19 c:\cygwin\bin\cyggdbm-4.dll
   19k 2003/03/22 c:\cygwin\bin\cyggdbm.dll
   15k 2003/07/20 c:\cygwin\bin\cyggdbm_compat-3.dll
    8k 2006/11/19 c:\cygwin\bin\cyggdbm_compat-4.dll
   17k 2001/06/28 c:\cygwin\bin\cyghistory4.dll
   29k 2003/08/10 c:\cygwin\bin\cyghistory5.dll
   25k 2006/12/15 c:\cygwin\bin\cyghistory6.dll
  976k 2006/10/22 c:\cygwin\bin\cygiconv-2.dll
   22k 2001/12/13 c:\cygwin\bin\cygintl-1.dll
   37k 2003/08/10 c:\cygwin\bin\cygintl-2.dll
   31k 2005/11/20 c:\cygwin\bin\cygintl-3.dll
   31k 2006/10/23 c:\cygwin\bin\cygintl-8.dll
   21k 2001/06/20 c:\cygwin\bin\cygintl.dll
   21k 2006/11/15 c:\cygwin\bin\cygmenu-8.dll
   26k 2001/04/25 c:\cygwin\bin\cygmenu5.dll
   20k 2002/01/09 c:\cygwin\bin\cygmenu6.dll
   29k 2003/08/09 c:\cygwin\bin\cygmenu7.dll
   21k 2004/10/22 c:\cygwin\bin\cygminires.dll
   67k 2006/11/15 c:\cygwin\bin\cygncurses++-8.dll
  156k 2001/04/25 c:\cygwin\bin\cygncurses++5.dll
  175k 2002/01/09 c:\cygwin\bin\cygncurses++6.dll
  237k 2006/11/15 c:\cygwin\bin\cygncurses-8.dll
  226k 2001/04/25 c:\cygwin\bin\cygncurses5.dll
  202k 2002/01/09 c:\cygwin\bin\cygncurses6.dll
  224k 2003/08/09 c:\cygwin\bin\cygncurses7.dll
   90k 2006/01/25 c:\cygwin\bin\cygneon-25.dll
   12k 2006/11/15 c:\cygwin\bin\cygpanel-8.dll
   15k 2001/04/25 c:\cygwin\bin\cygpanel5.dll
   12k 2002/01/09 c:\cygwin\bin\cygpanel6.dll
   19k 2003/08/09 c:\cygwin\bin\cygpanel7.dll
  109k 2006/02/10 c:\cygwin\bin\cygpcre-0.dll
  299k 2006/02/10 c:\cygwin\bin\cygpcrecpp-0.dll
    7k 2006/02/10 c:\cygwin\bin\cygpcreposix-0.dll
 1249k 2005/12/30 c:\cygwin\bin\cygperl5_8.dll
   22k 2002/06/09 c:\cygwin\bin\cygpopt-0.dll
  108k 2001/06/28 c:\cygwin\bin\cygreadline4.dll
  148k 2003/08/10 c:\cygwin\bin\cygreadline5.dll
  154k 2006/12/15 c:\cygwin\bin\cygreadline6.dll
  231k 2006/10/04 c:\cygwin\bin\cygssl-0.9.7.dll
  215k 2006/10/04 c:\cygwin\bin\cygssl-0.9.8.dll
 1065k 2006/06/09 c:\cygwin\bin\cygxml2-2.dll
   65k 2006/10/16 c:\cygwin\bin\cygz.dll
 1829k 2006/12/19 c:\cygwin\bin\cygwin1.dll
    Cygwin DLL version info:
        DLL version: 1.5.23
        DLL epoch: 19
        DLL bad signal mask: 19005
        DLL old termios: 5
        DLL malloc env: 28
        API major: 0
        API minor: 156
        Shared data: 4
        DLL identifier: cygwin1
        Mount registry: 2
        Cygnus registry name: Cygnus Solutions
        Cygwin registry name: Cygwin
        Program options name: Program Options
        Cygwin mount registry name: mounts v2
        Cygdrive flags: cygdrive flags
        Cygdrive prefix: cygdrive prefix
        Cygdrive default prefix:
        Build date: Tue Dec 19 10:52:28 CET 2006
        CVS tag: cr-0x5f1
        Shared id: cygwin1S4


No Cygwin services found.



Cygwin Package Information Package Version _update-info-dir 00488-1 alternatives 1.3.29a-1 ash 20040127-3 autoconf 4-1 autoconf2.1 2.13-3 autoconf2.5 2.60-2 automake 2-1 automake1.10 1.10-1 automake1.4 1.4p6-4 automake1.5 1.5-2 automake1.6 1.6.3-3 automake1.7 1.7.9-3 automake1.8 1.8.5-3 automake1.9 1.9.6-2 base-files 3.7-1 base-passwd 2.2-1 bash 3.2.9-10 binutils 20060817-1 bzip2 1.0.3-2 cadaver 0.22.3-1 coreutils 6.7-2 crypt 1.1-1 cygrunsrv 1.17-1 cygutils 1.3.1-1 cygwin 1.5.23-2 cygwin-doc 1.4-4 diffutils 2.8.7-1 editrights 1.01-1 expat 1.95.8-1 findutils 4.3.2-3 gawk 3.1.5-4 gcc 3.4.4-3 gcc-core 3.4.4-3 gcc-g++ 3.4.4-3 gcc-mingw-core 20050522-1 gcc-mingw-g++ 20050522-1 gdbm 1.8.3-8 gnupg 1.4.5-1 grep 2.5.1a-2 groff 1.18.1-2 gzip 1.3.9-1 less 381-1 libbz2_1 1.0.3-2 libcharset1 1.11-1 libdb4.2 4.2.52-1 libdb4.3 4.3.28-1 libgc 6.4-1 libgdbm 1.8.0-5 libgdbm-devel 1.8.3-8 libgdbm3 1.8.3-3 libgdbm4 1.8.3-8 libiconv 1.11-1 libiconv2 1.11-1 libintl 0.10.38-3 libintl1 0.10.40-1 libintl2 0.12.1-3 libintl3 0.14.5-1 libintl8 0.15-1 libncurses5 5.2-1 libncurses6 5.2-8 libncurses7 5.3-4 libncurses8 5.5-3 libneon25 0.25.5-1 libpcre0 6.6-1 libpopt0 1.6.4-4 libreadline4 4.1-2 libreadline5 4.3-5 libreadline6 5.2.1-4 libxml2 2.6.26-1 login 1.9-7 m4 1.4.8-1 make 3.81-1 man 1.6d-2 mingw-runtime 3.11-1 minires 1.00-1 mktemp 1.5-4 ncurses 5.5-3 openssh 4.5p1-1 openssl 0.9.8d-1 openssl097 0.9.7l-1 patch 2.5.8-8 patchutils 0.2.31-1 perl 5.8.7-5 perl-ExtUtils-Depends 0.205-1 perl-ExtUtils-PkgConfig 1.07-1 perl-libwin32 0.26-1 perl_manpages 5.8.7-5 pkg-config 0.21-1 pkgconfig 0.17.2-3 python 2.4.3-1 rsync 2.6.6-1 run 1.1.10-1 sed 4.1.5-2 shutdown 1.7-1 tar 1.16.1-1 tcltk 20060202-1 termcap 20050421-1 terminfo 5.5_20061104-1 texinfo 4.8-3 unzip 5.52-2 vim 7.0.122-1 w32api 3.8-1 w3m 0.5.1-1 wget 1.10.2-2 which 1.7-1 zip 2.32-2 zlib 1.2.3-2 Use -h to see help about each section


-- Michael Baierl mbaierl.com http://mbaierl.com/

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