Open Source Hacker

Pushing the boundaries of free technology

Image

Main menu

Skip to primary content
Skip to secondary content
  • Home
  • Archives
  • Contact
Follow @moo9000

Tag Archives: corruption

How to fix OSX: Cannot login: FileVault is corrupted

Posted on 2010-12-15 by Mikko Ohtamaa
1

OSX provides home folder encryption system called FileVault. FileVault is effectively a sparsebundle file in your home folder, storing all your data, and is mounted as a loopback volume during the login.

If your Mac loses power on a wrong moment FileVault might become corrupted. This will lead to a situation that you cannot login to the system anymore. The login dialog will just tell “Volume is corrupted. Would you like to repair?” And then it says something along lines “login failed”.

Don’t lose your hope here. You can usually still fix the corrupted FileVault sparsebundle file as root user.

1. To create a root user

  • Use OSX installation DVD to add new admin user to the system with non-protected folder
  • …or in the case you have non-admin user accounts on the system already, use them to login, navigate to System preferences -> Accounts and create a new admin account.  Note that you can use your credentials from the corrupted user to make admin level system changes even if the logged in user is not admin – just click the lock icon in the System preferences.
  • An admin user can enable root user. To enable root user, you need to navigate to /Macintosh HD/System/Library/CoreServices open Directory Utility and choose Enable root user from the menu (Snow Leopard)
  • Logout. Then login dialog should have new option “Other” where it allows you to type in username and password. Now login as root with the password you set for it earlier.

2. To fix the damaged sparsebundle file

  • Login as root
  • Open Application -> Utilities -> Disk utility
  • From menu choose Open
  • Choose /Macintosh HD/Users/corruptedusername/corruptedusername.sparsebundle file
  • Disk Utility will complain about something it cannot mount volume, but the volume still will appear in the right hand disk list
  • In the disk list choose the corrupted volume
  • Hit repair
  • The repair process will take minutes, but completes succesfully

After the repair process is complete, logout as the root user and login as the user who had damaged FileVault. This time the login success.

3. More info

  • Repairing a FileVault protected Home folder

\"\" Subscribe to RSS feed Image Follow me on Twitter Image Follow me on Facebook Image Follow me Google+

Posted in osx, technology, Uncategorized | Tagged corruption, damage, directory utility, disk utility, fail, filevault, fix, login, osx, repair, root, snow leopard, technology | 1 Reply

Recent Posts

  • The State of Python in Blockchain 2023 report
  • Building cryptocurrency site with Svelte, Python and TimescaleDB
  • Building a cryptocurrency site with Svelte, Python and TimescaleDB
  • Simple loop parallelization in Python
  • Deform 2.0

Tags

android apache buildout cms css css3 debugging django eclipse firefox git github html5 html5 ios iphone irc javascript joomla jquery linux logging mobile mysql nokia osx phonegap php plone Plone (old) python rss series 60 shell ssh symbian ubuntu unix virtualenv webkit windows Wordpress zodb zope zsh
open source hacker: get your dose of Linux, Ubuntu, Python, Javascript, HTML5 and other cool and free technology.
Google+ profile
Image
Advertisement
Advertisement