Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Autofs and locate
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
psheldon
n00b
n00b


Joined: 02 Apr 2006
Posts: 53
Location: South Africa

PostPosted: Sat Apr 18, 2009 7:53 pm    Post subject: Autofs and locate Reply with quote

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
View user's profile Send private message
coolsnowmen
Veteran
Veteran


Joined: 30 Jun 2004
Posts: 1479
Location: No.VA

PostPosted: Sun Apr 19, 2009 12:28 am    Post subject: Re: Autofs and locate Reply with quote

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
View user's profile Send private message
psheldon
n00b
n00b


Joined: 02 Apr 2006
Posts: 53
Location: South Africa

PostPosted: Sun Apr 19, 2009 1:50 am    Post subject: Reply with quote

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
View user's profile Send private message
coolsnowmen
Veteran
Veteran


Joined: 30 Jun 2004
Posts: 1479
Location: No.VA

PostPosted: Sun Apr 19, 2009 2:22 am    Post subject: Reply with quote

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
View user's profile Send private message
psheldon
n00b
n00b


Joined: 02 Apr 2006
Posts: 53
Location: South Africa

PostPosted: Sun Apr 19, 2009 7:03 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum