We help IT Professionals succeed at work.

what is the bug in my filesystem

shang3000
shang3000 asked
on
319 Views
Last Modified: 2010-04-20
hi all,
I'm trying to find apr-config
but I got this error and I do not konw if there is a bug on my box or what to do

[root@shang ~]#  find / -name apr-config
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.
/usr/bin/apr-config

best regards
HG
Comment
Watch Question

Try this:

1. Use "linux rescue" after putting in the first CD, rather than an
install. This way the OS is booted from the CD, and you can fsck any
partition, just remember to "umount" it first.

2. Never run fsck (or e2fsck) on /proc. It's a virtual filesystem, so
not only doesn't exist it doesn't get corrupted.

got it from:
http://mailman.lug.org.uk/pipermail/peterboro/2005-August/002767.html

Author

Commented:
hi psyclown-,
thanks for reply

but I have a simple question from where do I get the linux rescue
please execuse my ignorance
best regards
HG
Try this: http://rescuecd.pld-linux.org/

Otherwise your distributer of the linux you are using, probably have some kind of rescue tool on one of their cd's.
Kerem ERSOYPresident

Commented:
Hi,

It has nothing to do with with fsck!!!! This is not a problem of /proc filesystem or your fsck program!!! You should never use find against your /proc filesystem. /proc filesystem is directly managed by the kernel and *should not* be modified. /proc entries are created when the kernel runs a porcess or deleted when the kernl stops the porcess. When you do ls you'll see lots of 0 byte files but yet when you cat them they contain data this is because kernel manages them.

The command says that it is enabling the noleaf option and it is giving you a result if you dont want to see this error message siply use the alias command such as:
alias find='find -noleaf'
and to make it permanent add this command to your ~/.bashrc

You should never try to fix /proc filesystem using fsck !!!!!!!!!!!!!!!
Kerem ERSOYPresident

Commented:
Please ignore psyclone's comments. I'm sure he did not notice that yr talking about the /proc filesystem for a moment!
Kerem ERSOYPresident

Commented:
oh he did my bad did not read the second paragraph :)
My bad, i guess i misunderstood the question, i'll take that one on my cape

Author

Commented:
hi KeremE,
thanks for reply

I did what you said and here is the result

[root@shang ~]# alias find='find -noleaf'
[root@shang ~]# find / -name apr-config
find: paths must precede expression
Usage: find [-H] [-L] [-P] [path...] [expression]

can you please guide me what is going wrong

best regards
HG
President
Commented:
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION

Author

Commented:
thanks alot man,
best regards
HG
Kerem ERSOYPresident

Commented:
Yr welcome :)

Gain unlimited access to on-demand training courses with an Experts Exchange subscription.

Get Access
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Empower Your Career
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a sample view!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.