I have a laptop with Debian 13 installed and a Synology NAS with an SMB share that holds music files. I have added a line to the /etc/fstab file to auto mount this share during startup. The line is as follows: //192.168.50.2/ShareFolder/CDs /home/chris/Music/CDs cifs credentials=/root/.cred,uid=1000,gid=1000 0 0
This successfully mounts the smb share. I can traverse the folder structure with the file manager and can locate the music files which are shown with a non zero size. The indexing service, localsearch, is configured to only search /home/chris/Music and do it recursively. But the indexing service does not index the files which are arranged as follows: /Music/CDs/ArtistName/AlbumName/SongFiles.
If I run the stat command on the CDs folder I get the following:
chris@debian:~/Music$ stat CDs File: CDs Size: 0 Blocks: 0 IO Block: 1048576 directory Device: 0,46 Inode: 65957 Links: 2 Access: (0755/drwxr-xr-x) Uid: ( 1000/ chris) Gid: ( 1000/ chris) Access: 2025-11-22 02:00:29.480271600 -0700 Modify: 2025-11-15 08:20:18.153656800 -0700 Change: 2025-11-15 08:20:18.153656800 -0700 Birth: 2019-04-26 21:56:59.558605200 -0700 It shows a size of 0 and blocks of 0. I do not understand what the IO Block is telling me. If I run the command find Music -empty it returns nothing i.e. no empty folders which I assume includes the subfolder CDs and its contents. localsearch status returns a count of 0 files and 2 folders. I think CDs is one of the folders counted. It also indicates that indexing is complete.
As a test Rhythmbox finds the music files and will play them but Gnome Music does not see them. My guess is that it uses localsearch indexing. How do I configure my mount command and/or configure localsearch so that the mounted smb share is indexed?
I looked at the gsettings for the tracker and found the following org.freedesktop.Tracker3.Extract max-bytes 1048576. The max-byte size is 1MB which is the same size as the IO Block size for the CDs folder (see output from stat CDs above). All the music files are much larger than 1 MB. Could it be that I need to increase the max-bytes number to be as big as the largest music file size. Thank you.
localsearchsuggests that it only searches local (i.e. non-network) filesystems. I don't use it or have it installed, and the online docs for it doesn't mention any details of what, exactly, it indexes but you should check the config and see if there's a way to enable indexing and searching of remote filesystems. Maybe runlocalsearch index --add --recursive /home/chris/Music/CDsto try forcing it to index the CDs directory itself - it's possible that it may refuse to descend into network shares unless they're explicitly listed. Just a guess, I don't know or use the software.