This is the mail archive of the cygwin@cygwin.com 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: /: No such file or directory What can I do?


Igor Pechtchanski wrote:
On Sun, 27 Apr 2003, Alain Mérigot wrote:


When I do ls /, I get the message
ls: /: No such file or directory
(I have the same behavior with /etc).
Other pathes are OK (including /cygdrive/x/...

I use cygwin for years and never got such a problem. Before it happened, I
do not remember to have done a specifically dangerous action.
Anyway, as my path is set in autoexec.bat (with windows pathes), most
utilities are still working. Only the ones that requires an access to
specific files in /usr, /etc ... are broken (latex for instance). So this
problem may be here for a couple of days.

I have checked the configuration with regedit and it seems correct :
in /HKEY_LOCAL_MACHINE/software/Cygnus/cygwin/mounts v2/'/', I have flas set
to 0x0a and native to \cygdrive\e\\cygwin.

So, any idea on waht can be done?

Many thanks in advance,
Alain Mérigot


Alain,

Checking the mount settings in the registry is non-portable, the mounts
will not be stored there forever.  Please use "cygcheck -svr" to get
system configuration.  Attaching the output to your message, as per
<http://cygwin.com/problems.html>, might also be a good idea.

Aside from that, looks like you're missing the "/" mount (the output of
"cygcheck -svr" will confirm or deny my guess).  Did you change users?
Did you upgrade any Cygwin packages recently?
	Igor

Here is the output of cygcheck -svr :


Cygwin Win95/NT Configuration Diagnostics
Current System Time: Sun Apr 27 11:19:50 2003

Windows 98 SE Ver 4.10 Build 2222

Path:   .
        \cygdrive\e\cygwin\bin
        c:\WINDOWS
        c:\WINDOWS\COMMAND
        .
        c:\WINDOWS
        e:\CYGWIN\BIN\
        c:\WINDOWS\COMMAND
        c:\PHP4
        g:\MAX5\BACKBURNER2\
        c:\PROGRAM FILES\FICHIERS COMMUNS\AUTODESK SHARED\
        e:\PROGRAM FILES\GS\GS7.05\BIN
        c:\php\
        e:\xemacs\bin\i686-pc-cygwin
        e:\bin
        .
`id' program not found

and here is the output of id

uid=400(ehio) gid=401(mkpasswd) groups=401(mkpasswd)

and finally, the output of mount
\cygdrive\e\cygwin\etc on /etc type system (binmode)
\cygdrive\e\cygwin on / type system (binmode)
c: on /cygdrive/c type user (binmode,noumount)
d: on /cygdrive/d type user (binmode,noumount)
e: on /cygdrive/e type user (binmode,noumount)
f: on /cygdrive/f type user (binmode,noumount)
g: on /cygdrive/g type user (binmode,noumount)
h: on /cygdrive/h type user (binmode,noumount)
i: on /cygdrive/i type user (binmode,noumount)
j: on /cygdrive/j type user (binmode,noumount)

I think effectively that I am missing the '/' mount. But what is strange is that ls / does not work, while mount thinks that / is mounted on /cygdrive/e/cygwin and that I can without problem ls /cygdrive/e/cygwin



Concerning recent update, I have done a (regular) update some days ago and I did not notice any problem after that (but as I said most utilities are working and I do not reboot everyday). I do not remenber which packages were updated, I just let setup choose...

The problem first appeared in latex as the format (located in /usr/...) could not be found. I then tried to do an update (reinstallation of tetex-bin) after I discovered the problem. But the update hanged for a long time -- I can now understand why!. It was probably trying to go to /something -- and I killed it.

After that, I rebooted, created a new user, etc until I discovered the mount problem. But all was done after the problem first happened.

Hope this helps.

Alain Mérigot


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