View previous topic :: View next topic |
Author |
Message |
psheldon n00b

Joined: 02 Apr 2006 Posts: 53 Location: South Africa
|
Posted: Sat Apr 18, 2009 7:53 pm Post subject: Autofs and locate |
|
|
Hi Guys
How would one get locate to work with Autofs ? Locate (updatedb) searches local hard drives. I have ONLY proc in PRUNEFS. If I say updatedb -U /mnt/auto/nfs-drive/home then it does a search but not with /mnt/auto/nfs-drive
thanks.
regards
peter |
|
Back to top |
|
 |
coolsnowmen Veteran


Joined: 30 Jun 2004 Posts: 1479 Location: No.VA
|
Posted: Sun Apr 19, 2009 12:28 am Post subject: Re: Autofs and locate |
|
|
what happens if you do
Code: | cd /mnt/auto/nfs-drive/home; updatedb -U /mnt/auto/nfs-drive/home |
_________________ emerge: there are no ebuilds to satisfy "moo" |
|
Back to top |
|
 |
psheldon n00b

Joined: 02 Apr 2006 Posts: 53 Location: South Africa
|
Posted: Sun Apr 19, 2009 1:50 am Post subject: |
|
|
coolsnowmen
Thanks for the reply
That works.
cd /mnt/auto/; updatedb -U /mnt/auto/
Also works but only for the 1 share the active one.
regards
peter |
|
Back to top |
|
 |
coolsnowmen Veteran


Joined: 30 Jun 2004 Posts: 1479 Location: No.VA
|
Posted: Sun Apr 19, 2009 2:22 am Post subject: |
|
|
I'm not sure how you have cron setup, but it is common to have it execute all /etc/cron.daily/* and slocate installs an update there. You want to change that situation because their update won't have your nfs stuff. _________________ emerge: there are no ebuilds to satisfy "moo" |
|
Back to top |
|
 |
psheldon n00b

Joined: 02 Apr 2006 Posts: 53 Location: South Africa
|
Posted: Sun Apr 19, 2009 7:03 am Post subject: |
|
|
Cron?
I am trying updatedb -v on the command line in a root-shell using kde and konsole. BTW logging in as root and on the command line no-X, does the same. Locate works without autofs, I have removed the nfs-shares from fstab. I tried finding some info about autofs and fstab but without success.
regards
peter |
|
Back to top |
|
 |
|