Booting a UFD without using the F12 Boot Menu

Discussion in 'backup, imaging & disk mgmt' started by Brian K, Nov 9, 2024.

  1. Brian K

    Brian K Imaging Specialist

    You can boot a UFD by running a script in Windows. There is no need to use the F12 Boot Menu. This comes in handy if you have the UFD setup to do something automatic. Such as an auto restore. Or an off line backup. So, run the script and walk away. Windows will restart, the UFD will boot and do its thing and the computer will restart into Windows.

    To set this up, shutdown the computer. Plug the bootable UFD in and power on into the BIOS. Check Boot Option Priorities and make sure the UFD is recognised. Mine is...

    UEFI: Sandisk, Partition 1 (SanDisk)

    Leave the UFD plugged in and boot into Windows. Open TBOSDT (TeraByte OS Deployment Tool Command Prompt). Enter this and press Enter...

    LIST UEFI BOOTITEMS

    Make a note of the "bootnum" of the UFD item. Mine is 0x749D

    Create a ufd.cmd...

    Code:
    @echo off
    CD /d %~dp0
    set TBpath=C:\Program Files (x86)\TeraByte Drive Image Backup and Restore Suite\TeraByte OSD Tool Suite Pro\win
    "%TBpath%\tbosdtw64.exe" ufd.run
    echo.
    pause
    shutdown /r /t 0
    Create a ufd.run (use your "bootnum") Both files need to be in the same folder. Any folder.

    Code:
    set uefi bootnext 0x749D
    Right click ufd.cmd
    Run as administrator
    Press any key to continue...
    The computer restarts, etc.

    From now, you don't have to shutdown to plug in the UFD. Just plug it in while in Windows. Then run ufd.cmd.

    For initial testing you don't need an "auto" UFD. You can use any bootable UFD. Even a Win11 UFD.
     
    Last edited: Nov 9, 2024
  2. Hadron

    Hadron Registered Member

    Great stuff, Brian.

    Out of curiosity, can bootnum be found using Command Prompt? Not everyone may have TeraByte OS Deployment Tool.
     
  3. Brian K

    Brian K Imaging Specialist

    Hadron,

    You can get the same bootnum in Linux with efibootmgr. But you still need TBOSDT to run the script.
    I don't have a Windows method.
     
  4. Hadron

    Hadron Registered Member

    No problem, Brian.
    Just another bonus for having TeraByte Utilities.
     
  5. Brian K

    Brian K Imaging Specialist

    I noticed in one of my computers that shutdowns seemed to cause an issue. So if you get an error with...

    set uefi bootnext 0x749D

    Run this...

    add uefi bootitem 4 0x01 usb 0x749D
    set uefi bootnext 0x749D

    4 is the UFD Disk number from Disk Management or TBOSDT. Edit 4 to your Disk number.
     
  6. Raza0007

    Raza0007 Registered Member

    Thanks. I will keep this option safe somewhere just in case if EasyBCD/iReboot combo stops working on Windows in the future.
     
  7. Hadron

    Hadron Registered Member

    Is EasyBCD required for iReboot? I've never used it.
     
  8. Raza0007

    Raza0007 Registered Member

    You know that is a good question. I have always had EasyBCD on my system so this never occurred to me, but now that you mentioned it, I don't think you actually need EasyBCD installed for iReboot to function. After you have setup your custom boot menu with EasyBCD or any other app, iReboot should be able to boot into any one of them with a single click.

    Also keep in mind that Brian's script does something that iReboot most likely cannot do i.e. automatically boot into a UFD on next boot.
     
  9. Hadron

    Hadron Registered Member

    Thanks for clearing my confusion, Raza. :thumb:
     
  10. Brian K

    Brian K Imaging Specialist

    Different UFDs. Same bootnum.
    Ignore the multiple OS partitions.

    a.png
    b.png
     
  11. Brian K

    Brian K Imaging Specialist

    Last edited: Nov 11, 2024
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice