Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

command ls not working for /

Status
Not open for further replies.

gkout

Technical User
Mar 10, 2003
43
GR
There is a weird behaviour with the ls command on a Solaris 8 box. ls works for every partition except for root (/).
It freezes and returns no output. The command is run full path. The disk is not full and the prtdiag reports no errors.
Has anyone noticed such behaviour?
 
Have you tried the command truss to see what is happening when you run the command ls.. You can run something like the following to capture the ls command to a file.

truss ls > /tmp/ls_trace
 
Thnx biftzmai I ll try it and see what I ll get.
 
Run an [tt]fsck[/tt] on your root partition as soon as you can.

 
Well actually this was a customers box. I advised them to reboot the server in case someone messed up with the box.
They haven't called back so the prob seems to be solved.
Thnx guys.
 
I seen ls hang on the root filesystem if you using NFS mounts and they are stale.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top