File Vault Using Up Too Much Space - How Can I De-Activate it?

I'm finding that I really do not need File Vault. ANd, I'm finding that it is using up an incredible amount of space on my HD.
Can I de-activate it and free up more space on my HD?

MacBook 13.3/2.4 -4gB RAM, 160 gB HD, Mac OS X (10.5.4), 80 gb iPod, iMac G4, MacBook 2.4 Ghz, 4gb RAM, OSX 10.5.5

Posted on Feb 8, 2009 9:05 PM

Reply
13 replies

Feb 13, 2009 2:15 PM in response to Commonman

Re the extra space file vault uses, does someone know exactly where the files are kept that FV uses and what the name/s are?
Also each time one signs out and one chooses yes to question of "home folder is using more disk space than necessary, do you want FV to recover the space and continue"..does this make a new file each time this is done, and if so what is file name, where is location, and can former files made previously be deleted?
I wonder if this is why so much space gets used up from just choosing this 'yes' thing here and each time FV writes another file or not. Sorry I don't understand all this, and hope to learn more from someone answering each of above questions. Thanks ahead!

Feb 13, 2009 6:10 PM in response to Strgzr

Here's my understanding:

Your home folder is
HD>Users>username
A normal user account uses ordinary subfolders - Documents, Music, Movies, etc - located inside that home folder to hold your data. If you delete a big movie file, the space freed up is of course released to your entire startup volume.

A FileVault account instead puts all of its data into an encrypted disk image - in fact an encrypted sparseimage. If FileVault is enabled, your home folder doesn't directly contain your Documents and other data folders. It looks as if it does from Finder when you are logged in, but actually all that your home folder really contains is a single file named username.sparseimage. When you log in and give your password, this disk image mounts and you can access your files.

I no longer have a FileVault account to check this, but to my recollection the file structure was:

When logged out:
HD>Users>username>username.sparseimage

When logged in
HD>Users>.username>username.sparseimage
HD>Users>username alias to the mounted volume

Note the new leading period in the name of the username folder when logged in, making it invisible to Finder. The "home" icon that you see in Finder is not really a folder, it is an alias to the mounted disk image that contains all your files.

A problem with using a disk image instead of a folder is what happens when large files are added and then later deleted, emptying the trash. A folder has no minimum size, and if its contents are deleted it will of course release the disk space immediately to the volume that contains it. However a mounted disk image IS such a volume. A "sparse" image file is small when created, can expand to a maximum size when files are added to it, but does not automatically shrink down again when files inside are deleted. So when large files are deleted from a FileVault account, the space freed up is not immediately available on the startup volume. However although a sparseimage does not automatically shrink when files inside it are deleted, it can be "compacted" when it is unmounted, recovering the lost space. This "compacting" of the sparseimage file is what you are offered when you are asked if you want FileVault to recover the space. It can also be done manually using Terminal.

Once the sparseimage file is compacted, though, it is only a little bigger than the sum of the files and folders it contains. So there may be other reasons to turn off FileVault, but you won't gain a lot of extra startup disk space by doing so if FileVault has already "recovered" the unused space.

Feb 16, 2009 1:04 PM in response to Strgzr

I also did not know there was a "sparseimage" left there if one turns off file vault. I tho't it disappeared if file vault was turned off. At least I turned off file vault then went into secondary account where I have all privileges setup same and looked for the sparse image and don't see any.


Sorry, I guess I wasn't clear after all, when I said:
When logged out:
HD>Users>username>username.sparseimage


"When logged out" is not "When turned off"!

I didn't mean that the sparseimage will persist after you turn off FileVault - it won't!
When you turn off FileVault, the contents of the sparseimage are de-crypted and transferred back into a "normal" home folder, after which the sparseimage is deleted. In order to turn FileVault off, though, I believe there needs to be free space temporarily available on the startup volume that is greater than the size of the FileVault account.

Feb 17, 2009 10:00 AM in response to jsd2

jsd2,

Yes, there is a limit on the space one can use on the drive... I believe it is below 50%, closer to 35-40%. If one goes more then that, File-Vault hangs up when you try to shut it off. I have went to a third of the drive space with no problems, but have heard that the closer one goes to 50%, the problems can start. This is the total 'used' space on the drive, not the File-Vault space used.

Feb 17, 2009 2:17 PM in response to The Bohemian

Hi,

In addition to my backup clones, I keep an expendable "test clone" volume on an external drive that I use for experimenting. Here's what I just did:

The test volume's capacity was 79.75GB. I created a small 1GB user account, and then filled up the Shared folder with data files such that there was only 10.75 GB free space remaining on the volume - in other words the volume was 87% full.

Nonetheless, the remaining 13% free space (10.75GB) was still considerably larger than my 1 GB user account. The result - I was able to turn Filevault on and then off again for this small user account with no problems. Specifically:

Before Filevault:
Volume capacity - 79.75GB
Available- 10.74GB
Username home folder - 1.09GB

FileVault turned on:
Volume capacity - 79.75GB
Available - 10.69 GB
Username.sparseimage - 1.14 GB

FileVault turned off again.
Volume capacity - 79.75GB
Available- 10.74GB
Username home folder - 1.09GB

This was in Tiger; I'm fairly sure that Panther works the same way.

After FileVault is fully turned on , the home folder contents are deleted, and after FileVault is fully turned off, the sparseimage is deleted. The free space issue comes up because while FileVault is being turned on or being turned off the user data temporarily exists in duplicate - in both unencrypted (home folder contents) and encrypted (sparseimage) form. And so in order to hold this duplicate data, there needs to be free space temporarily available on the startup volume that is greater than the size of the FileVault account.

Feb 18, 2009 5:59 AM in response to jsd2

Hi,

Interesting tests... like the results.

It does say that the space 'available' is the key, whether one only uses File-Vault for a Home Folder or for Everything (as I did)... all 23 Gig.

Also, when I turned File-Vault off (in Panther), I gained 1 Gig space on the drive.

PS: I do not play with my clones like you do, they are my back-up-just-in-case reserves... Thanks for doing it and coming up with the numbers. Although it would be better to mess-up a clone then the main drive in the computer. Never thought of trying that...

Feb 18, 2009 8:33 AM in response to Commonman

Commonman:

You have run into one of the classic issues with FileVault, not enough space. To be able to turn it off in System Preferences you need to have sufficient space for FileVault to unencrypt the sparseimage which holds your Home Folder. If you do not have sufficient space in Panther, your best bet is to create a larger enough partition on an external Firewire HDD, clone your entire volume on the internal HDD over to it, boot the computer from the clone, then turn off FileVault. Then you can clone everything back to the internal HDD. Most ordinary users don't need the level of security (and potential problems) that FileVault offers. Unless you know why you need it, you are best off not turning it on at all.

😉 cornelius

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.

File Vault Using Up Too Much Space - How Can I De-Activate it?

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