[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: weird find error on fresh etch system



On 08/13/2008 12:16 AM, Zach Uram wrote:
I just installed Debian 4.0 and whenever I use find on /  I see:

find: WARNING: Hard link count is wrong for ./proc/sys/net: this may
be a bug in  your filesystem driver.  Automatically turning on find's
-noleaf option.  Earli er results may have failed to include
directories that should have been searched .

What is going on and how can I fix this?

Zach



Never use the find command to search /proc; that is a special virtual filesystem used to configure your system. If programs touch the wrong things in /proc, it could create serious problems for your computer.

The best way to use "find" is to create a database of all files on your system, and "updatedb" does that. The wisely-written script in /etc/cron.daily/find gets settings from /etc/updatedb.conf, and those settings disable looking into "proc" filesystems.

If you must use "find" directly, be sure to exclude /proc and /sys.


Reply to: