Can I delete my sparse bundle disk image on the local drive?

Hey friends,


I inherited this MacBook Pro from my mom a few years ago. I never worried about most of the things she did with it. She's terrible with computers. And I just assumed that because there was so much space on this bad boy, I'd never have to worry. Well, as it turns out, I'm down to my last 10 GB, and that's after going through and deleting a bunch of stuff. The largest file on the drive, by far, though, is a sparse bundle disk image that is something like 195 GB.


I finally bought an external hard drive that is equipped to handle doing the Time Machine thing. So if that's happening, can I delete this sparse bundle? What's it doing?


This is my first Mac, so I'm pretty new to some of the magical ways in which storage and backup are done. Any help in this matter would be helpful.


Thanks,

BraveSaintStuart

MacBook Pro, OS X Mavericks (10.9.5)

Posted on Jun 14, 2015 4:07 PM

Reply
10 replies

Jun 14, 2015 4:52 PM in response to BraveSaintStuart

We don't now what is in the disk image so we cannot guess what value or use it has.


Disk images are containers that look like disks but are portable like files. You could copy the file to another disk if you are uncertain about deleting it. Then you can delete it without worrying about needing it in the future.


You can also try opening the disk image to see what is inside it. It will mount like any other disk (unless it is password protected or damaged). Open the Finders 'Go menu > Computer' to see any attached disks after yo click it (it may not make a new Finder window).


If you can post the filename or filepath it may help us understand if it is part of the system (it doesn't sound normal so far).

Select the File in Finder and use the 'File Menu > Get Info…' to show the details, post the name/ path here if you need help with it.


NOTE: a Mac will need more than 10GB to be usable - I'd suggest 20GB as a minimum for free disk space, more is better if you have a spinning disk (not an SSD). Please do not use the Time Machine disk to store the disk image - Time Machine is best when there is no other data on the disk, so it can just be left to backup on the disk alone.


P.S. I'd also consider a clean install if it has had years of use from 2 inexperienced users, eventually too many old apps get forgotten about & it can slow up things or waste space or CPU. You would want to backup to another disk before doing that, but it may not be required if you are OK with how it is running.

Jun 14, 2015 5:09 PM in response to Drew Reece

Well... in my own defense, I'm not inexperienced at computers in general, just RELATIVELY inexperienced with Mac OS's. Everything that can be cleaned off, in the way of unused apps and such have been done. It's just that having one file taking up 90% of the file space is kind of a lot.


The full name/path is /Users/.bethdarby/bethdarby.sparsebundle


So maybe not a disk image? Maybe just a file type .sparsebundle?

Jun 14, 2015 5:41 PM in response to BraveSaintStuart

Sparsebundles are disk images…https://en.wikipedia.org/wiki/Sparse_image 🙂



It could be from a deleted user account - there is an option to save the users files into a disk image when removing users. Normally that goes into a 'Deleted Users' folder within the Users folder.


It is odd that the home folder has a dot in its name - is that intentional or a typo? That normally makes the folder hidden on OS X.

Jun 14, 2015 7:34 PM in response to Drew Reece

It would also appear that this has something to do with FileVault. Here's what I know.


A) I think you're right about this being a hidden folder. The way I accessed the file was using Disk Inventory X to find where that big chunk of space was being used and then right-clicking and clicking "Reveal In Finder", but I have three User folders: /.bethdarby; /bethdarby; and /BraveSaintStuart. The .bethdarby folder is faded which leads me to believe that it's "hidden".


B) I never realized when I first set up this new external hard drive for Time Machine that Time Machine wasn't even attempting to back up the entire system. I checked again and when I clicked on this external hard drive to be used by Time Machine, I got the following message: "FileVault is turned on for one or more user accounts on this computer. Time Machine backs up home folders protected by File vault only when the users who own those home folders are logged out."

So, I'm not really sure how FileVault is supposed to be used in conjunction with Time Machine, but it would seem to me that I'm going to need to temporarily move this file if I'm going to be able to do anything with FileVault, (since I don't have enough space to turn off FileVault unless I "get rid" of this file). Then I'll need to turn off FileVault. Then I'll need to put the file back on the drive. Then I'll need to do a new "first backup" on this external drivsh


Sheesh. Maybe you're right. Maybe just a fresh install would do me some good.





Jun 14, 2015 8:38 PM in response to BraveSaintStuart

