Find the answer to your Linux question:
Results 1 to 2 of 2
I have suse10.1 and when I tried to "find / -name myfilename" as root, I get find: WARNING: Hard link count is wrong for /: this may be a bug ...
  1. #1
    Just Joined!
    Join Date
    Oct 2006
    Posts
    3

    Red face Hard link count is wrong.. Tried fsck also didn't work..

    I have suse10.1 and when I tried to "find / -name myfilename" as root, I get

    find: WARNING: Hard link count is wrong for /: 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 looked in some threads, and someone suggested to run 'fsck'. I tried and got this error.

    Partition /dev/hda3 is mounted with write permissions, cannot check it
    fsck.reiserfs /dev/hda3 failed (status 0x10). Run manually!


    I'm Linux newbie, please kindly help. Before yesterday, I was still able to do find /, but I can't remember how I got that error. If somebody can tell me how it happens, it would be great so I can avoid it next time. Thanks.

  2. #2
    Linux User
    Join Date
    Aug 2005
    Posts
    408
    Code:
    find: WARNING: Hard link count is wrong for /: this may be a bug in your filesystem driver.
    One reason you may be getting this message when running find for the whole filesystem is that it doesn't really work to find something in /proc, which is (I'm not sure about the terminology here) virtual. Proc is a way to find information about the kernel and system, so files there aren't really there. Thus, running find on the whole filesystem will create problems when it gets to proc, and it will give you this mesage about the hard link count. Also, if you're searching for an installed program, there are probably other ways to find it.

    In short, I wouldn't worry about the message. If you encounter the message when running the command only on /home or /usr, then you might look into it.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...