Thank you: lnkd and ShinobiRen for the original guide
Info: This guide was contributed by a member of the HexOS community. Your setup may differ slightly — if a step doesn't match what you see, ask in the #Docs channel on Discord.
This guide will help you
specifically if you do not want to wipe your storage pools as part of the process.
Best practice would be a fresh install of HexOS with new storage pools and adding the data to these new pools from backup. However, if you have:
this guide will show you how to keep your existing storage pools and import them to a new HexOS install.
The guide does not assume significant prior knowledge of the software involved, and all steps are described thoroughly. If at any point you do not feel confident, please pause and ask for help - this is a high risk process and a mistake could make your data unrecoverable.
By exporting the TrueNAS configuration you are backing up things like:
Danger: You must have backups of your data. Without adequate backups you could permanently lose data at several points during this process.
Best practice is to:
In this section we will complete the following tasks:
You will need
If you are starting in HexOS, go to https://deck.hexos.com/ > Settings > TrueNAS

This will open a new window in your browser.
You may need to click through a security warning about a self-signed SSL certificate. For example, in Firefox I clicked Advanced, and Accept the risk and continue.
Next you will see the TrueNAS login.

The username is truenas_admin and the password is the one chosen when you installed HexOS.
Note down your password
The TrueNAS password for this server will be needed again in the future, when the new machine is set up. Make sure to note it down.
If you are not yet using HexOS, enter TrueNAS by going to the login screen at your server IP address. For example https://192.168.1.142/ui/signin.
Your username and password were set during TrueNAS installation.

Note down your password
The TrueNAS password for this server will be needed again in the future, when the new machine is set up. Make sure to note it down.
If 2FA is enabled you will not be able to claim your server when installing HexOS. Check that 2FA is disabled.
Go to System > Advanced Settings then scroll down to Global Two Factor Authentication and check that 2FA is showing as disabled.
You may need to scroll down to see the System menu item

If it is showing as enabled, click Configure, uncheck the Enable Two Factor Authentication Globally box and click Save
Go to System > Advanced Settings
You may need to scroll down to see the System menu item

Then go to Manage configuration > Download File. This dropdown is on the top right of the screen.

Leave the Password Secret Seed box checked. Click Save.

Check that the file has downloaded. Make a note of the TrueNAS version number included in the file name (in this case 25.10.4) - you will need this later.
Back up this file to a secure local place, such as a USB drive.

If you have data encrypted with a key in your storage pool, the keys must be downloaded. If this step is skipped you will lose your data.
To see if you have encrypted data go to Datasets from the main menu in TrueNAS.
In the Encryption column, datasets that are encrypted are marked as Locked or Unlocked. The rest are marked Unencrypted.

If you have no encrypted data you can skip ahead.
If you have encrypted data, next find out if it is key encrypted. Click on the entry then scroll down to Encryption.
If there is an Export Key button, then the data is encrypted with a key.
You need this key to be able to access the data again later: without the key the data is unreadable.
To export your key, click the Export Key button. You will be reminded that each encrypted dataset has its own key, and you must download each key separately.

When you have downloaded the key, check that it looks similar to the example key below:

Then back up the key to a safe local place, such as a USB drive.

If there is no button to export the key, then the data is encrypted with passphrase only. In this case you don't need to download anything, as long as you know the passphrase you can access the data.
To confirm this click Edit (you may need to unlock first) and check that the Encryption Type* dropdown is showing Passphrase. Encrypted folders set up in HexOS always use a passphrase.
Help: If you have any doubts or questions, please contact HexOS support: this step is critical to get right.
To prevent data loss, we want to make sure we know which drives are pool drives and which drives are boot drives in the machine. Then we will unplug the pool drives to make sure they don't get overwritten.
First, in TrueNAS go to Storage > Disks. The disks button is top right.

You will see a list of all the drives in the machine.
The name of the boot drive is boot-pool. The storage pool drives, which have our data on, will have the name given when the storage pool was created, in this case “HDDs".

Click on each entry and note down the drive Model Number, Disk Size and Pool.

I have used model number because this is shown during the HexOS install process. However, if your drives all have the same Model Number then note down the Serial Numbers too.

Final Checks
You should now have a:
In this section we will:
You will need
First, shut down the server. From TrueNAS this can be done by clicking the power button icon and Shut Down

then check Confirm and click Shut Down

When the browser starts to show a connection error, the server has shut down.

At this stage we will unplug all the drives that make up the storage pools. It is essential to do this, to prevent accidental data loss during HexOS install.
These drives can be identified using the model numbers or serial numbers noted down earlier. Remove the data and power cables from all the storage pool drives.

Make any other planned hardware changes to your system now also.
In this case, I will be using the same boot drive, so this remains plugged in ready for HexOS to be installed. The serial number matches what I noted down as the boot-pool drive in TrueNAS.

