È possibile verificare se un determinato volume di Time Machine (ad esempio, restituito da tmutil machinedirectory
) ha attivato la crittografia? Questo è per la conformità alle normative, quindi deve essere completamente programmabile.
Se conosci l'UUID prima di montare il disco, puoi utilizzare:
diskutil coreStorage list XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
Questo darà il seguente output.
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
Se conosci il mountpoint del disco, puoi ottenere l'UUID con il seguente comando.
diskutil info /MOUNTPOINT | grep UUID | awk '{print $3}'
E se non conosci il mountpoint puoi sempre eseguire
diskutil coreStorage list
Un MacMini con due unità crittografate (Macintosh SSD e Mini di backup) fornirà il seguente output.
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
Leggi altre domande sui tag command-line encryption time-machine