Another prime example of why one should never simply run random commands found on the internet as root without questioning them and their author's authority on the subject.
xartutil is a utility to remove session seeds from the T2 chip that are used for disk decryption/encryption. It clearly says so if you run
xartutil --help. Note the numerous references to disks:
Code:
MacBook-Air:~ root# xartutil --help
Usage: xartutil [--help] [--erase-all | --erase-disk $BSDNAME] [--list]
xART recovery utility
OPTIONS:
--list List all the sessions xART is aware of
--erase-all Erase all xART seeds
--erase-disk <BSDName> Erase session seeds for given disk name
--erase <UUID> (testing only) Erase a session referenced by a UUID
EXAMPLES:
Remove session seeds of disk1
xartutil --erase-disk disk1
Remove all entries from the directory
xartutil --erase-all
(testing only) Remove session seeds for given session UUID
xartutil --erase 1852831A-12AD-3298-929E-3F222FB09E54
MacBook-Air:~ root#
In addition, the
diskutil manpage contains one reference to XART being Apple's hardware security mechanism. These two pieces of information combined with the knowledge of how disk encryption on T2-enabled Macs actually works (on T2-enabled Macs, all disks are always encrypted by default with keys stored in the secure enclave portion of the T2 chip; enabling FileVault2 does not encrypt the disk itself but merely the keys required for decryption, which is why enabling/disabling full disk encryption on T2-enabled Macs is instantaneous) gives you the answer you could have probably used about a month ago:
xartutil --erase-all will erase all disk decryption keys from your T2 chip for good, rendering those disks effectively useless because they can no longer be decrypted. It's the digital equivalent of locking all your belongings in the world's most secure unpickable safe, then throwing the only key into hot lava and the magma-coated melted remains into the Mariana trench.
I realize it's too late now but I just wanted to give you an idea of what exactly happened to your data.