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

    did a dumb and cleared contents of /boot/loader.conf

    Scheduled Pinned Locked Moved General pfSense Questions
    4 Posts 2 Posters 495 Views
    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.
    • tinfoilmattT
      tinfoilmatt
      last edited by

      boot is now failing with

      Mounting from zfs:pfSense/ROOT/default failed with error 2: unknown file system.
      

      pretty sure it's at least partly because zfs_load="YES" isn't contained in any of the loader files. also possibly due to other missing variables.

      i did backup the original contents, and i've figured out how to manually set variables from the loader prompt. but then i'm not sure if i also need to manually load the zfs.ko module (and possibly the opensolaris.ko module too, possibly others) from the loader prompt before initiating boot.

      FWIW i can see the empty contents of /boot/loader.conf from the loader prompt. i'm assuming there's no way to modify that file from the loader prompt/pre-boot?

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

        What pfSense version? What hardware?

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

          You probably only need to loads zfs.ko before loading the kernel.

          tinfoilmattT 1 Reply Last reply Reply Quote 1
          • tinfoilmattT
            tinfoilmatt @stephenw10
            last edited by

            @stephenw10 resolved before seeing this, but you are correct. thanks very much.

            for posterity, from loader prompt:

            load /boot/kernel/zfs.ko
            
            1 Reply Last reply Reply Quote 1
            • First post
              Last post
            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.