LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-12-2015, 03:24 AM   #1
ajaxStardust
LQ Newbie
 
Registered: Aug 2012
Location: GMT -5 (aka. EST)
Distribution: Mint, Cygwin, MX, Porteus
Posts: 29

Rep: Reputation: Disabled
Question Use locate (updatedb) to index NAS: How?


i am interested in including my NAS in the index of 'updatedb', for use with 'locate'.
in my experience, 'updatedb' simply ignores the /media/.* path altogether, but that is the path i am interested in including via 'updatedb'.

I have grown accustomed to the convenience of 'locate', as used via 'Cygwin', which allows for switches such as --network-path / --local-path (beg your pardon, if that's not the exact command syntax, but you get the idea: E.g. 'updatedb --network-path "//NetDevice/SubPath/" '), but such options do not seem to be available in the Linux Mint version of locate.

the System is Mint (Petra).
The NAS is mounted via fstab to /media/VolumeName/...
the network device is a Netgear "Stora". (not the best choice for NAS/ such hardware, but... what budget allowed).


:aside:
I see the "Disk Usage Analyzer" seems to be scanning the multiple drives/ partitions/ network storage (i.e. my devices, as shown in 'fstab'), for available/ used space.

Last edited by ajaxStardust; 01-12-2015 at 03:39 AM.
 
Old 01-12-2015, 03:43 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 22,253

Rep: Reputation: 7419Reputation: 7419Reputation: 7419Reputation: 7419Reputation: 7419Reputation: 7419Reputation: 7419Reputation: 7419Reputation: 7419Reputation: 7419Reputation: 7419
I would suggest you to read the man page of updatedb, especially there is an example about indexing a drive:
Code:
EXAMPLES
       To create a private mlocate database as an user other than root, run
              updatedb -l 0 -o db_file -U source_directory
       Note that all users that can read db_file can get the complete list  of
       files in the subtree of source_directory.
 
Old 01-12-2015, 04:43 AM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,185

Rep: Reputation: 4129Reputation: 4129Reputation: 4129Reputation: 4129Reputation: 4129Reputation: 4129Reputation: 4129Reputation: 4129Reputation: 4129Reputation: 4129Reputation: 4129
Of more interest is likely to be updatedb.conf (and its manpage). Will explain a great deal of what is included, and what isn't.
 
Old 01-14-2015, 06:13 AM   #4
ajaxStardust
LQ Newbie
 
Registered: Aug 2012
Location: GMT -5 (aka. EST)
Distribution: Mint, Cygwin, MX, Porteus
Posts: 29

Original Poster
Rep: Reputation: Disabled
Thumbs up

Quote:
Originally Posted by syg00 View Post
Of more interest is likely to be updatedb.conf
that was easy. thank you! achieved my goal.
 
  


Reply

Tags
fstab, indexing, locate, nas, updatedb


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
2 Databases with locate and updatedb JoeyB Linux - Software 1 05-27-2010 05:59 PM
locate updatedb konfigure Mandriva 3 02-03-2008 09:50 PM
locate & updatedb Wicus001 Linux - Software 2 09-27-2007 05:39 AM
locate and updatedb commands are not available guy_ripper Linux - Software 8 10-28-2006 02:39 AM
updatedb/locate difficulty UB_KMA Linux - General 4 12-29-2002 06:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:49 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration