Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    rebuild or recover /boot/loader.conf

    Scheduled Pinned Locked Moved General pfSense Questions
    4 Posts 2 Posters 854 Views 1 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.
    • C Offline
      cezp
      last edited by

      I wanted to add a variable in the loader.conf, but I accidently overwritten the existing file with an empty one. Is it possible to recover from the boot log the previous values or retrigger whatever process that previously set the file. I have a fully installed instance of pfSense. The change was done from the web interface and I have a previous backup of config.xml.

      C 1 Reply Last reply Reply Quote 0
      • C Offline
        cezp @cezp
        last edited by

        Found the following for 2.5.0

        kern.cam.boot_delay=10000
        kern.ipc.nmbclusters="1000000"
        kern.ipc.nmbjumbop="524288"
        kern.ipc.nmbjumbo9="524288"
        kern.geom.label.disk_ident.enable="0"
        kern.geom.label.gptid.enable="0"
        zfs_load="YES"
        autoboot_delay="3"
        hw.hn.vf_transparent="0"
        hw.hn.use_if_start="1"
        legal.intel_ipw.license_ack=1
        legal.intel_iwi.license_ack=1
        
        provelsP 1 Reply Last reply Reply Quote 0
        • provelsP Online
          provels @cezp
          last edited by

          @cezp
          If it was me, I'd just reinstall and restore your backup.
          That said, if you want to add something to loader.conf, you can create /boot/loader.conf.local and add it there. It will append the variables on boot.

          Peder

          MAIN - pfSense+ 24.11-RELEASE - Adlink MXE-5401, i7, 16 GB RAM, 64 GB SSD. 500 GB HDD for SyslogNG
          BACKUP - pfSense+ 23.01-RELEASE - Hyper-V Virtual Machine, Gen 1, 2 v-CPUs, 3 GB RAM, 8GB VHDX (Dynamic)

          C 1 Reply Last reply Reply Quote 0
          • C Offline
            cezp @provels
            last edited by

            @provels
            Thank you for the tip. All except the last two lines were added by the installer, so I guess I'll leave those as is, the last two I moved to loader.conf.local.

            I rebooted and everything seems to boot fine :)

            1 Reply Last reply Reply Quote 0
            • First post
              Last post
            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.