Cloning Jetpack Image from 1TB NVMe Device

I am working with a custom carrier board with an NVIDIA Orin NX module and 1 TB NVMe SSD. I have successfully installed JetPack 6 (r36.3.0) and the SDK components on NVMe using SDK Manager. Now I am trying to clone the used sections of my 1 TB NVMe SSD to my host PC running Ubuntu 20.04.

I followed the cloning process outlined in this forum post(Clone Jetson Orin Nx NVMe using backup partitions and restore to another Orin Nx) I used the following command to clone my Orin NX:

“sudo ./tools/backup_restore/l4t_backup_restore.sh -b my-custom-carrier-board-name”.

While this command successfully initiated the cloning process, I had to cancel it due to insufficient space on my host PC. The command attempted to copy the entire 1 TB NVMe device, including both used(23GB) and unused storage.

Could you advise on how to clone only the used sections of the 1 TB SSD to my host PC, or suggest an alternative approach?

Thank you for your assistance.

Hi baltumucin34,

Is your custom board similar as the devkit so that you use SDK Manager to flash your board?

Are you using official BSP package but with your custom board config?

Back/Restore script will clone each partitions on your NVMe SSD (please also specify -e nvme0n1).
If you just want to clone APP partition, you can refer to Flashing Support — NVIDIA Jetson Linux Developer Guide 1 documentation for details.

I am currently using a Connectech carrier board with the official BSP package. I have successfully flashed the system and installed essential packages, including TensorRT and cuDNN. Everything is functioning as expected.

I have been using the command sudo ./tools/backup_restore/l4t_backup_restore.sh -e nvme0n1 -b my-custom-carrier-board-name, as described in the /Linux_for_Tegra/tools/backup_restore/README_backup_restore.txt Sorry for the typo about the previous command line.

The documentation you provided explains how to clone the APP partition from eMMC storage using “mmcblk0p1”. However, I am looking to clone the APP partition from a 1TB NVMe SSD.

Is it possible to clone the APP partition from a 1TB NVMe SSD in the same way as with eMMC storage?

To clone NVMe SSD storage, you can modify the nvbackup_paritions.sh file and replace line 169 with

MAINDEVICE_NAME=“nvme0n1”

There is also another modification that needs to be made that can be found in the ticket below.

Then rerun the command you have been using to backup the device. It is important to note that this command clones all partitions on the device, even unused/empty space, so you will either need 1 TB of storage on your local device or you will need to write the backup to store on an external storage device.

Also refer to this ticket I created previously that fixed this issue for me: Clone Jetson Orin Nx NVMe using backup partitions and restore to another Orin Nx - #3 by DaveYYY

Another option is to use dd to clone the device, but in my experience I have had more success with the backup/restore scripts.

1 Like

Thanks anett1 to share the info about cloning NVMe SSD.

1 Like

Hi Anett,

Thank you for your help.
Your advice worked perfectly, and I was able to back up and restore the device successfully.

I wanted to ask if there are any other methods for backing up and restoring processes more quickly. The current process for backing up and restoring a 1TB NVMe SSD takes a long time.

1 Like

Hi baltumucin34,

I have looked into this issue a little bit and do not currently know of a way to only clone used storage on the device. I’d suggest looking into physical M.2 Duplicators, which are cloning tools that offer 20Gbps data transfer rates, but this would require the removal of the NVMe from the Orin Nx, which is not ideal.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.