Skip to content

Latest commit

 

History

History
38 lines (33 loc) · 1.94 KB

Clone_TFcard_NVME.md

File metadata and controls

38 lines (33 loc) · 1.94 KB

Cloning TFcard to NVME with all settings / installed apps

While system is running on SBC, identify installed nvme

$ sudo fdisk -l | grep "nvme0n1"
Disk /dev/nvme0n1: 1.86 TiB, 2048408248320 bytes, 4000797360 sectors

Download and install the arm64 version of balenaEtcher

wget https://github.com/Itai-Nelken/BalenaEtcher-arm/releases/download/v1.7.9/balena-etcher-electron_1.7.9+5945ab1f_arm64.deb
sudo dpkg -i ./balena-etcher-electron_1.7.9+5945ab1f_arm64.deb #ignore errors at installation

Burning OS

This method is equivalent to cloning the system in the TF card to the NVMe SSD

  1. First click Clone drive
  2. Then select the device name of the TF card /dev/mmcblk1
  3. Then click Select target
  4. Then click Show 2 hidden to open more options for storage devices
  5. Then select the device name of the NVMe SSD /dev/nvme0n1, and click Select
  6. Then click Flash

Resizing NVME to full space

We need to expand the capacity of the rootfs partition in the NVMe SSD

  1. Install sudo apt-get install -y gparted
  2. Then select NVMe SSD (top right corner drop-down list)
  3. Then select the /dev/nvme0n1p2 partition, click the right button again, and then select Resize/Move
  4. Then drag the capacity to the maximum at the position
  5. Free space following (MiB) will be 0
  6. Then click Apply (green √)

Update bootloader

  1. Run sudo orangepi-config (or sudo armbian-install if you're using armbian)
  2. Select boot options, then select: Install/Update the bootloader on SPI Flash (this will be Install/Update the bootloader on MTD Flash if using armbian)

It may take 4 to 5 minutes to finish installing the bootloader. Once this is complete, you can remove the SD card and the device will now be able to boot directly from NVMe (SD card is no longer needed -- this is true even if you decide to re-image your NVMe SSD)

Cleaning up

Instead of installing many dependencies for balena just remove it sudo apt purge balena-etcher-electron