# \[JP5.1.2\] L4T\_backup\_restore bootorder change question

**URL:** <https://forums.developer.nvidia.com/t/jp5-1-2-l4t-backup-restore-bootorder-change-question/371656>\
**Category:** Jetson Orin NX\
**Tags:** boot, pxe\
**Created:** [May 29, 2026, 3:06am UTC](https://forums.developer.nvidia.com/t/jp5-1-2-l4t-backup-restore-bootorder-change-question/371656 "2026-05-29T03:06:46Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![jack\_lan](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@jack\_lan](https://forums.developer.nvidia.com/u/jack_lan)\
**Post date:** [May 29, 2026, 3:06am UTC](https://forums.developer.nvidia.com/t/jp5-1-2-l4t-backup-restore-bootorder-change-question/371656/1 "2026-05-29T03:06:46Z")

</div>

Hi

Our platform encountered the same problem as the one described at the following URL during backup and restore.

Besides modifying the bootorder using efibootmgr, is there any way to avoid this problem?

Is there any method other than directly modifying the UEFI to disable PXE?

> [@L4t\_backup\_restore restore backup long boot up times](https://forums.developer.nvidia.com/t/l4t-backup-restore-restore-backup-long-boot-up-times/328137/7):
>
> Right, that is no problem. I can apply the correct order using efibootmgr on every new device. Thanks for the information. I will mark my earlier post as the solution. Thank you for your help. Thank you! Tom.

 ![IMG20260529104412](https://global.discourse-cdn.com/nvidia/original/4X/d/6/9/d69d6563755f44b0c4e02ed8ce102d3b0f8c6313.jpeg)

Thanks

---

<div class="post-metadata">

**Author:** ![lhoang](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/lhoang/32/48225_2.png) [@lhoang](https://forums.developer.nvidia.com/u/lhoang)\
**Post date:** [June 20, 2026, 6:43am UTC](https://forums.developer.nvidia.com/t/jp5-1-2-l4t-backup-restore-bootorder-change-question/371656/4 "2026-06-20T06:43:46Z")

</div>

[l4t\_clear\_uefi\_vars.txt](https://forums.developer.nvidia.com/uploads/short-url/lzBUtzvrgDusZmrJg1H0V4fJfhf.txt) (10.9 KB)

sudo python3 clear\_uefi\_vars.py --in-place ./tools/backup\_restore/QSPI0.img

We can test erasing the uefi variable in the qspi images.

Please use the content the above text file as a python script

---

<div class="post-metadata">

**Author:** ![chris\_luo](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@chris\_luo](https://forums.developer.nvidia.com/u/chris_luo)\
**Post date:** [June 26, 2026, 10:01am UTC](https://forums.developer.nvidia.com/t/jp5-1-2-l4t-backup-restore-bootorder-change-question/371656/5 "2026-06-26T10:01:36Z")

</div>

Hi Ihoang,

Our end customer is experiencing the same issue during production when using the NVIDIA Backup & Restore tool.

Following the recent discussion, I attempted to use the Python script you shared for the topic owner. However, after applying this script and restoring our client’s image, all the files previously stored in the folder were wiped.

Furthermore, the script failed to address the original issue regarding the bootloader change. More importantly, since this script caused the deletion of all files in the directory, we are now unable to verify whether it is a viable solution for the bootloader issue. Could you please review this or provide further guidance on how to proceed?

---

<div class="post-metadata">

**Author:** ![lhoang](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/lhoang/32/48225_2.png) [@lhoang](https://forums.developer.nvidia.com/u/lhoang)\
**Post date:** [June 26, 2026, 3:15pm UTC](https://forums.developer.nvidia.com/t/jp5-1-2-l4t-backup-restore-bootorder-change-question/371656/6 "2026-06-26T15:15:59Z")

</div>

Hi

Can I see your log of running the script? I dont think there is any code that remove files in the script because it is only designed to modify one file.

---

<div class="post-metadata">

**Author:** ![chris\_luo](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@chris\_luo](https://forums.developer.nvidia.com/u/chris_luo)\
**Post date:** [June 29, 2026, 3:00am UTC](https://forums.developer.nvidia.com/t/jp5-1-2-l4t-backup-restore-bootorder-change-question/371656/7 "2026-06-29T03:00:37Z")

</div>

Hi Ihoang,

Thanks for the update.

May I know which part of the log you need? The dmesg after applying the Python script? Or the script running in the terminal?

1. This is the screenshot before I applied the Python script to restore the system, where I will be able to see the customer file from their image.

2. Below is the output log from my host after applying the script.

3. Then, after running the script, I tried to restore the image, but the result is that I cannot see those files from the image again.

4. This is the script you shared, we’ve only modified the file name and format.  
[clear\_uefi\_vars.py](https://aetina-my.sharepoint.com/:u:/p/chris_luo/IQCYXXi03V6UT7ZZ4VdRsZj9AVifMRvNNZYS2Ahlcop-G4U?e=IgNvDh)

If you need something else, please let me know. Tks.

---

<div class="post-metadata">

**Author:** ![lhoang](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/lhoang/32/48225_2.png) [@lhoang](https://forums.developer.nvidia.com/u/lhoang)\
**Post date:** [June 29, 2026, 3:23am UTC](https://forums.developer.nvidia.com/t/jp5-1-2-l4t-backup-restore-bootorder-change-question/371656/8 "2026-06-29T03:23:00Z")

</div>

Hi I am wondering how many storages are on the Jetson Orin NX? The device might have booted into another storage from the originally intended backup storage. Also i am wondering what command do you use to backup?

---

<div class="post-metadata">

**Author:** ![chris\_luo](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@chris\_luo](https://forums.developer.nvidia.com/u/chris_luo)\
**Post date:** [July 6, 2026, 3:27am UTC](https://forums.developer.nvidia.com/t/jp5-1-2-l4t-backup-restore-bootorder-change-question/371656/9 "2026-07-06T03:27:51Z")

</div>

Hi Ihoang

1. Only 1 NVMe storage there. And the partition is the same as the default Jetpack.
2. The Backup command the same as your README “sudo ./tools/backup\_restore/l4t\_backup\_restore.sh -e nvme0n1 -b jetson-orin-nano-devkit”
3. Restore command as well. “sudo ./tools/backup\_restore/l4t\_backup\_restore.sh -e nvme0n1 -r jetson-orin-nano-devkit”

---

<div class="post-metadata">

**Author:** ![chris\_luo](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@chris\_luo](https://forums.developer.nvidia.com/u/chris_luo)\
**Post date:** [August 7, 2026, 3:14am UTC](https://forums.developer.nvidia.com/t/jp5-1-2-l4t-backup-restore-bootorder-change-question/371656/10 "2026-08-07T03:14:22Z")

</div>

Hi,

Is there any update on my case?

---

<div class="post-metadata">

**Author:** ![lhoang](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/lhoang/32/48225_2.png) [@lhoang](https://forums.developer.nvidia.com/u/lhoang)\
**Post date:** [August 7, 2026, 3:27am UTC](https://forums.developer.nvidia.com/t/jp5-1-2-l4t-backup-restore-bootorder-change-question/371656/11 "2026-08-07T03:27:54Z")

</div>

Can you check tools/backup\_restore/images/ for the tar.zst file that is your filesystem to see if it contains what you have modified?

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/system/32/68080_2.png) [@system](https://forums.developer.nvidia.com/u/system)\
**Post date:** [September 23, 2026, 5:08am UTC](https://forums.developer.nvidia.com/t/jp5-1-2-l4t-backup-restore-bootorder-change-question/371656/13 "2026-09-23T05:08:49Z")

</div>

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