Originally Posted by bigearsbilly
well, (I think)
a simple ls only reads the directory, but to get the -l
it needs to stat each file. So there is a difference.
Good point. As I understand it, stat
ing the file involves reading the inodes. Which brings to mind two things:
- Geminias could run the stat command on one of the files he knows is there and see if this command hangs also.
- Since stating involves inodes, if there is a problem, it might (I am a little unsure of myself here) by found by running fsck
It would be useful if you told us what distro you are using and how you have your disk partitioned. You shouldn't fsck
a mounted partition. But, tmk, it is fairly standard to be able to force the machine to do an fsck
on the next boot, by rebooting with (run as root
I know the above does not work on Ubuntu 6.10. There could be other distros it doesn't work on. (There is a way to still do it on Ubuntu 6.10, but it requires manually creating a file whose name I would have to find by reading through an init script.)
You can also fsck
your partition(s) by booting a live CD.