Link to home
Start Free TrialLog in
Avatar of erikg
erikg

asked on

ghost file appears in LOCATE

I have a ghost file that appears on my FreeBSD!

When I do 'locate myfile.pm' the result is something like this:

/usr/local/www/data/myfile.pm

But the thing is, the file is really placed here:

/usr/local/www/data/modules/myfile.pm

What's going on?

I have tried to remove the directory modules and then to recreate it, but that doesn't help!!
Avatar of jlevie
jlevie

It sounds like your locate database hasn't been rebuilt lately and still contains information that says the file is in /usr/local/www/data. Normally (on my 4.2 STABLE boxes) the locate database would be rebuilt by /etc/periodic/weekly/310.locate, which executes the script /usr/libexec.locate.updatedb. If you want to update the database manually, simply execute /etc/periodic/weekly/310.locate.
erikg:
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
EXPERTS:
Post your closing recommendations!  No comment means you don't care.
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area for this question to:
Accept jlevie's comment as an answer

Please leave any comments here within the next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

Brabard
EE Cleanup Volunteer
Avatar of erikg

ASKER

I am sorry to say, that it was not the locate database that was the problem.
OK , erikg , the jlevie's comment gave right information about one of the most common reasons .
Tell how you solve the problem and the question will be finished with refunding your points .
Avatar of erikg

ASKER

We have gone from Free BSD to Linux :-)
Yeah , that's the SOLUTION :))
Joke .
What is your view at the closing of that question ? If you want to get your points back you can post a question in CS .
ASKER CERTIFIED SOLUTION
Avatar of modulo
modulo

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
erikg,

Can you tell us what was the problem so it can be saved for future searches?  jlevie's answer was a good answer to a common problem, but you said that wasn't it.  Can you post here what was the solution?

majorwoo
EE Page Editor
Avatar of erikg

ASKER

We never found out of how to solve the problem, and as we decided to go from FreeBSD to Linux we solved our problem, even though we could not build our knowledge base.

/ Erik
Ahh ok, and you tried jlevie's answer and that didn't work for you right?  (If that is the case we might want to take this question out of the PAQ as there is no answer here)

majorwoo
EE Page Editor