Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Since I first installed Mandriva 2005 LE, I've had this little warning come up whenever I use the find command as root, starting from the root directory:
find: WARNING: Hard link count is wrong for ./proc: this may be a bug in your filesystem driver. Automatically turning on find's -noleaf option. Earlier results may have failed to include directories that should have been searched.
There are only two links in the /proc directory, one of which is mounts.
Can anyone tell me how I might address this (and um... what it *means*)???
Thanks
Thanks for the suggestion and link, Herc.
fsck has me a little spooked, though. The first thing it tells me is that running fsck on a mounted filesystem can cause severe damage.
Oh boy!
I'll investigate before I pull this trigger.
Distribution: Ubuntu 05.10, 6.06 also have used: FC 3, 4 & 5
Posts: 15
Rep:
Quote:
Originally posted by jbuckley2004 Addy86 -
... (and cliearly, I"m not alone with this little bug). It's time to report it.
J
Earlier, I requested advice on how to see two error messages that swept past too quickly for me to read that involved the same find command type errors. I am running Debian testing and unstable using 2.6.8 kernel (I think it's "-2"). Here is the message I get trying to run the command as su:
Quote:
find: WARNING: Hard link count is wrong for /proc/1/task: this may be a bug in your filesystem driver. Automatically turning on find's -noleaf option. Earlier results may have failed to include directories that should have been searched.
I had planned to report this too, however, I am much happier to learn I was not alone. Moreover, I had the sneaking worry I had somehow screwed up my configuration to have given myself this problem. So for once, I am not quite as big a screwup as I thought. Nonetheless, I have other problems that I will either solve or that I will finally ask for solutions here when my efforts fail. THANKS!
If you're worried about it, create a shell function that calls ' find -name $1 \! -path "^/proc" '.
Actually, it would be useful to create one like ' find -name $1 \! -path "^/(proc|dev|lost+found|sys)" ' and call it findfile or something. Then you won't get useless results from system directories when you're looking for a file.
Player_2,
I think I understand this...
It's a script that has one passes parameter ($1, right?) that calls the find function, and searches through every directory except /proc ??? is that right?
Um... my knowledge of bash is awful. Doesn't the -name come *after* the starting point of the path?
Either way, thanks. This is a useful idea/workaround.
J
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.