- after
Google Drive.appupdate version 52.0.6.0 - search from finder doesn't work
mdutil -i on /Volumes/GoogleDrivenever work- returns
Indexing and searching disabled.
- returns
- https://apple.stackexchange.com/a/424445
change_gdrive_smb_port.pyseems not work for version 52.0.6.0
localhostis sometimes mounted on (/Volumes/Google Drive). and i wonder why it sometimes disappears?
- check
localhostis mounted- found in finder sidebar
- or use mount command
$ mount
:
//DRIVE@localhost:49626/Google%20Drive on /Volumes/GoogleDrive (smbfs, nodev, nosuid, nobrowse, mounted by nsano)this case localhost is not mounted.
- if
localhostis mounted, you can see like below
$ mount
:
//sorry_i_forgot_here_but_very_long_name._smb._tcp.local on /Volumes/Google Drive (smbfs, nodev, nosuid, mounted by you)
//DRIVE@localhost:49626/Google%20Drive on /Volumes/GoogleDrive (smbfs, nodev, nosuid, nobrowse, mounted by you)- if
localhostis not mounted. mount it by your self- finder >> move >> connect server >>
smb://localhost:port - or
osascript -e "try" -e "mount volume \"smb://localhost:49626\"" -e "end try"
- finder >> move >> connect server >>
- after mounting
localhost, like below
$ mount
:
//DRIVE@localhost:49655/Google%20Drive on /Volumes/GoogleDrive (smbfs, nodev, nosuid, nobrowse, mounted by you)
//DRIVE@localhost:49655/Google%20Drive on /Volumes/Google Drive (smbfs, nodev, nosuid, mounted by you)why one is indexable (/Volumes/Google Drive you mounted) and the other (/Volumes/GoogleDrive) is not?
- remove old index (when the port number is same)
- we need to do this when the app version is updated
$ sudo ls -l /private/var/db/Spotlight-V100/LocalVolumes/
total 0
drwx------ 4 root wheel 128 10 13 19:17 smb%3A%2F%2FDRIVE@localhost%3A49223%2FGoogle%2520Drive
$ sudo rm -rf /private/var/db/Spotlight-V100/LocalVolumes/smb%3A%2F%2FDRIVE@localhost%3A49223%2FGoogle%2520Drive - re-index
- use mount point
localhost(found in finder or you mounted)
- use mount point
$ mdutil -i on /Volumes/Google\ Drive
/System/Volumes/Data/Volumes/Google Drive:
Indexing enabled.
$ mdutil -E on /Volumes/Google\ Drive - you don't need to re-index
- check new port number
$ mount
:
//DRIVE@localhost:49319/Google%20Drive on /Volumes/GoogleDrive (smbfs, nodev, nosuid, nobrowse, mounted by nsano)- rename index folder
- change port number
sudo mv /private/var/db/Spotlight-V100/LocalVolumes/smb%3A%2F%2FDRIVE@localhost%3A49655%2FGoogle%2520Drive /private/var/db/Spotlight-V100/LocalVolumes/smb%3A%2F%2FDRIVE@localhost%3A49319%2FGoogle%2520Drive-
mount indexable volume again
- finder >> move >> connect server >>
smb://localhost:port
- finder >> move >> connect server >>
-
it works!
smb port is chaged evry time Google Drive.app restart, we need to do this everytime after restart.- indexing caches huge amount of files. so before indexing, it's better to limit cache size.
$ sudo touch /Library/Preferences/com.google.drivefs.settings $ sudo defaults write /Library/Preferences/com.google.drivefs.settings ContentCacheMaxKbytes -int 100000
- limit indexing area using "system settings >> spotlight >> privacy" for reducing google drive and network load.
- MacOS BigSur
- GoogleDrive.app 52.0.6.0 ~ 55.0.3.0
- streaming mode
Uh oh!
There was an error while loading. Please reload this page.