Questions tagged [updatedb]

The tool to update the search database used by locate for finding files or paths. This tool is typically run daily to keep the index up recent changes in the filesystem.

Filter by
Sorted by
Tagged with
0 votes
0 answers
24 views

fdopendir: Permission denied when running updatedb

I'm trying to index the files on my NAS (It's a TerraMaster F4-210) with the command: updatedb -l 0 -o /home/jake/nas-index.db -U /mnt/nas/ After running for a little while it dies with the error: ...
3 votes
1 answer
217 views

locate and updatedb do nothing in Linux Mint

I run Linux Mint 21. Currently the locate command always returns no results, and updatedb always returns immediately. The database is sized no more than a few kilobytes. I have verified that the ...
2 votes
1 answer
50 views

Can updatedb keep localpaths for removable drives that aren't plugged in?

I run updatedb like this: updatedb --localpaths="/a /b" /a is a removable drive. /b is the local hard drive. Although /a's not always accessible to me, I frequently want to run locate to ...
0 votes
0 answers
65 views

Does the database created by updatedb expire after a certain amount of time?

A few days ago, when I ran locate to find some files in my home filesystem, it didn't return anything. It seemed to me that it had only indexed the files in the root filesystem but not the home ...
  • 95.8k
-2 votes
1 answer
98 views

`updatedb` to grab everything possible

updatedb.findutils and updatedb.mlocate don't seem to grab everything possible. How can they be instructed to include all files? $ printf 'locate: %s, smaller than find: %s\n' "$(sudo locate '*' |...
  • 25
0 votes
0 answers
21 views

Include FUSE mount in updatedb

I want to create a locate database that includes all mounted drives, including a FUSE mount from borg, but I get the following: $ sudo updatedb --debug-pruning -o /var/cache/locate-all.db -l 0 -U $PWD ...
  • 489
0 votes
1 answer
252 views

updatedb does not prune paths

I have a timeshift user with backups in my /home. Every time after boot when I search for something with locate, all the timeshift directories are shown to me. To fix this issue, I added /home/...
  • 43
0 votes
1 answer
44 views

Can I use locate's functionality to find symlinks faster?

I've just read: How to find all symbolic links pointing to any file/directory inside a given directory but that is pretty slow. Now, on typical Linux systems, a filesystem database-of-sorts is ...
  • 8,143
-1 votes
1 answer
126 views

Can GNU FindUtils be configured to skip a directory?

When I run updatedb I get an error "Permission denied" to /run/user $ sudo updatedb /usr/bin/find: '/run/user/1000/doc': Permission denied Note my version of updatedb comes from the package ...
3 votes
2 answers
464 views

updatedb can not create temporary file for a custom database file

I am trying to create a custom mlocate db for my home directory. When running the updatedb it complains about inability to open a temporary file. 55;~/>uname -a Linux yoga 4.12.14-lp151.28.59-...
-8 votes
1 answer
51 views

I am having problem will installing development [closed]

I am nod able to install mono development even after i gave apt get update. My system is asking for Mono depends on =6.10.0.104-0-xamarin16+debian10b1 Its also asking Hit https://download.mono-...
1 vote
1 answer
373 views

Updatedb include the path pointed by symbolic link

I have created mlocate database with the contents of a particular folder. I see that the updatebd doesn't include the path pointed by the symbolic links in the database. How can I include the path ...
  • 1,510
1 vote
1 answer
283 views

Updatedb on samba mounted shares

I have a few directories mounted from a samba share server (my lan storage) and I would like to run updatedb on them. I use to successfully run such command to do that: updatedb -l 0 -o ~/.myDbFile....
  • 21
2 votes
1 answer
2k views

How can I change the configuration of /etc/updatedb.conf file?

Based on the man page of the command "updatedb", we can change and override the configuration of /etc/updatedb.conf using the below commands: --prune-bind-mounts FLAG Set ...
0 votes
1 answer
1k views

unable to update application permission denied

Hi there i new to linux and I just enable Raid 10 as a result i can only connect through a putty session and not remote desktop, everything was working fine untill i followed this article https://...
  • 1
1 vote
1 answer
91 views

Updatedb findutils searches in a folder named 'alex'. What does it mean?

Everyday at some minutes after midnight the updatedb.findutils run to index some files. It's a program, which comes with Ubuntu. Now I wondered what this program does and found this. root 12500 ...
  • 681
26 votes
2 answers
3k views

Why does the `updatedb` program run so fast?