You are right, the greyed out nature of the folder is because it is hidden, you can see it in Finder if you know where it is & what it is called (basically use the Finder's 'Go menu > Go to folder…' to open hidden stuff, it also 'tab completes' paths).


'bethdarby' is not your current user?


File vault 1 used to have options to just encrypt a users home folder, leaving the system data open to all. File vault 2 came along with full disk encryption protecting everything. This Mac has been migrated with Filevault 1 active. If you are sure you don't need it consider deleting that user account in 'System Preferences > Users & groups'. The home folder was kept in a disk image with the users password protecting it.


If you need more info look around for 'Filevault 1 migration on 10.9', it is not totally clear if it is still supported or what course of action you want to take.


You can also remove items from Time Machine backups, by using the Time Machine 'space UI' to browse to that location & then remove all copies of x. Select the browse Time Machine item from it's menu bar item. I prefer not to start over with Time Machine unless it is misbehaving.

Jun 15, 2015 6:52 AM in response to Drew Reece

Excellent help. Thank you.


So... again, I have three accounts listed under the /Users folder.


There's the .bethdarby folder that's hidden (which is where the .sparsebundle is). Then there's /bethdarby, which is my primary account. Then there's another account I created when I inherited the MacBook, but I have wound up never using it. It's called /BraveSaintStuart. I think I'll probably wind up deleting that account anyway.


Now... here's the deal... when I go to 'System Preferences > Users & Groups', the only two folders are /bethdarby and /BraveSaintStuart users.


So I don't know how to delete that .bethdarby user.

Jun 15, 2015 7:22 AM in response to BraveSaintStuart

Right,

I think the hidden sparse image is the actual container for your bethdarby home folder. I suspect when you login the sparseimage is 'mounted' into /Users/bethdarby. It's possible that if you delete the sparsebundle you will no longer be able to login as bethdarby.


Another possibility is that you somehow have 2 home folders for that user (technically one of them may be the sparse disk image).


I'd do this…

Logout of bethdarby, login as BraveSaintStuart.

Open the /Users folder & see if bethdarby's home is still inside that folder. If her home folder is still there & you can see the regular folders (Documents, Music, Pictures etc) then you may have 2 versions of the home folder.

If the home folder is empty then it seems likely that the sparse image is decrypted & mounted when bethdarby logs in.


You can also use the 'mount' command in Terminal to see what disks are mounted when logged in as bethdarby. The output is a little confusing, but you should find one line with the the sparse bundle listed. Terminal is in /Applications/Utilities, just type the word mount & hit return 🙂


I fear you may need to leave this disk image alone - it probably has all of bethdarby user data in it.


If you want you can test this hypothesis by making a copy of the system, then you can delete the sparse bundle on the copy without fear of breaking the main OS. Do you have a spare disk to copy the entire OS onto? Macs can boot from external USB disks, I can help with the cloning if you want to go down that route.

Jun 15, 2015 2:34 PM in response to Drew Reece

I think you are correct that I should leave that file alone. I've already screwed it up, too! I just copied the file over to an external drive and then deleted the file on the harddrive. That was stupid, though not irreparable, I think. Since I've got that other user account, I was able to move the file back to its original location. I also turned off FileVault 2 for that /bethdarby account, and that seems to be my bigger mistake. I still can't sign into that account now without getting an error message. I'm thinking about just making a note of the apps I like and starting from a clean slate at this point.


The whole reason I wanted to turn off File Vault was because Time Machine wasn't backing up that user... anyway... clearly a wrong move.


I can still access everything, and Time Machine is now working from the secondary user account to backup all user account data. So I figure I'll have access to everything I need to do a restore. I can start fresh and clean and not have a large .sparsebundle file taking up my entire hard drive.

Jun 15, 2015 8:26 PM in response to BraveSaintStuart

Have you tried opening the sparse image? It should be protected with bethdarby's user account password. Try opening the copy you made (it may take eons to 'verify' as it opens, skip that step if you get the option).


If you can open that & see the home folder is intact it should be possible to get out of this situation…

You could delete the bethdarby user account & avoid saving the existing home folder (assuming your backup copy is up to date).

Then copy the disk image contents into /Users & then create a new user account in System Preferences.


Provided you use the correct 'short name' the OS will prompt you into reusing the existing home folder, then it resets the correct permissions on that home folder & you should have the ability to log back in as bethdarby. The users short name is the one without the spaces (bethdarby in this case 🙂).



It sounds onerous but it can work. The most complex part is copying the user data back - you need admin privileges to do so.


To be honest it may be better to do the erase & clean install but if you are not ready for that yet it could be possible to get it working again.

You can also do the same thing after a clean install. This process will restore the user data, you would still need to get the apps installed.


I'm not sure what your best option is however I'd suggest you make some more backups just in case Time Machine is not enough (it should be OK but the complexity of your situation worries me).

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.

Can I delete my sparse bundle disk image on the local drive?

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