DaemonForums  

Go Back   DaemonForums > FreeBSD > FreeBSD General

FreeBSD General Other questions regarding FreeBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 1st August 2008
ivanatora ivanatora is offline
Real Name: Ivan
Fdisk Soldier
 
Join Date: Jul 2008
Location: Bulgaria
Posts: 51
Default Slocate database coverage

Hello,
Locate is very usefull tool for quick finding files. The problem I'm facing is that when I update its database:
Code:
# /usr/libexec/locate.updatedb
... it appears some filesystems are completely missed.
I'm updating the DB as root - I want when I locate something with my regular user it should be able to dig trough the whole disk space.
The missing filesystems are mounted in the time of the update and the root user definately have read permissions on them.
All 3 affected filesystems are NTFS.

Can you explain that behavior? Do you have any idea how to add these filesystems to locate indexing path?
Reply With Quote
  #2   (View Single Post)  
Old 1st August 2008
Carpetsmoker's Avatar
Carpetsmoker Carpetsmoker is offline
Real Name: Martin
Tcpdump Spy
 
Join Date: Apr 2008
Location: Netherlands
Posts: 2,243
Default

Add the ntfs filesystem to /etc/locate.rc, i.e.:

Code:
# filesystems allowed. Beware: a non-listed filesystem will be pruned
# and if the SEARCHPATHS starts in such a filesystem locate will build
# an empty database.
#
# be careful if you add 'nfs'

FILESYSTEMS="ufs ntfs"
__________________
UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things.
Reply With Quote
  #3   (View Single Post)  
Old 4th August 2008
ivanatora ivanatora is offline
Real Name: Ivan
Fdisk Soldier
 
Join Date: Jul 2008
Location: Bulgaria
Posts: 51
Default

I had a little doubt to add it as 'ntfs' or 'ntfs-3g', so I tried both, but it seemed NTFS drives are not indexed again. I checked the file system type as mount sees it:
Code:
> mount
/dev/fuse0 on /mnt/ntfs (fusefs, local, synchronous)
/dev/fuse1 on /mnt/xp (fusefs, local, synchronous)
So I've added 'fusefs' to /etc/locate.rc, re-run the update script and - voila NTFS drives were succesfully indexed
Reply With Quote
Reply

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Read Excel Data and store into Mysql Database using PHP cksraj Programming 2 3rd June 2009 12:09 PM
Roundcube Mail Can't Connect to MYSQL Database jrs665 OpenBSD Packages and Ports 1 17th November 2008 03:54 PM
PHP database interfaces TerryP Programming 6 11th September 2008 01:03 PM
Changing encoding of text in MySQL database stukov Programming 5 15th July 2008 09:48 PM
WARNING: Vulnerability database out of date, checking anyway mfaridi FreeBSD Security 9 8th May 2008 06:13 AM


All times are GMT. The time now is 04:02 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick