Issues with sparsebundle after 11.3

Since upgrading to 11.3 from the prior Big Sur version, I've had an issue with my sparsebundle.


For quite some time, I have been using an encrypted/password protected Sparsebundle disk image that holds sensitive files (financial, taxes, business). It's worked wonderfully and adds the extra layer of security on top of what the Mac already gives.


Since going to 11.3, I'm finding that the sparsebundle drive mounts, and I can use it no problem. But after a period of time, the files become unreadable/unusable. I also am unable to write new files or read existing files. Unmounting the drive and remounting it fixes the issue, so the files aren't becoming corrupt (as far as I can tell), but obviously this is not a workable solution.


Has anyone else had this issue?

Posted on May 3, 2021 12:05 PM

Reply
Question marked as Top-ranking reply

Posted on May 6, 2021 7:18 PM

I've been experiencing this too, roughly once a day. I've been using the mechanism described https://coderwall.com/p/mgi8ja/case-sensitive-git-in-mac-os-x-like-a-pro and https://stackoverflow.com/questions/8904327/case-sensitivity-in-git/12085233#12085233 for years without problem. The sparsebundles live in my ~/Documents folder. They are unencrypted but the volume that ~/Documents lives on is encrypted. This worked flawlessly since 2016 until 11.3. Now the volume will suddenly go 'read-only' and the contents seem to disappear though the volume stays mounted. I work around it so far by 1) using `lsof /Volumes/CM` (where my CM.sparsebundle gets mounted) to find what processes are still accessing the volume, stopping/killing them. 2) `sudo lsof /Volumes/CM` will always show at least one `mds` process still active on the volume so; 3) I just end up force ejecting the volume. system.log shows a flurry of mds processes being automatically killed at about the same time the volume goes 'read only'. My current suspicion is that SpotLight indexing is causing a problem; so I excluded that by adding /Volumes/CM to my work MBPs SpotLight Privacy exclusions. Will see if that helps at all. On my personal Air this has occurred only once so far but that gets exercised less than the work MBP. And yes, I have run Disk Utility on the sparsebundle volume as well as the underlying physical disk (from Recovery Mode) - no problems found by fsck in those.

Similar questions

43 replies

Jun 13, 2021 10:02 PM in response to PHL07

I also have these issues with one mounted, encrypted APFS sparsebundle, size around 40GB. Did not have any issues with sparsebundles under Mojave and just upgraded to Big Sur 11.4 a few days ago. Symptoms are like others have reported: File access on the mounted volume works fine, then all of a sudden all access fails. Clicking into folders of the volume's root directory shows empty content, w/o error alerts.


For me this is very serious as I have an app accessing a database on this mounted volume. Whenever I start using this app, I now repeatedly run into this issue in between a few minutes, making the whole setup unusable. My app start throwing errors. Did not find anything useful yet in system logs.


And yes, ran disk repair on both volume and container and nothing wrong is found.


Suspicion: Maybe this access failure has to do with security permissions under Big Sur. The app I am using to access the sparsebundle volume has permissions to access the "Documents Folder" under System prefs, Security&Privacy, Privacy, Files and Folders. I wonder if macOS has a bug that treats mounted images as "removable volumes" even if the underlying image file resides under ~/Documents. Since my app in question does not have "removable volumes" neither allowed nor listed and does not ask for such a permission.

I will monitor if my problematic sparsebundle also craps out just by mere Finder access, or by opening documents on there with other apps.


Question to the group: When talking about accessing files and the subsequent failure, how are those files accessed? Which apps? Finder? Read only, or also write?



One thing noteworthy: I experienced such issues before under Mojave _only_ for volumes that existed on an external SD cards. (On a 2014 iMac). Back then I thought my built-in SD card reader might have become flaky, but now with these errors under Big Sur, it looks more a software issue has already existed back then. Hmm.



May 3, 2021 12:21 PM in response to a brody

I had no issue going from Catalina to Big Sur with the sparsebundle, and no issues going from earlier versions of Mac OS X to the new releases each year.


In this case, I have copied all the content to a newly created sparsebundle and renamed the old one with a .old extension (and don't use it anymore).


I'm still seeing strange behavior like files missing, being unreadable until an eject of the image and re-mounting it.

May 4, 2021 10:05 AM in response to a brody

Something's definitely not working correctly with sparsebundles. As mentioned upthread, I created a brand new one with 256 bit encryption. Worked yesterday. Still worked this morning (didn't turn off computer overnight).


Just now, I see that only 3 out of 8 folders show up in the drive, and those folders are empty.


Eject the drive and re-mount it and all come back and are fine.


Am I the only one seeing this behavior?

Jun 4, 2021 12:19 AM in response to PHL07

I've been having the same issue, where the files 'disappear' about once every 2-3 days. No problems with earlier versions / upgrades to Mac OS prior to 11.3. I re-created a new .sparsebundle under Big Sur, same issue. Unmounting then remounting the drive brings the files 'back', but it's incredibly disruptive to keep having to do this.

Jun 14, 2021 11:14 AM in response to Stingworm

