Error in nvbackup_partitions.sh script

Dear NVidia

While taking a backup of our Orin NX devices, we saw that the backup of the rootfs partition was not anymore a tar archive but an image file. Checking further, we found an error in the nvbackup_partitions.sh script. In the function is_ext4, the following line needs to be changed:

result=“$( blkid “/dev/${1}” | awk ‘{ print $3 }’ | sed -n 's|TYPE=”(.*)“|\1|p’ )”

change to

result=“$( blkid “/dev/${1}” | awk ‘{ print $4 }’ | sed -n 's|TYPE=”(.*)“|\1|p’ )”

The first line does not anymore give the type of the partition.
Please check this.
Thank you.

Kind regards

YES, this is a bug because the output format of blkid somehow changes on rel-36, and we should never rely on a fixed number for reading that info.
Theoretically, the script still works fine but runs extremely slow because it uses dd instead of tar.

Do this inetead:

result=“$( blkid -o value -s TYPE “/dev/${1}” )”

This fix will be included in the next JetPack 6 release.

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