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

    Img file: Location of config.xml

    Scheduled Pinned Locked Moved Problems Installing or Upgrading pfSense Software
    5 Posts 2 Posters 3.2k 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.
    • M
      mikael.andre
      last edited by

      Hi everybody,

      Since 2.4.4 version, I'm trying to locate the folder which is containing config.xml in the image file *.img.
      Before this version, I uploaded my own default config.xml in the /conf folder. I used the procedure in order to restore quickly after fresh install my own default config.

      Many thanks.

      Best regards,

      Mikaël ANDRE

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

        Nothing has changed in that regard. However to quickly restore your config try using either of these methods:

        https://www.netgate.com/docs/pfsense/backup/automatically-restore-during-install.html

        Steve

        M 1 Reply Last reply Reply Quote 0
        • M
          mikael.andre @stephenw10
          last edited by

          @stephenw10

          Thanks for your answer.
          From a FreeBsd admin station, I copy my .img file to my home folder.
          Then, I enter the following command: mdconfig -f pfSense
          .img
          This command returns « da0 ».
          So, I entered: mount /dev/da0s2a /mnt/pfsense.
          I go into this folder: cd /mnt/pfsense and I do ls -alh. I don’t see the folder /conf.

          That’s why I posted this message.

          Many thanks

          Best regards,

          Mikaël ANDRE

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

            Ah, because there is no config file in the installer image directly, it's not pfSense.
            The config is in the installed image in /usr/freebsd-dist.

            But I highly recommend using one of the methods mentioned above instead.

            Steve

            M 1 Reply Last reply Reply Quote 0
            • M
              mikael.andre @stephenw10
              last edited by

              @stephenw10

              Many thanks for the answer.

              Best regards,

              Mikaël ANDRE

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