Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login
    Introducing Netgate Nexus: Multi-Instance Management at Your Fingertips.

    PFSENSE PLUS ZFS BOOT RECOVERY GUIDE (ERROR: cannot open loader.lua)

    Scheduled Pinned Locked Moved Problems Installing or Upgrading pfSense Software
    loader.lua
    2 Posts 2 Posters 641 Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • JonathanLeeJ Offline
      JonathanLee
      last edited by

      ========================================================================
      PFSENSE PLUS ZFS BOOT RECOVERY GUIDE (ERROR: cannot open loader.lua)
      ========================================================================
      
      1. ACCESSING THE RECOVERY ENVIRONMENT
      -------------------------------------
      At the 'OK' loader prompt (with pfSense Plus Installer USB plugged in):
      OK run usbboot
      
      Once the USB installer loads, select: (S)hell
      
      2. MOUNTING THE ZFS POOL
      ------------------------
      Identify and import your existing pool (usually named 'newpfSenseBackup' or 'zroot'):
      # zpool import -f -R /mnt newpfSenseBackup
      
      3. FINDING A WORKING BOOT ENVIRONMENT
      -------------------------------------
      List all available environments to find a known-good one (example., IPV6_HOST_ACTIVE):
      # zfs list -r newpfSenseBackup/ROOT
      
      4. APPLYING THE FIX (MANUAL ACTIVATE)
      -------------------------------------
      Force the pool to boot from the working environment:
      # zpool set bootfs=newpfSenseBackup/ROOT/IPV6_HOST_ACTIVE newpfSenseBackup
      
      5. VERIFYING AND REBOOTING
      --------------------------
      Confirm the 'bootfs' property matches your desired environment:
      # zpool get bootfs newpfSenseBackup
      
      Unmount the pool to save changes and restart:
      # zpool export newpfSenseBackup
      # reboot
      
      6. POST-RECOVERY (CLEANUP)
      --------------------------
      Once logged back into the pfSense WebGUI:
      - Navigate to: System > Boot Environments
      - Locate the "bad" environment (e.g., the one ending in ...20250113135850)
      - Select it and click the 'Trash' icon to prevent future boot loops.
      ========================================================================
      

      I was testing a new complied safexcel.ko driver and well ... it umm was not a good one..

      Make sure to upvote

      1 Reply Last reply Reply Quote 0
      • stephenw10S Online
        stephenw10 Netgate Administrator
        last edited by

        run usbboot is a uboot command not something the bootloader can do. So that should be run at the uboot prompt in the 1100 or 2100.

        1 Reply Last reply Reply Quote 1
        • First post
          Last post
        Copyright 2026 Rubicon Communications LLC (Netgate). All rights reserved.
        Privacy Policy · Cookie Policy