I've installed an SSD as my main disk and, using an Optibay adapter, replaced my Superdrive with the old HD. The idea is to keep the system snappy, while storing bulky data on the HD. To keep the system quiet, I try to prevent my HD from spinning more than necessary. I like to keep things encrypted, so Filevault 2 is enabled for both SSD and HD.
Problem: I can't figure out how to mount my encrypted HD partition from the command line.
My disks looks like this:
I've tried diskutil mountDisk /dev/disk0 which in theory should work great, but it only mounts the BOOTCAMP partition. Running diskutil mountDisk /dev/disk3 returns a Volume(s) mounted successfully message, but the drive does not show up in the Finder. My guesstimation is that it has something to do with the encryption?
Mounting Data HD from Disk Utility works fine, but cannot be scripted.
I've also tried hdiutil attach /dev/disk3 and it works, but with one flaw. A GUI authentication box (from Authopen) comes up. Twice. It requires me to enter my password. If I enter it, it works. But again, it can't be scripted. And no way of adding password to Keychain or anything.
So, my question is: how do I mount my encrypted /dev/disk3 to an accessible state? Considering I don't need to input password when mounting from the Disk Utility, it shouldn't be impossible?
Very grateful for answers! Best,
/ Jonathan
Problem: I can't figure out how to mount my encrypted HD partition from the command line.
My disks looks like this:
Code:
/dev/disk0
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *320.1 GB disk0
1: EFI 209.7 MB disk0s1
2: Apple_CoreStorage 267.9 GB disk0s2
3: Apple_Boot Boot OS X 134.2 MB disk0s3
4: Microsoft Basic Data BOOTCAMP 51.3 GB disk0s4
/dev/disk1
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *120.0 GB disk1
1: EFI 209.7 MB disk1s1
2: Apple_CoreStorage 119.2 GB disk1s2
3: Apple_Boot Recovery HD 650.0 MB disk1s3
/dev/disk2
#: TYPE NAME SIZE IDENTIFIER
0: Apple_HFS System SSD *118.9 GB disk2
/dev/disk3
#: TYPE NAME SIZE IDENTIFIER
0: Apple_HFS Data HD *267.8 GB disk3
I've tried diskutil mountDisk /dev/disk0 which in theory should work great, but it only mounts the BOOTCAMP partition. Running diskutil mountDisk /dev/disk3 returns a Volume(s) mounted successfully message, but the drive does not show up in the Finder. My guesstimation is that it has something to do with the encryption?
Mounting Data HD from Disk Utility works fine, but cannot be scripted.
I've also tried hdiutil attach /dev/disk3 and it works, but with one flaw. A GUI authentication box (from Authopen) comes up. Twice. It requires me to enter my password. If I enter it, it works. But again, it can't be scripted. And no way of adding password to Keychain or anything.
So, my question is: how do I mount my encrypted /dev/disk3 to an accessible state? Considering I don't need to input password when mounting from the Disk Utility, it shouldn't be impossible?
Very grateful for answers! Best,
/ Jonathan