wim@wim-desktop:/media/data/dots/manouche$ ls > /dev/null
ls: reading directory .: Too many levels of symbolic links
wim@wim-desktop:/media/data/dots/manouche$ find . -type l -exec ls -l {} \;
wim@wim-desktop:/media/data/dots/manouche$ ls -lR . | grep ^l
ls: reading directory .: Too many levels of symbolic links
I have this problem on my filesystem, and googling suggests there is a circular symbolic link somewhere. But I can't find it, the commands I'm trying to recursively look for links aren't returning any results.
Best Answer
This is not the usual "circular link" error (that's why
find
doesn't help you). It says,So the error "Too many levels of symbolic links" is occurring while reading the current directory. It looks like a serious bug in either the driver or the physical filesystem; I'd try unmounting and fscking.
The error is caught in
print_dir()
inside the source ofls
coreutil:and is caused by
readdir
returningELOOP
. It seems to be a bug concerning NFS which should leave traces in your dmesg (dmesg | tail
). File system and OS version seem relevant; what are yours?