OSX Encrypted Sparsebundle Image keeps making small file changes

0

I've created an encrypted sparsebundle image to store some files that I want to keep safe in my Google Drive. However, I noticed, that even when just mounting this image and reading files (simple text files) the Google Drive application is constantly uploading "changes". Why is this? I just perform a reading on files? More importantly, is there a way of stopping this? There is no point to have to re-upload constantly blocks that in essence didn't change.

Any tips or help regarding this?

Sander

Posted 2014-04-03T10:28:19.630

Reputation: 153

Answers

1

Just a guess, but the OS could be updating the access time metadata on files/folders when you view them. Try mounting the bundle read-only to avoid this.

--EDIT Try disabling a time updates and spotlight indexing. This tutorial is intended for SSD drives but I see no reason why they would not work for you.

http://sysadmin.flakshack.com/post/9253439680/ssd-tweaks-for-mac-os-x

Disable file access time tracking

Normally the Mac will keep track of the last time any file was accessed.  This contributes to the wear on the SSD drive, so it is helpful to disable it. 

sudo touch /Library/LaunchDaemons/com.noatime.root.plist
Edit the file and paste the following:

<?xml version="1.0" encoding="UTF-8"?> 
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> 
<plist version="1.0"> 
    <dict> 
    <key>Label</key> 
    <string>com.noatime.root</string> 
    <key>ProgramArguments</key> 
    <array> 
        <string>mount</string> 
        <string>-uwo</string> 
        <string>noatime</string> 
        <string>/</string> 
    </array> 
    <key>RunAtLoad</key> 
    <true/> 
</dict> 
</plist>
Reboot and confirm the setting with:

mount | grep noatime
/dev/disk0s2 on / (hfs, local, journaled, noatime)
Adjust Spotlight settings

Spotlight is the Mac’s indexer and search tool.  While a lot of people just disable this service (sudo mdutil -a -i off), I need Spotlight because Outlook 2011 uses it for searching my Outlook data.

To adjust this setting, go to System Preferences…Spotlight…Privacy.  If you exclude directories that change frequently, you’ll save wear on your SSD.  For example, I excluded:

/Library/Caches
~/Library/Caches
/Library/Application Support/Riverbed/Steelhead Mobile/datastore
~/Downloads
~/Documents/Parallels  (where I store my VMs) 

Chris Nava

Posted 2014-04-03T10:28:19.630

Reputation: 7 009

Interesting enough though, the "last read" date/time for the individual files is not being updated. But maybe it is happening indeed on somewhat more folder level.

I want to try to avoid mounting read only, but indeed that would be a solution/ – Sander – 2014-04-03T13:47:47.133

Tried this, sadly, still makes some changes to the sparebundles that triggers uploading to the drive. Might have to start mounting just for reading when not writing otherwise. This way it cluttering the Google Drive "recent changes" view. – Sander – 2014-04-12T20:44:18.670