Forum Discussion
pdteo
Jan 03, 2022Brass Contributor
MacOS Monterey - Disable Files on Demand
I use OneDrive to synch all my files with another computer at work and just upgraded to Monterey. I need to be able to search for data in the files using Spotlight/Quick Look etc. so I typically do a...
- Jan 03, 2022That sounds strange. I would expect it to be one or the other as you say. On my own Mac running Monterey I cannot duplicate your issue. As you say, you can't disable FOD from the OneDrive client settings but you should be able to do this with a PList as per https://docs.microsoft.com/en-us/onedrive/deploy-and-configure-on-macos#filesondemandenabled
S_Fitzgerald
Jan 31, 2022Copper Contributor
TAIngalls Thanks! your MD5 trick worked for me to fix the two icons issue, but it takes a long time to run. Do you know of another command that could do the same thing but a bit faster? I have 150 Gb of small (node.js etc) files to get through.
TAIngalls
Jan 31, 2022Copper Contributor
The first time that you run the find with md5 it will take quite a long time. After the first long run you should be able to run the following that only scans items modified within the last day. I did see that someone else ran "head -n 1" instead to only read the first line of each file. I chose to go with md5 since I wasn't sure if something like the head command would have issues with binary files or not.
find /Users/USERNAME/OneDrive/ -type f -newermt $(date -v -1d +'%Y-%m-%d') -exec md5 '{}' \;
- garethoakes1Jan 31, 2022Copper Contributor
TAIngalls this worked perfectly for me, no issues with binary files and quite fast:
find . -type f -exec head -c 1 {} \;
- S_FitzgeraldJan 31, 2022Copper ContributorThanks, that sounds like a good approach until MS fixes this, or I find another cloud sync service.