Why doesn't Gnome Search find your files?
Well, by default Gnome only indexes files which reside directly in your home directory or in the folders Desktop, Documents, Downloads, Music, Pictures and Videos.
Is there some way to search in other folders?
Yes, there is.
To add a folder to the index open gnome-control-center
, open the "Search" menu, click on the little gearwheel symbol and switch to the tab "Other". Now you can add a folder of your choice by clicking on the plus symbol, unfortunately this works only for folders located on the same drive as your home folder.
How to index files located on a different drive than your home folder?
For that you need to bind the directory you want indexed to a folder located on home's drive.
For example use:
cd ~/
mkdir ./searchdirectory
sudo mount --bind /some/directory ./searchdirectory
To make it permanent you would need to write a new entry to "/etc/fstab".
For example like this:
/some/directory /home/youruser/searchdirectory none bind 0 0
3Thanks for this detailed answer. For me, the gearwheel symbol is disabled (using Ubuntu 17.10) – do you have an idea what's the reason for that? – Felix Edelmann – 2017-10-28T11:56:06.710
1And is there a way to enable recursive search? – Felix Edelmann – 2017-10-28T12:00:27.380
2
@FelixEdelmann Looks like the greyed out gearwheel is a bug in Ubuntu.
– testeaxeax – 2017-10-29T17:25:35.217@FelixEdelmann What do you mean by "recursive search"? Gnome is searching recursively in all search locations except the home directory. – testeaxeax – 2017-10-29T17:31:38.960
1@FelixEdelmann As a workaround you could bind the directory you want indexed to a folder inside Documents, which is one of the default search locations, and so you wouldn't need to access the gearwheel menu. – testeaxeax – 2017-10-29T17:37:41.737
@FelixEdelmann, you could try running
dconf-editor
, navigating toorg.freedesktop.Tracker.Miner.Files index-recursive-directories
and editing the value to include directories you wish to index. – Ian Mackinnon – 2018-01-30T12:08:33.037