Questions tagged [updatedb]
Updatedb indexes the files on the filesystem and is automatically run at certain intervals to refresh the database. The locate command depends on updatedb for its fast search functionality.
26
questions
81
votes
4
answers
74k
views
Can I disable updatedb.mlocate?
On ubuntu server here and I'm trying to unpack 300M image files from a compressed file format using Java.
My unpack rate is 0.5Mbytes/sec, abysmal (34 days to unpack 1.5TB at this rate).
I'm trying ...
26
votes
3
answers
17k
views
updatedb & locate command problem - Files from external hard drive are no longer indexed after rebooting
Files from my external hard drive are no longer indexed after rebooting. I have to remount and then run
# updatedb
after each reboot. The problem is updatedb takes a few minutes for my external ...
17
votes
2
answers
18k
views
How do I run Updatedb everyday?
How do I edit the update.conf at /etc/update.conf to run every day on Ubuntu? This would enable me to use locate with a very recent database.
I read this:
default setting, updatedb, it has been in /...
5
votes
3
answers
3k
views
Where is the database for locate/updatedb on Ubuntu?
I have been reading about the locate command, and the tutorial I was using says that /var/log/updatedb is where the updatedb is located. It is not there on ubuntu (xubuntu), and it doesn't even seem ...
4
votes
1
answer
3k
views
Why anacron does not call the crontab user files?
I want a special command to be lauched everyday, but dont want to put it in the /etc/cron.d/ because its a user specific user!
pg@pipoTower: ~$ crontab -l
# m h dom mon dow command
0 0 * * * ...
4
votes
4
answers
7k
views
`updatedb` cannot open file `mlocate.db`
When I run updatedb from a terminal, I get this error:
updatedb: can not open a temporary file for `/var/lib/mlocate/mlocate.db'
Any ideas about how to get updatedb to work?
4
votes
3
answers
3k
views
updatedb command line options changed during upgrade from 19.04 to 19.10
The updatedb utility changed after upgrading from Ubuntu 19.04 to 19.10 (uhh why?). This broke some scripts I had that used the old command-line options. The new man page from the new system is not ...
4
votes
1
answer
2k
views
How do I tell locate to keep the index of an external HDD?
I changed my configuration so locate is also searching through external harddisks that are mounted in /media.
My /etc/updatedb.conf:
PRUNE_BIND_MOUNTS="yes"
# PRUNENAMES=".git .bzr .hg .svn"
...
4
votes
1
answer
161
views
Can Locate command output only genuine files (not directories)
I am building a home made catalog/indexer of my PDF/DJVU/EPUB/LIT/unspecified files. I need only index the file names. Indexing contents are not needed as I always keep descriptive file names. The ...
3
votes
2
answers
790
views
updatedb doesn't include all attached drives
Manpage states the by default updatedb includes the entire file system. I have two usb attached drives that don't get included updatedb. I can create my own db file for each drive but wondering if I ...
3
votes
1
answer
3k
views
How to exclude files from ubdatedb?
Yesterday, while trying to unmount our (davfs2 mounted) work webdav server from my filesystem, I got device is busy.
Running sudo lsof | grep /mountpoint/of/davfs, revealed that the culprit was ...
3
votes
1
answer
1k
views
Browse through file databases created by updatedb (locate)?
Having indexed external drives using updatedb -l 0 -o db_file -U source_directory I wonder whether there is already a (GUI) browser like Nautilus to navigate offline through the indexed files.
Note: ...
3
votes
0
answers
361
views
How should the daily updatedb cronjob be configured?
For the longest time I have a huge performance issue in my Ubuntu VM, as every day at some time the cpu would be at a 100%, pointing to the fuse process that mounts the shared directories under /mnt/...
2
votes
1
answer
930
views
Managing cron.*
I see that Ubuntu uses /etc/cron.{daily,weekly,monthly} for cron jobs. I also see that some things, like updatedb from mlocate, put their jobs there:
$ dpkg -L mlocate|grep y/m
/etc/cron.daily/...
2
votes
1
answer
777
views
locate not returning files residing on mounted disks
Yes, I have set updatedb.conf to not prune nfs, cifs, smb, autofs and set prune bind mounts to "no".
PRUNE_BIND_MOUNTS="no"
# PRUNENAMES=".git .bzr .hg .svn"
PRUNEPATHS="/tmp /var/spool /home/....
1
vote
1
answer
2k
views
locate, updatedb & cron
On a new EC2 Lucid AMI, I've tried:
$ locate include_prompt.sh
And got:
locate: can not stat () `/var/lib/mlocate/mlocate.db': No such file or directory
I've created the locate database using ...
1
vote
1
answer
2k
views
updatedb : File size limit exceeded (18.04 LTS)
Whenever I run a command :
updatedb
I get the message :
File size limit exceeded (core dumped)
Why is that ?
I know that locate command utilizes a database created by a related utility, updatedb. ...
1
vote
0
answers
58
views
Behaviour of bind mounts at upgrade 20.04 to 22.04 - correct?
Finally, an almost problem-free update between LTS; at least for me. Thanks a bunch!
There are some minor snags. The one that bothered me most was that all my mounts were inaccessible.
Reason: all ...
1
vote
0
answers
2k
views
/usr/bin/updatedb: cannot execute binary file: Exec format error
I am trying to build TensorFlow 1.6. in a Nvidia Jetson TX2, using a script located in: https://github.com/JasonAtNvidia/JetsonTFBuild/blob/master/BuildTensorflow.sh
In this script, "updatedb" is ...
1
vote
0
answers
89
views
locate command doesn't locate files in /media folder [duplicate]
I know there is a file in /media folder, then I searched with locate command, but it doesn't locate the file. I did sudo updatedb, then locate command again, but it doesn't locate the file.
I ...
0
votes
1
answer
831
views
forcing synapse to index a directory
I have a NTFS drive binded into a directory inside my home (binding is specified in fstab), like this:
UUID=1A782A664EB8 /mnt/windows ntfs permissions,locale=en_US.utf8 0 2
/mnt/windows/Users/me/...
0
votes
1
answer
530
views
Is there any procedure for update Live server [closed]
Can someone send me a document with standard procedure for updating LIVE Server.
Is there such thing? We make the updates to our system once per week, but we are not sure if there is some ...
0
votes
0
answers
30
views
Why is the plocate database not updating?
In one of my computers (C1), the plocate database is not updating, see command #2 below, run today 03/21, showing a database last updated on 03/14 (it was manually updated).
The configuration is ...
0
votes
1
answer
561
views
Can I specify a custom location for `updatedb.conf`?
Can I specify a custom location for updatedb.conf?
I am using mlocate/updatedb with a private data base.
I do not have root credentials on this system and I cannot and do not want to change the /etc/...
-1
votes
1
answer
255
views
Get the path of a file using locate command, but not working for some files
Trying to get the path of a file using locate command, but not working for some files
[mohan@host ~]$ locate t
t is a name of the file. It is searching over /usr and /var,
but some other files in the ...
-3
votes
1
answer
473
views
Exclude a directory when using 'plocate'? [closed]
So after using the locate command on Linux Mint a lot, I ran into the issue of every query returning rows upon rows of results in the /timeshift/ directory - what Linux Mint uses as OS save points.
If ...