- doc
- persistent storage
- Recovering data from the Persistent Storage when Tails doesn't start
If your Tails becomes broken, for example, if it no longer starts, follow these instructions to recover data from your Persistent Storage.
If instead, your Tails USB stick does start but the Persistent Storage fails to unlock, refer to our instructions on recovering data from the Persistent Storage when it has file system errors.
We recommend you always keep a current backup of your Persistent Storage. To learn how to create a backup of your Persistent Storage, see our instructions on how to back up your Persistent Storage to another Tails USB stick.
We are presenting here 3 recovery techniques that work in different cases. We recommend that you try the 3 techniques one after the other.
-
Doing a manual upgrade of your broken Tails might allow you to start your USB stick again and use your Persistent Storage like before.
Unlocking from another Tails and copying using
rsync
If doing a manual upgrade doesn't work, you might be able to unlock your Persistent Storage from another Tails USB stick and copy its content using
rsync
on the command line.Recovering from a partition image using forensics tools
If unlocking your Persistent Storage from another Tails USB stick fails, you might be able to recover some or most of your data from a partition image using advanced forensics tools.
Doing a manual upgrade
Doing a manual upgrade of your broken Tails might allow you to start your USB stick again and use your Persistent Storage like before.
Refer to our instructions on how to do a manual upgrade, either:
Unlocking from another Tails and copying using rsync
If doing a manual upgrade doesn't work, you might be able to unlock your
Persistent Storage from another Tails USB stick and copy its content using
rsync
on the command line.
Install Tails on a new USB stick onto which you want to recover your Persistent Storage. Make sure that this new USB stick is at least as large as the USB stick that has your broken Tails on it.
When starting Tails, set up an administration password.
Close the Persistent Storage settings after creation, when the list of features is displayed.
The process described below overwrites the contents and configuration of the new Persistent Storage. So, it does not matter which features you turn on after creating the Persistent Storage.
Make sure that all applications are closed before continuing with these instructions. Otherwise, the Persistent Storage might not be properly recovered from your broken Tails.
Choose Applications ▸ Accessories ▸ Files to open the Files browser.
Inserisci la chiavetta USB che contiene il tuo Tails rotto.
If the Persistent Storage of your broken Tails is recognized, a new encrypted volume appears in the sidebar of the Files browser. Click on it and enter the passphrase of your broken Tails to unlock the volume.
The Persistent Storage of your broken Tails shows up as TailsData.
If no encrypted volume appears, try recovering from a partition image using forensics tools.
Choose
to open a terminal with administration rights.Execute the following command to recover the Persistent Storage of your broken Tails to your new Tails:
rsync -PaSHAXv --del /media/amnesia/TailsData/ /live/persistence/TailsData_unlocked
When the command finishes, it displays a summary of the data that was copied. For example:
sent 32.32M bytes received 1.69K bytes 21.55M bytes/sec total size is 32.30M speedup is 1.00
You can now eject the TailsData volume in the Files browser and unplug the USB stick that has your broken Tails on it.
You can also explore the content of the Persistent Storage on your broken Tails from the Files browser. To do so, execute the following command from the Root Terminal:
nautilus
Recovering from a partition image using forensics tools
If unlocking your Persistent Storage from another Tails USB stick fails, you might be able to recover some or most of your data from a partition image using advanced forensics tools.
We are not providing step-by-step instructions, but you can adapt our instructions on recovering data from the Persistent Storage when it has file system errors:
Start on your new Tails and save a partition image of the Persistent Storage of your broken Tails to an external hard disk.
Try the technique using the Disks utility first, then the technique using
ddrescue
if needed.After you create the partition image, try to recover your data.
Try the technique to copy the partition image to a new USB stick first, then the technique using Autopsy.