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
This method is equivalent to cloning the system in the TF card to the NVMe SSD
- First click Clone drive
- Then select the device name of the TF card
/dev/mmcblk1
- Then click Select target
- Then click Show 2 hidden to open more options for storage devices
- Then select the device name of the NVMe SSD
/dev/nvme0n1
, and click Select - Then click Flash
We need to expand the capacity of the rootfs partition in the NVMe SSD
- Install
sudo apt-get install -y gparted
- Then select NVMe SSD (top right corner drop-down list)
- Then select the
/dev/nvme0n1p2
partition, click the right button again, and then select Resize/Move - Then drag the capacity to the maximum at the position
Free space following (MiB)
will be0
- Then click Apply (green √)
- Run
sudo orangepi-config
(orsudo armbian-install
if you're using armbian) - Select boot options, then select:
Install/Update the bootloader on SPI Flash
(this will beInstall/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)
Instead of installing many dependencies for balena
just remove it sudo apt purge balena-etcher-electron