Best way to clone a J4012 running Jetpack 6.1?

Using backup-restore.sh on a Smaller Drive is not recommended.
Manually edit tools/backup_restore/nvpartitionmap.txt with smaller sizes.
Recreate GPT image using tools/kernel_flash/gen_gpt_secondary.py
Replace the gpt_backup.img in the BSP folder.
Use:

sudo ./tools/backup_restore/restore_backup.sh -d /dev/nvme1n1 -b <path-to-backup>

But expect problems unless you deeply understand partition alignment and bootloader placement.

2 Likes