With many people looking forward to the release of OS X 10.7 Lion, whole disk encryption (WDE) is on top of many nerd’s looking-forward-to list. With most regular setups, this works unproblematically. However, if you have multiple partitions and/or disks, the benefits of live encryption – encrypting your data on the fly without having to reformat – are not supported by the System Preferences UI.
However, there is a surprisingly straightforward way to migrate your drives (be it – as in my case – a second internal hard disk or your thumb drive, etc). OS X’ Core Storage service supports drive encryption on the fly via the diskutil command using the following syntax:
diskutil cs convert /dev/diskXXsYY -passphrase
where diskXXsYY represents the partition you want to encrypt. Diskutil will try to unmount the partition in order to convert it to a logical Core Storage volume. If that’s not possible (as in my case where my home directory resides inside), you will have to restart the system. Otherwise, the conversion process will begin immediately. You can check on its progress by again using diskutil:
diskutil cs list
which will list your partition as part of a new Core Storage Volume and state how much has been encrypted.
One last warning: to the best of my knowledge, the encrypted volumes can only be mounted after a user has logged in (even if the passphrase has been stored in the system keychain). I had to migrate parts of my home folder to the system disk, because Lion would refuse to log me in otherwise. Needless to say, it may take a while for big disks to be encrypted (16h for my 1TB drive).
With many people looking forward to the release of OS X 10.7 Lion, whole disk encryption (WDE) is on top of many nerd's looking-forward-to list. With most regular setups, this works unproblematically. However, if you have multiple partitions and/or disks, the benefits of live encryption - encrypting your data on the fly without having to reformat - are not supported by the System Preferences UI.
However, there is a surprisingly straightforward way to migrate your drives (be it - as in my case - a second internal hard disk or your thumb drive, etc). OS X' Core Storage service supports drive encryption on the fly via the diskutil command using the following syntax:
diskutil cs convert /dev/diskXXsYY -passphrase
where diskXXsYY represents the partition you want to encrypt. Diskutil will try to unmount the partition in order to convert it to a logical Core Storage volume. If that's not possible (as in my case where my home directory resides inside), you will have to restart the system. Otherwise, the conversion process will begin immediately. You can check on its progress by again using diskutil:
diskutil cs list
which will list your partition as part of a new Core Storage Volume and state how much has been encrypted.
One last warning: to the best of my knowledge, the encrypted volumes can only be mounted after a user has logged in (even if the passphrase has been stored in the system keychain). I had to migrate parts of my home folder to the system disk, because Lion would refuse to log me in otherwise. Needless to say, it may take a while for big disks to be encrypted (16h for my 1TB drive).
Recent Comments