Cloning and Expanding a Intel NUC Hard Drive from 1TB to 2TB

I will explain how I upgraded my Intel NUC ( NUC8i5BEH ) from a 1TB SSD to a 2TB M.2 NVMe. This should work with any Intel NUC as long as you meet the assumptions.

Method: Utilising Clonezilla to clone and expand a 1TB SSD DAppnode install onto a 2TB M2. NVMe

Assumptions:

  • You have a INTEL NUC with a spare SSD or M2. NVMe slot.
  • Using DAppNode ISO (though should work with other installations)

Requirements:

  • USB thumb drive to boot Clonezilla

  • New SSD or M.2 NVMe hard drive

If you are unsure of what drive to get. Intel provides list of validated hard drives.
Scroll down till you find your model NUC. The list isn’t all inclusive, I bought a newer 970 Evo plus than the model listed and it worked fine.

Note

You may not want to upgrade your drive yet. You could try pruning the database to free up some space as detailed here.
Another options is to add a secondary drive and move the docker images over. The FAQ details how to do this under the heading " How to mount docker data on a different SSD?"
One more option is to look at LVM.
If you are wanting to move forward then forget these options and continue.

Steps:

  1. Check issues detailed below.

  2. Properly shutdown your DAppnode System and containers.

  3. Install your new hard drive in the Intel NUC. You may want to download the Intel NUC User Guide for detailed instructions. Here is the guide for my model

  4. Install Clonezilla on your USB drive as detailed here

  5. Plug the USB drive into your Intel NUC and boot the system. If CloneZilla doesn’t boot, restart the NUC and press f2 to enter bios. From there you can boot the USB or change the boot priority/order to boot the USB first.

  6. After CloneZilla starts follow the step-by-step guide here.

    Once you get to the “Choose the mode to run the following wizard about advanced parameters:” menu select Expert.

  7. From expert mode follow this step-by-step guide here

> You need to use the -k1 parameter. This will expand your partition after cloning.

  1. Follow both guides until it has completed. In the last step choose to shutdown the system.
  2. Disconnect the Intel NUC and remove the old hard drive. If you are unsure how, follow the instruction in the Intel NUC User Guide.
  3. remove the USB and boot the new system.
  4. All being successful you should now have DAppnode running on a new hard drive.

Optional:

  1. You may want to upgrade DAppnode from command line. After successful upgrade.

sudo wget -O - https://installer.dappnode.io | sudo UPDATE=true bash

Issues:

Docker version too old and didn’t support cgroups v2

After cloning and rebooting onto the new hard drive I had the following issue when starting the DAppnode containers.

“Cannot start service api: OCI runtime create failed: container_linux.go:345: starting container process caused "process_linux.go:281: applying cgroup configuration for process caused "mountpoint for cgroup not found\”

To fix this problem I upgraded Docker to version 20.10 as details here.

I suggest checking your docker version prior to upgrading.

You will need to be utilising command line. So either login from a terminal or via SSH.

From there issue the following command:
docker -v

If it is below 20.10 Upgrade.

1 Like