Getting Your Data Off
Your workload's volumes live on the device's main partition. Before you reflash the device, copy off anything you need. If the main partition is encrypted, you read it with the disk recovery key that Admiral holds for the device.
You can do this with the device powered off, with the disk in another machine, and without the Admiral agent. You cannot do it after the device has been removed from your organisation, because removing it deletes the escrowed key. See Removing the device.
1. Reveal the Recovery Key
The recovery key is only shown on demand and every reveal is recorded in the audit log. You need the Recover devices capability on the device. The built-in Administrator and Owner profiles have it. Personal API tokens, CLI sign-ins and MCP tokens are refused.
- Open the device and select Security.
- In the Disk encryption and recovery key card, click Reveal Recovery Key.
- Read the warning and click Reveal key.
- Click Copy, or read the key from the card. Click Hide when you are done.

The key is a string like ADMRL- followed by groups of four characters separated by dashes. Devices set up on older releases have a shorter key in the form ADMRL-XXXX-XXXX-XXXX. Both are ordinary LUKS passphrases.
If the card says No escrowed recovery key found for this device, or No recovery key currently registered for this device, Admiral has no key for it. Either the disk is not encrypted (see When the disk is not encrypted) or the key was never uploaded. The same call is available as GET /v1/devices/{deviceId}/recovery-key. See Recovery Keys.
The recovery key gives full access to the device's drive. Do not paste it into chat or tickets, and do not put it on a command line, where it lands in your shell history. The steps below enter it at a prompt.
2. Connect the Disk to a Linux Laptop
Use any Linux machine with cryptsetup and btrfs support. Either:
- Power the device off, remove its NVMe, SSD or SD card, and attach it with a USB enclosure or adapter; or
- Boot the device itself from a Linux live USB drive.
Check which block device is the disk before you do anything else. In the commands below, /dev/sdX is the whole disk and /dev/sdXN is a partition on it. On NVMe disks the names look like /dev/nvme0n1 and /dev/nvme0n1p5.
3. Find the Main Partition
Admiral lays out the disk in a fixed order. The main partition is always last and takes the rest of the disk.
| Order | Partition | Notes |
|---|---|---|
| 1 | ESP | UEFI boards only. |
| 2 | BOOT-A | System slot. |
| 3 | BOOT-B | System slot. |
| 4 | ADMRL-DATA | Device identity and settings. |
| 5, last | ADMRL-MAIN | Workloads, images, volumes and secrets. Encrypted when the device had a usable TPM and Secure Boot. |
Boards without an ESP have one partition fewer. List the partitions:
lsblk -o NAME,SIZE,FSTYPE,PARTLABEL,LABEL /dev/sdX
The main partition is the last and largest one. If its FSTYPE is crypto_LUKS it is encrypted. Confirm:
sudo cryptsetup isLuks /dev/sdXN && echo "LUKS container"
4. Unlock and Mount It
The container is LUKS2 and the filesystem inside is btrfs. Open it read-only. cryptsetup prompts for the passphrase, so paste the recovery key exactly as shown, in capitals and with the dashes.
sudo cryptsetup open --type luks2 --readonly /dev/sdXN admiral-main
Mount the filesystem read-only:
sudo mkdir -p /mnt/admiral
sudo mount -o ro /dev/mapper/admiral-main /mnt/admiral
ls /mnt/admiral
Your data is under volumes/. Each Custom Volume is a directory named by a hash, and a file next to it called <hash>.name holds the volume name you gave it:
cat /mnt/admiral/volumes/*.name
sudo cp -a /mnt/admiral/volumes/<hash> /path/to/backup/
Use cp -a or rsync -a to keep ownership and permissions. Snapshots of your volumes are under backups/.
When you are done:
sudo umount /mnt/admiral
sudo cryptsetup close admiral-main
Do not mount the partition read-write, and do not run a repair on it. You are only copying data out. Leave the device's identity keys (keys/) alone: you do not need them to read your data.
When the Disk Is Not Encrypted
Admiral only encrypts the main partition when the device has a usable TPM and UEFI Secure Boot is on. See When Is the Disk Encrypted?. On ARM boards and on x86 without a TPM, lsblk shows btrfs for the main partition. There is no key to reveal. Skip cryptsetup and mount it directly:
sudo mkdir -p /mnt/admiral
sudo mount -o ro /dev/sdXN /mnt/admiral
If the Key Does Not Open the Disk
- Check the format. Enter it in capitals, with the
ADMRL-prefix and every dash, and no spaces. - You may have the wrong partition. Only the last partition holds the main volume.
cryptsetup isLuksfails on the others. - The key may have been rotated. If someone rotated the recovery key after you copied it, reveal the current one.
- The disk may already have been reflashed. A reflash writes a new disk, and the old key no longer applies.