# UEFI cannot boot from USB drive first

**URL:** <https://forums.developer.nvidia.com/t/uefi-cannot-boot-from-usb-drive-first/330775>\
**Category:** Jetson Orin Nano\
**Tags:** uefi, jetson\
**Created:** [April 18, 2025, 5:21am UTC](https://forums.developer.nvidia.com/t/uefi-cannot-boot-from-usb-drive-first/330775 "2025-04-18T05:21:29Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![sean.pan](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@sean.pan](https://forums.developer.nvidia.com/u/sean.pan)\
**Post date:** [April 18, 2025, 5:21am UTC](https://forums.developer.nvidia.com/t/uefi-cannot-boot-from-usb-drive-first/330775/1 "2025-04-18T05:21:29Z")

</div>

Hi Everyone,  
When I use the following command to burn UEFI, I find that I cannot boot from the USB drive as the first priority.  
`ROOTFS_AB=1 ROOTFS_RETRY_COUNT_MAX=1 ./flash.sh --no-systemimg -c bootloader/generic/cfg/flash_t234_qspi.xml jetson-orin-nano-devkit nvme0n1p1`  
But when I remove `ROOTFS_AB=1 ROOTFS_RETRY_COUNT_MAX=1`, I can boot from the USB drive first.  
So if I want to enable the AB partition and also want to set the image to boot from the USB drive first, how can I do this?

---

<div class="post-metadata">

**Author:** ![DavidDDD](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/davidddd/32/370680_2.png) [@DavidDDD](https://forums.developer.nvidia.com/u/DavidDDD)\
**Post date:** [April 18, 2025, 7:44am UTC](https://forums.developer.nvidia.com/t/uefi-cannot-boot-from-usb-drive-first/330775/3 "2025-04-18T07:44:05Z")

</div>

Hi,

> [@sean.pan](#):
>
> boot from the USB drive

What do you mean about `boot from the USB drive`?

Do you mean use USB drive as a rootfs?

Thanks

---

<div class="post-metadata">

**Author:** ![sean.pan](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@sean.pan](https://forums.developer.nvidia.com/u/sean.pan)\
**Post date:** [April 18, 2025, 7:48am UTC](https://forums.developer.nvidia.com/t/uefi-cannot-boot-from-usb-drive-first/330775/4 "2025-04-18T07:48:56Z")

</div>

Yes, you are right. my USB（/dev/sda） partition table is as follows:

```auto
Number Start (sector) End (sector) Size Code Name
   1 2048 133119 64.0 MiB EF00 esp
   2 133120 59725790 28.4 GiB 0700 APP

```

My SSD（/dev/nvme0n1） partition table looks like this:

```auto
Number Start (sector) End (sector) Size Code Name
   1 2048 133119 64.0 MiB EF00 esp
   2 133120 8521727 4.0 GiB 8300 APP
   3 10094592 18483199 4.0 GiB 8300 APP_b

```

But if I enable` ROOTFS_AB=1 ROOTFS_RETRY_COUNT_MAX=1`, I can not get the USB drive as my first boot device, it will automatic boot from SSD at first.

---

<div class="post-metadata">

**Author:** ![DavidDDD](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/davidddd/32/370680_2.png) [@DavidDDD](https://forums.developer.nvidia.com/u/DavidDDD)\
**Post date:** [April 18, 2025, 7:53am UTC](https://forums.developer.nvidia.com/t/uefi-cannot-boot-from-usb-drive-first/330775/5 "2025-04-18T07:53:15Z")

</div>

Also.  
Some question to confirm:

- Are you using a **Jetson Nano** or **Jetson Orin Nano**?
- What is your JP version?

Seems like you are using UEFI, which not support Jetson Nano

Thanks

---

<div class="post-metadata">

**Author:** ![DavidDDD](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/davidddd/32/370680_2.png) [@DavidDDD](https://forums.developer.nvidia.com/u/DavidDDD)\
**Post date:** [April 18, 2025, 7:55am UTC](https://forums.developer.nvidia.com/t/uefi-cannot-boot-from-usb-drive-first/330775/6 "2025-04-18T07:55:31Z")

</div>

Hi,

> [@sean.pan](#):
>
> But if I enable` ROOTFS_AB=1 ROOTFS_RETRY_COUNT_MAX=1`, I can not get the USB drive as my first boot device, it will automatic boot from SSD at first.

Please refer to doc to override the default order.

> **[DTBO - UEFI Adaptation — NVIDIA Jetson Linux Developer Guide](https://docs.nvidia.com/jetson/archives/r36.4.3/DeveloperGuide/SD/Bootloader/UEFI.html#overriding-the-default-boot-order-during-flashing)**
>
> OS boot is supported from eMMC/SD/UFS/NvME/USB (T234 only). Removable devices (SD/USB) take precedence over non-removable (eMMC/NvME/UFS) devices in the default boot order.

Thanks

---

<div class="post-metadata">

**Author:** ![sean.pan](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@sean.pan](https://forums.developer.nvidia.com/u/sean.pan)\
**Post date:** [April 18, 2025, 7:59am UTC](https://forums.developer.nvidia.com/t/uefi-cannot-boot-from-usb-drive-first/330775/7 "2025-04-18T07:59:55Z")

</div>

The answers to the questions are as follows:

1. We have two types of Jetson, one is nano4g, the other is nx8g, But I am testing nano4g
2. I use the Jetson Linux 36.4.3

After I burned UEFI, the UEFI settings page looked like this:

 ![image](https://global.discourse-cdn.com/nvidia/original/4X/1/2/e/12e9fe9e1a9cdf3340e64bdeb586dc4bcb2d81de.png)

---

<div class="post-metadata">

**Author:** ![sean.pan](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@sean.pan](https://forums.developer.nvidia.com/u/sean.pan)\
**Post date:** [April 18, 2025, 8:21am UTC](https://forums.developer.nvidia.com/t/uefi-cannot-boot-from-usb-drive-first/330775/8 "2025-04-18T08:21:47Z")

</div>

I added `ADDITIONAL_DTB_OVERLAY="BootOrderUsb.dtbo"` in the command to execute flash.sh, and then I can boot from the USB drive first. Thank you for your answer.

---

<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:** [May 2, 2025, 11:37am UTC](https://forums.developer.nvidia.com/t/uefi-cannot-boot-from-usb-drive-first/330775/10 "2025-05-02T11:37:10Z")

</div>

Closed on May 2, 2025, 11:37am UTC

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

---

<div class="post-metadata">

**Author:** ![DavidDDD](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/davidddd/32/370680_2.png) [@DavidDDD](https://forums.developer.nvidia.com/u/DavidDDD)\
**Post date:** [May 21, 2025, 6:55am UTC](https://forums.developer.nvidia.com/t/uefi-cannot-boot-from-usb-drive-first/330775/11 "2025-05-21T06:55:13Z")

</div>

Hi,

Could you describe more in detail?  
How do you enter in SSD system?  
In general, add OVERLAY will take effect unless you manually modify in bios setting.

Thanks