Usually when I have programs that are doing a full disk scan and going over all files in the system they take a very long time to run. Why does updatedb run so fast in comparison?
  • 5,353
0 votes
0 answers
142 views

How make updatedb ignore ~ backup files

updatedb has options to exclude names. But how get it to exclude by part of a name - eg. the pattern *~ ?
  • 163
27 votes
3 answers
10k views

What kind of database do `updatedb` and `locate` use?

The locate program of findutils scans one or more databases of filenames and displays any matches. This can be used as a very fast find command if the file was present during the last file name ...
  • 95.8k
7 votes
2 answers
3k views

How to fix "updatedb: can not find group ` mlocate'" on entware?

I have installed the mlocate package on Asus RT-N56U running Padavan with Entware-ng, which is based on OpenWrt. This embedded Linux distribution has SSH enabled. My locate results are out of date. ...
  • 4,566
0 votes
4 answers
86 views

How can I apply -v after I have already executed a command?

I'd like to watch the progress of a command that I know will take about six hours. I ran an update script and forgot to use -v (or whatever I should have done to "watch" the progress) so I have no way ...
  • 215
1 vote
1 answer
1k views

sudo apt-get update doesn't work on Linux Mint 17.1

I am trying to update my Linux Mint 17.1. But if I give this commands, sudo apt-get update it is giving the following error. E: Could not get lock /var/lib/apt/lists/lock - open (11: Resource ...
  • 681
11 votes
1 answer
2k views

How is updatedb so much faster than find?

How is updatedb so much faster than find? Here's a timed comparison between updatedb and a find command that does a seemingly similar task. compare.sh #!/usr/bin/env bash cmd="sudo updatedb" echo $...
  • 1,618
1 vote
1 answer
147 views

Make updatedb not change access times

Can I keep updatedb on but prevent it from changing atimes? I want to automatically tar up repos that haven't been accessed (by me, not some daemon) for a certain period of time.
  • 27.5k
0 votes
1 answer
278 views

Script for update

I have a script used for update : OLD="int 10" NEW="int 20" i=0 DPATH="/home" for f in $DPATH do sed -i "s/$OLD/$NEW/g" $f let i++ echo "modified:" $f done what i need according to my old ...
  • 139
4 votes
1 answer
1k views

Updatedb unrecognized option '--localpaths='

I am attempting to update a single directory I created. I'm using updatedb so it will be found by the locate command. Command used: updatedb --localpaths='/frodo/lib/modules/3.12.3-031203-generic/...
  • 1,875
9 votes
3 answers
13k views

How to add specific directories to "updatedb" (locate) search path?

I keep my digital music and digital photos in directories in a Windows partition, mounted at /media/win_c on my dual-boot box. I'd like to include those directories—but only those directories—in the ...
  • 123
2 votes
1 answer
849 views

updatedb for a beginner

The updatedb command, as I understand it, is basically the utility that keeps the mlocate.db database file updated. And it's a good idea to keep it updated regularly. For that matter, I've kept a ...
2 votes
0 answers
1k views

Linux mint update problem

I have a problem while doing updates. If I type sudo apt-get updates I will get the following: Err http://ppa.launchpad.net saucy/main Sources ...
29 votes
5 answers
27k views

Can I just disable updatedb?

Is updatedb necessary at all? I never use locate and my servers tend to have dozens of millions of files which usually makes updatedb to run for a long time and consume I/O needed by MySQL and/or ...
  • 507
9 votes
2 answers
8k views

why updatedb command takes too much time?

I have read that to run locate command on CYGWIN first I need to run the following command. updatedb --localpaths=c:/ what this command exactly do as I run this on CYGWIN and it is taking too much ...
  • 791
1 vote
1 answer
426 views

How can I know how long it takes to run updatedb daily job?

I'm using CentOS6.4 and updatedb is running as a daily job. What should I do if I want to know how long it takes for updatedb to run?
  • 5,015
3 votes
3 answers
2k views

How to monitor directory/file changes to rebuild index?

Just moved to Ubuntu 12.04 from Windows 7. Under Win 7 I use "Everything" to search files and directories, it can build the index database and update it once any file or directory changes. I'm very ...
  • 141
23 votes
2 answers
31k views

updatedb: can not open a temporary file for `/var/lib/mlocate/mlocate.db'

I go to use the updatedb command to update the index and I get updatedb: can not open a temporary file for `/var/lib/mlocate/mlocate.db' fyi The locate command is working, e.g. $ locate Index.xml /...