Clone Jetson Orin Nx NVMe using backup partitions and restore to another Orin Nx

Hi,

This is never required on 36.3…
It’s only a workaround in older BSP versions when we don’t support selecting the device to backup.

What you should be doing is, after deleting all your custom changes:

sudo ./tools/backup_restore/l4t_backup_restore.sh -e nvme0n1 -b jetson-orin-nano-devkit
sudo ./tools/backup_restore/l4t_backup_restore.sh -e nvme0n1 -r jetson-orin-nano-devkit

Please also add this patch in Linux_for_Tegra/tools/backup_restore/nvbackup_partitions.sh:

isext4() {
	if [ "$#" -ne 1 ]; then
		print_message "isext4 function need 1 parameter that is the name of the storage device"
		return 1;
	fi
	local result
	- result="$( blkid "/dev/${1}" | awk '{ print $3 }' | sed -n 's|TYPE="\(.*\)"|\1|p' )"
	+ result="$( blkid -o value -s TYPE "/dev/${1}" )"
	if [ "${result}" = "ext4" ]; then
		echo "true"
	else
		echo "false"
	fi
}