I can now confirm that the sparsebundle becomes inaccessible / unusable even if no files are read or written while it works; no app accessing the mounted volume. So it just fails by itself (or some other unknown background process issue).


I had my bundle mounted, all was well, left my iMac on over the night, and in the morning the problem had already occured.

Jun 14, 2021 5:11 PM in response to Old Toad

@OldToad a standard advice, but no, the issue persists also in safe mode. By the way, safe mode in Big Sur is slow as molasses and borderline unusable, including the attempts to test things. F.e., clicking on a file/folder in column view takes about 8-10 seconds until anything is shown in the preview window or as file list in the folder; this is a on a 4Ghz i7 iMac.


New findings:

(1) newly created, mac-os-extended-formatted sparsebundle (mounted) just disappear all of a sudden - poof!

(2) AFPS-formatted sparsebundle (mounted) shows the mentioned issues, but sometimes it is just the Finder window that stops working. Opening a new Finder tab/window allows access. In a failing window, I also get funny stats like "-5 items" in the window status bar on the bottom.

Jul 1, 2021 6:58 AM in response to jpcornet

Thanks for the extra insights about your 2 different bundle behaviors Jason. It's an intriguing detail.


I've been dealing with this problem for several weeks now and have also avoided losing any work. I too use VSCode and occasionally vim to do my development work with my git repos stored on a sparsebundle. I usually notice that the volume has unmounted when I save a file and VSCode barks at me about it or I run a git command, e.g. `status`, `add`, `commit`, etc. I always run git commands from a CLI rather than VSCode git integration. I don't know if that matters wrt data loss risk. When I realize the volume is unmounted, I remount it, `cd` back into the directory I'm working with in the CLI and carry on as normal. It's a pia but no work lost yet.

Aug 21, 2021 6:50 AM in response to Kurt Friis

Addendum to addendum to.... :


4 - FOUR - hours ago, the Mac Mini M1 was shut down (no AC either). It has now been started, and this time - shortly after startup, I again started the verify process. Now there us traffic on the network connection and after some minutes preparation network traffic is around 2-5 MByte/sec (network is heavily stressed by reading and creating a copy of the same sparsebundle on a Windows 10 machine).


The crux is, that this is nowhere near, what my previously produced video shows.


There may have been a bug involved, but not even an error message was presented. The positive view is, that verification may not have worked at all. Without any warning or error message. No success message either, but… if a user does this for the first time, how is (s)he to know, that one SHOULD be coming?


That’s probably, what is possible when another machine positively hieves around 100-120 Mbyte/sec out on the same network.


Let’s see, how long it takes to crunch through the task.


After around 10 minutes (plus?) - 600 seconds - all network read traffic has ceased (Time Machine backup is not active for this test). This looks suspiciously similar to the time frame involved, when a sparsebundle is copied into my machine. After 10 minutes, access is denied. I get a message, when the copy is done manually by me at the keyboard. It's time bound, not performance bound, it seems.


No error message. No success message. Up to now.


CPU System is around a couple of percent. User the same. Available: Around 96%. Not dramatic, if you acknowledge, that this note is written, while the - ahem - verification procedure is going on.


I’ll let the machine trundle along for a couple of hours, without me at the helm. If no success message is produced, sparsebundles are buggy. Time Machine also affected.


If no success message is received in a couple of hours, I’ll try a new verification operation.


Care to guess, whether that one will last one second, around 10 minutes or something else (preferably much longer or comparable to a quarter size backupbundle verification - performed on another machine - at least in time, since the same network, NAS etc. is involved, and the M1 does not speed this up in any way or form)?


Smile.

Jun 3, 2021 6:36 PM in response to jwd630

This is still happening to me now on 11.4. I had hopes that that 'minor' upgrade would fix Apple's bungling of this. The only difference: now sometimes the volume will simply disappear completely, unmounting itself, out from under processes that have their current directory on the mounted sparsebundle, and leaving lsof saying - rightly - that there is no such volume. Here is one example:

COMMAND   PID USER   FD     TYPE             DEVICE SIZE/OFF                NODE NAME
node    74278  xxx  cwd                                                          cwd|rtd info error: No such file or directory

Jun 20, 2021 8:27 PM in response to Old Toad

Alas, I do not have the time to create another user account and wait for the problem to happen (or not); I am busy working with my machine. Before I go down that route, I wonder what theoretical ideas we can have about what causes these sparsebundle issues and how they could be user-specific. Considering that at least the issue with APFS-formatted volumes also happens in safe mode –

I am currently testing apps that have "control your computer" privileges under Security&Privacy – Accessibility to see if they might involuntarily mess with volume mounting in the Finder. But so far, no culprits found, and overall none of these app should actually be remotely involved in mounting/unmounting volumes. My prime suspect was ExpanDrive, I uninstalled it, but no win either.

I still think this is a Big Sur bug, but do not find a lot of reports online, which gives me pause. Or maybe there are just not a lot of people anymore that use sparsebundles.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Issues with sparsebundle after 11.3

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.