¿Es posible verificar si un determinado volumen de Time Machine (por ejemplo, devuelto por tmutil machinedirectory
) tiene activada la encriptación? Esto es para cumplir con la normativa, por lo que necesita ser totalmente scriptable.
Respuesta
¿Demasiados anuncios?
CousinCocaine
Puntos
3615
Si conoce el UUID antes de montar el disco puede utilizar:
diskutil coreStorage list XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
El resultado es el siguiente.
Logical Volume Family XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
----------------------------------------------------------
Encryption Status: Unlocked
Encryption Type: AES-XTS
Conversion Status: Complete
Conversion Direction: -none-
Has Encrypted Extents: Yes
Fully Secure: Yes
Passphrase Required: Yes
Si conoce el punto de montaje del disco, puede obtener el UUID mediante el siguiente comando.
diskutil info /MOUNTPOINT | grep UUID | awk '{print $3}'
Y si no conoces el punto de montaje siempre puedes ejecutar
diskutil coreStorage list
Un MacMini con dos unidades encriptadas (Macintosh SSD & Backup Mini) dará el siguiente resultado.
CoreStorage logical volume groups (2 found)
|
+-- Logical Volume Group XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
| =========================================================
| Name: Macintosh SSD
| Status: Online
| Size: 250140434432 B (250.1 GB)
| Free Space: 16777216 B (16.8 MB)
| |
| +-< Physical Volume XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
| | ----------------------------------------------------
| | Index: 0
| | Disk: disk0s2
| | Status: Online
| | Size: 250140434432 B (250.1 GB)
| |
| +-> Logical Volume Family XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
| ----------------------------------------------------------
| Encryption Status: Unlocked
| Encryption Type: AES-XTS
| Conversion Status: Complete
| Conversion Direction: -none-
| Has Encrypted Extents: Yes
| Fully Secure: Yes
| Passphrase Required: Yes
| |
| +-> Logical Volume XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
| ---------------------------------------------------
| Disk: disk2
| Status: Online
| Size (Total): 249804886016 B (249.8 GB)
| Size (Converted): -none-
| Revertible: Yes (unlock and decryption required)
| LV Name: Macintosh SSD
| Volume Name: Macintosh SSD
| Content Hint: Apple_HFS
|
+-- Logical Volume Group XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
=========================================================
Name: Backup Mini
Status: Online
Size: 999860912128 B (999.9 GB)
Free Space: 0 B (0 B)
|
+-< Physical Volume XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
| ----------------------------------------------------
| Index: 0
| Disk: disk3s2
| Status: Online
| Size: 999860912128 B (999.9 GB)
|
+-> Logical Volume Family XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
----------------------------------------------------------
Encryption Status: Unlocked
Encryption Type: AES-XTS
Conversion Status: Complete
Conversion Direction: -none-
Has Encrypted Extents: Yes
Fully Secure: Yes
Passphrase Required: Yes
|
+-> Logical Volume XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
---------------------------------------------------
Disk: disk5
Status: Online
Size (Total): 999542136832 B (999.5 GB)
Size (Converted): -none-
Revertible: No
LV Name: Backup Mini
Volume Name: Backup Mini
Content Hint: Apple_HFS