Final Checks
In this section we will:
You will need
Follow the HexOS installation guide here.
At the end of the installation process, come back to this guide.
Do not continue on to complete the HexOS setup.
Two important notes

At the end of the install process, you will see the following Console setup screen. Do not continue following the docs to complete HexOS setup.
This screen shows the IP address we will use in the next step.

First, log into TrueNAS by going to the IP address shown on the Console setup screen.
Enter the username truenas_admin and the temporary password you chose. Click Log in.

The next step is to update TrueNAS to the same version as our previous instance.
Note: Usually, you should not manually update TrueNAS this way: TrueNAS updates should be handled by HexOS. In this specific situation, TrueNAS needs to be updated in order to ensure the config file uploads correctly.
You should have the version number in the notes from earlier steps, it can also be found in the config file name. In this case the version number is 25.10.4

After logging in, TrueNAS should open on the dashboard.
Click the Updates Available button.

In this case there is only one update to make our TrueNAS version numbers match. If the options available do not allow you to update to the correct version, please contact support.
Click Install Update.

Download the config and settings and password as suggested by clicking Save Configuration.

Then click Install.

The system will run the update and reboot.

When the reboot has finished and the Console Setup screen is showing again, shut down the machine.
Plug all the remaining drives back in and boot up.
Final Checks
In this section we will:
You will need
Requirement: Make sure you have updated TrueNAS to the correct version before proceeding.
Go to Storage > Import Pool. Import pool is on the top right of the screen.

Find your pool in the list, in this instance there is only one pool. Click Import.

The pool will then import, this may take some time.

Once the pool is imported the Storage Dashboard will be populated.

Go into System > Advanced Settings

Then click Manage Configuration > Upload File. Manage configuration is found top right of the screen.

You will be reminded that your temporary password will now be replaced by the original password.

Navigate to and select your config file

Click Upload

The import will run and the system will reboot.

While the system is rebooting you will see the error “Connecting to TrueNAS”.

When the system has rebooted you will see the login screen.

When you log back in, you will need to use the original password which was noted at the start of the process. The temporary password is no longer used.
If you had encrypted data with keys (as opposed to passphrases)
Go to Datasets and click the encrypted dataset

Scroll down to Encryption and click Unlock

Click Choose File

Choose your keyfile from backup

Click Save

Click Continue

When the process has finished you can click Close

Additionally, as the key encrypted dataset was created in TrueNAS it needs an SMB share set up to be accessible in HexOS (if it doesn't already have one)
Go to Shares and click the View All button to see if the encrypted dataset has a share set up.

In this example the dataset Top-Secret-With-Key is not on the list.

To set up the share click Add which is towards the top right

Click the arrow to find the dataset

Click the dataset in the list

Then scroll down to the bottom of the dialog to click the Save button

You should now see your new share on the list

Please note that, as of writing, this folder needs to be locked and unlocked via the TrueNAS interface.
When unlocked, the data will be accessible via HexOS. If the folder is locked, however, it cannot be unlocked within HexOS: only passphrase encryption is supported in the HexOS dashboard.
Go to the Apps screen. If the apps show Running in the Status column then this step can be skipped.
If they are not running or not visible you need to choose the correct pool for apps.
If you are unsure which pool is the apps pool, it will be the first one you set up when the system was first built. If you set up multiple pools at once it will be the first pool that used SSDs.
Go to Apps > Configuration > Unset Pool

Click Unset

The process will run

You will see No applications installed

Restart TrueNAS by clicking the power icon > Restart

After rebooting and logging in, go to Apps > Configuration > Choose Pool

Choose your pool from the dropdown and click Choose. If you have multiple pools your apps pool is likely to be the first one you created. If you created multiple pools it will be the first one using SSDs (as opposed to HDDs)

Your apps should show back up. Start them by clicking the triangular play symbol under Controls

After apps have started you should see Running in green in the Status column.

Checks
In this section we will claim the server in the HexOS deck, making sure to skip the create pool step.
You will need
In most situations you will need to unclaim your old server in order to claim a new one.
To do this, log in to deck.hexos.com with the email and password used when you purchased your HexOS license.

When you reach the deck, you will see This server is not available.
If you have multiple servers make sure that the server name, at the top of the screen, is the server you are currently working on.
Click Unclaim Server

Click Unclaim this server from HexOS

Follow the guide to claim the new server - noting carefully the differences described below, your data is at risk.
DATA AT RISK
The following steps are ESSENTIAL to avoid data loss. Notice that your storage drives are shown to have data on: this is your pool data. Click Continue.

Next, when you reach the Storage pools screen you MUST click Skip.

Check the box and click Confirm

Then finish any remaining steps in the guide and your server should now be as it was before.
Final Checks


Contribute: to help to improve HexOS documentation join the #Docs channel on Discord today! Send feedback, suggestions or contribute a guide.