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.

Filter by
Sorted by
Tagged with
0
votes
2answers
77 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 ...
1
vote
0answers
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 ...
2
votes
1answer
182 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 ...
1
vote
0answers
65 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 ...
1
vote
1answer
217 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/....
4
votes
2answers
1k 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 ...
0
votes
1answer
564 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/...
2
votes
4answers
2k 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
1answer
132 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 ...
2
votes
1answer
1k 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" ...
0
votes
1answer
359 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 ...
3
votes
1answer
2k 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 * * * ...
62
votes
3answers
54k 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 ...
3
votes
1answer
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: ...
12
votes
2answers
12k 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 ...
2
votes
1answer
777 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/...
20
votes
3answers
13k 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 ...
1
vote
1answer
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 ...