Category filter

How to fix issues with enabling FileVault on Mac

FileVault is a complete disk encryption program on macOS 10.3 or higher versions for securing the data. Hexnode UEM provides an effective mechanism to associate policies from the MDM console to enable FileVault on the devices. However, in some instances, the users might face problems turning it on. This documentation assists the users in fixing issues associated with enabling FileVault.

Problems while enabling FileVault:

After associating the FileVault policy, the device might fail to enable FileVault due to various reasons. Sometimes an error message is displayed stating the reason for failure as the device is restarted or during the next user login.

Common errors

  1. “An unexpected master password keychain was found.”

    Description: When FileVault encryption is enabled with the help of a Personal Recovery key, sometimes it generates this error message as the user restarts or logs out of the device to turn on FileVault.

    Solution: The error can be rectified by removing the master password keychain file FileVaultMaster.keychain found in the path /Library/Keychains. Further restarting the device helps to resolve the issue.

  2. FileVault master keychain location on a Mac

Other issues and methods to resolve them

  1. The given user account that enables FileVault requires a security token to be enabled.

    Solution: Add a valid secure token to the user account

    On devices running macOS 10.13 and higher, the user (mobile account or user account) needs to have a secure token to activate FileVault. Active Directory users (mobile user accounts) do not have a secure token enabled on them automatically. On the contrary, the server token is enabled on local accounts when such accounts are created. Hence, in the case of an Active Directory user, he/she might experience issues with enabling FileVault. Follow the steps to add a server token to a local user account:

    1. Log in to the given user account.
    2. Open Terminal.
    3. Execute the following command:
    4. Log out from the Mac. Log in once again to the given account for the command to take effect.
  2. Disk problems associated with formatting or directory structure of the device.

    Solution: Use Disk Utility to repair the formatting information.

    If the users find difficulty in enabling the FileVault even when the policy is applied on the devices, you can go for repairing the formatting information on the storage devices. You can make use of the Disk Utility app to repair the disk’s formatting information.

    1. Open the Disk Utility app on the device that faces the issue.
    2. Select the volume/container on the storage device.
    3. Click on First Aid.
      Troubleshooting FileVault
    4. The device prompts you to confirm the repairing process. Click on the Run button.
    5. The First Aid checks the given volume/container for errors and repairs it if any corruptions are found. You have to repeat the procedure separately on each volume/container to check them.
  3. The device is outdated.

    Solution: Update the device

    The error might be because of a software bug. The best way to recover the software bugs is to update the software by navigating to System Preferences > Software Update.
    Troubleshoot FileVault – Software Update

FileVault decryption on an already encrypted Mac

Once the FileVault policy is associated, you can retrieve the personal recovery key of a device that gets automatically escrowed to the Hexnode UEM console. The Decrypt button displayed under Device Summary > Device Info > Security Info > FileVault Recovery Key helps to recover the personal recovery key that you can use to decrypt the macOS disk.

Obtain the filevault recovery key from Device Summary page

But, the decryption key cannot be retrieved from the portal if:

  • The device is re-enrolled as a new device that had the FileVault policy already enabled or,
  • The device is encrypted before enrollment or before a FileVault policy is associated.

The device summary page displays no recovery key if the filevault is already enabled

In such cases, you can either set up a new personal recovery key from the Terminal or associate a new FileVault policy with the Escrow Personal Recovery Key option checked.

Note:


Ensure that FileVault is disabled manually before applying a new FileVault policy.


Here’s how you can set up a new personal recovery from the device terminal:
  1. Open the Terminal on the Mac.
  2. Run the following command:
  3. A new recovery key will be displayed in Terminal.
  4. Open the Hexnode UEM agent app on the device.
  5. Click on the Sync button.
  6. Log in to the Hexnode portal.
  7. Execute the
    Scan Device
    action on the device.
  8. The option to decrypt the FileVault recovery key will be displayed under Security Info.
  9. Select the option ‘Decrypt FileVault Recovery Key’.
    Decrypt FileVault Recovery Key
  10. Choose the method of encryption used.
  11. Click Decrypt.

The FileVault recovery key will be displayed next to the FileVault option under the Security Info of the device on the Hexnode portal. Alternatively, you can verify the FileVault recovery key info and the device’s encryption status using the Reports tab. Navigate to Reports > Enrolled Devices and search for the device. The FileVault Personal Recovery key column displays either the personal recovery key or any of the following statuses:

  • Failed: It is shown when the recovery key is not fetched despite enabling the Escrow Personal Recovery Key option on the FileVault policy associated with the device.
  • N/A: It indicates that either FileVault had been already enabled on the device or the Escrow Personal Recovery Key option was disabled on the FileVault policy associated with the device.
  • Troubleshooting Guides