Method for spotlight indexing on macOS?

#1

I’m wondering if there is a way to get Spotlight to index a mounted crypt in macOS?

I’d like to search through my files, but Spotlight just doesn’t appear to do anything.

#2

See 4.5 and 4.6.

#3

Thanks, that helps me understand why it’s not working, but I still can’t get it to work yet. mdutil doesn’t want to index the mounted drive when I run "mdutil -i on ‘mounted-folder-name’.

Spotlight does seem to be indexing Google Drive File System’s mount, as when I search for an encrypted filename it shows up right away. Just can’t get the rclone mounted version to work.

#4

What’s your mount command?

#5

rclone mount --allow-root secure: ~/mnt/drive

[local]
type = local

[secure]
type = crypt
remote = local:/Users/psmith/mnt/server
filename_encryption = standard
directory_name_encryption = true
password = *** ENCRYPTED ***

and I mentioned this before in another thread, but i’ve created a symbolic link (/Users/psmith/mnt/server) to point at my Google Drive File Stream mount, since there is a space in the folder structure that I believe causes as error with rclone.

/Users/psmith/mnt/server === /Volumes/GoogleDrive/My Drive/Backups/Server

#6

Are you seeing this as an error when you try to turn on indexing?

/Volumes/Test:
	Error: unknown indexing state.
#7

Yes that’s the exact message I get.

DESKTOP-P4N5R7U:~ psmith$ mdutil -i on '/Users/psmith/mnt/server'
/Users/psmith/mnt/server:
        Error: unknown indexing state.
#8

I’m not sure if that’s a rclone item or a fuse item though. It definitely tries to do something, but not sure what as I don’t see any write issues:

2019/04/17 15:03:54 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxr-xr-x, err=<nil>
2019/04/17 15:03:54 DEBUG : /: Lookup: name=".metadata_never_index"
2019/04/17 15:03:54 DEBUG : /: >Lookup: node=<nil>, err=no such file or directory
2019/04/17 15:03:54 DEBUG : /: Lookup: name=".metadata_never_index_unless_rootfs"
2019/04/17 15:03:54 DEBUG : /: >Lookup: node=<nil>, err=no such file or directory
2019/04/17 15:03:54 DEBUG : /: Lookup: name=".metadata_never_index"
2019/04/17 15:03:54 DEBUG : /: >Lookup: node=<nil>, err=no such file or directory
2019/04/17 15:03:54 DEBUG : /: Lookup: name=".metadata_never_index_unless_rootfs"
2019/04/17 15:03:54 DEBUG : /: >Lookup: node=<nil>, err=no such file or directory
2019/04/17 15:03:58 DEBUG : : Statfs:
2019/04/17 15:03:58 DEBUG : : >Statfs: stat={Blocks:4294967295 Bfree:4294967295 Bavail:4294967295 Files:1000000000 Ffree:1000000000 Bsize:4096 Namelen:255 Frsize:4096}, err=<nil>
2019/04/17 15:03:59 DEBUG : /: Lookup: name=".metadata_never_index"
2019/04/17 15:03:59 DEBUG : /: >Lookup: node=<nil>, err=no such file or directory
2019/04/17 15:03:59 DEBUG : /: Lookup: name=".metadata_never_index_unless_rootfs"
2019/04/17 15:03:59 DEBUG : /: >Lookup: node=<nil>, err=no such file or directory
2019/04/17 15:03:59 DEBUG : /: Attr:
2019/04/17 15:03:59 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxr-xr-x, err=<nil>
#9

ok. thanks for helping anyway!