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

Clarification on using USB stick during installation to restore backup.

Scheduled Pinned Locked Moved Problems Installing or Upgrading pfSense Software
35 Posts 11 Posters 4.9k 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.
  • S
    SteveITS Galactic Empire @jimp
    last edited by Mar 18, 2022, 2:39 PM

    @jimp said in Clarification on using USB stick during installation to restore backup.:

    ARM recovery images lack config.xml recovery features

    Ah, that explains not seeing the option. Netgate might add a note to that section saying it doesn't apply to ARM. In my case I had backups so it wasn't a big deal, but it sounds like if one has SSH access it's best to grab the config file contents before reinstall.

    ECL method still works there, however, you need to leave the USB drive with the FAT partition plugged in while it boots off its internal disk

    Hmm, that sounds awfully similar to the "during install" process:

    • Boot the install media (Memstick, disc, etc)
    • Install to the target disk
    • Reboot the firewall
    • Remove the USB drive only AFTER the firewall has begun to reboot

    So I did leave the stick in place. However this last bullet makes it sound like it does need a second USB stick:

    • Remove the install media as well at this point

    Pre-2.7.2/23.09: Only install packages for your version, or risk breaking it. Select your branch in System/Update/Update Settings.
    When upgrading, allow 10-15 minutes to restart, or more depending on packages and device speed.
    Upvote 👍 helpful posts!

    J 1 Reply Last reply Mar 18, 2022, 3:51 PM Reply Quote 0
    • N
      NRgia @chrcoluk
      last edited by Mar 18, 2022, 3:15 PM

      @chrcoluk said in Clarification on using USB stick during installation to restore backup.:

      Hi

      So changed storage in my home pfSense, and I made config backup before I started, made install usb stick using img with rufus, this had a visible fat32 partition with the efi folder inside it.

      I made a conf folder and placed the backup config in there named config.xml.

      I proceeded to install pfSense with this usb stick as the installer, and on first bootup could see it didnt restore the config.

      Documentation here.

      https://docs.netgate.com/pfsense/en/latest/backup/restore-during-install.html

      I then noticed further down it says you can also restore during any bootup, but using a config folder instead of conf, this one did actually work.

      So is it possible its a typo for the during install and should be config for that as well? or did I hit another problem?

      From the OP's signature I see that he has a Qotom Q355G4 with an Intel I5. His steps refers to Amd64 boxes, and he refers that he cannot restore the config during the install process, as it's described in the documentation. I followed the same steps, and I confirm that it's not working. So either the code needs to be changed or the documentation.

      1 Reply Last reply Reply Quote 0
      • S
        SteveITS Galactic Empire @chrcoluk
        last edited by Mar 18, 2022, 3:37 PM

        @chrcoluk said in Clarification on using USB stick during installation to restore backup.:

        using a config folder instead of conf

        Ah, I read right over that. That would explain why the ECL method didn't work for me, and the "during install" with the /conf directory doesn't work on ARM.

        Pre-2.7.2/23.09: Only install packages for your version, or risk breaking it. Select your branch in System/Update/Update Settings.
        When upgrading, allow 10-15 minutes to restart, or more depending on packages and device speed.
        Upvote 👍 helpful posts!

        1 Reply Last reply Reply Quote 0
        • J
          jimp Rebel Alliance Developer Netgate
          last edited by Mar 18, 2022, 3:49 PM

          Do not use Rufus, use Etcher. The EFI partition is NOT the FAT partition used to read config.xml.

          The correct FAT partition would be labeled PFSENSE and it would contain LICENSE.txt and README.txt.

          I just wrote out a 2.6.0 memstick with Etcher and it had the correct partition present.

          Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

          Need help fast? Netgate Global Support!

          Do not Chat/PM for help!

          N C 3 Replies Last reply Mar 18, 2022, 3:57 PM Reply Quote 1
          • J
            jimp Rebel Alliance Developer Netgate @SteveITS
            last edited by Mar 18, 2022, 3:51 PM

            @steveits said in Clarification on using USB stick during installation to restore backup.:

            @jimp said in Clarification on using USB stick during installation to restore backup.:

            ARM recovery images lack config.xml recovery features

            ECL method still works there, however, you need to leave the USB drive with the FAT partition plugged in while it boots off its internal disk

            Hmm, that sounds awfully similar to the "during install" process:

            • Boot the install media (Memstick, disc, etc)
            • Install to the target disk
            • Reboot the firewall
            • Remove the USB drive only AFTER the firewall has begun to reboot

            ECL runs on every boot, not just install. It also has slightly different naming requirements, which are outlined in the doc I linked.

            So I did leave the stick in place. However this last bullet makes it sound like it does need a second USB stick:

            • Remove the install media as well at this point

            It works both ways during install, it checks every FAT partition it can find.

            Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

            Need help fast? Netgate Global Support!

            Do not Chat/PM for help!

            1 Reply Last reply Reply Quote 0
            • N
              NRgia @jimp
              last edited by Mar 18, 2022, 3:57 PM

              @jimp said in Clarification on using USB stick during installation to restore backup.:

              Do not use Rufus, use Etcher. The EFI partition is NOT the FAT partition used to read config.xml.

              The correct FAT partition would be labeled PFSENSE and it would contain LICENSE.txt and README.txt.

              I just wrote out a 2.6.0 memstick with Etcher and it had the correct partition present.

              Indeed I used Rufus, and it created another FAT partition containing what you said. I will try again with Etcher. At least nobody will do that mistake again. I will confirm later. Thanks

              1 Reply Last reply Reply Quote 0
              • J
                jimp Rebel Alliance Developer Netgate
                last edited by Mar 18, 2022, 4:04 PM

                Another possible sticking point is after you write the USB drive you may have to remove it from the system and plug it back in before it sees all of the partitions.

                Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                Need help fast? Netgate Global Support!

                Do not Chat/PM for help!

                N 1 Reply Last reply Mar 18, 2022, 4:45 PM Reply Quote 0
                • N
                  NRgia @jimp
                  last edited by Mar 18, 2022, 4:45 PM

                  @jimp said in Clarification on using USB stick during installation to restore backup.:

                  Another possible sticking point is after you write the USB drive you may have to remove it from the system and plug it back in before it sees all of the partitions.

                  If you where responding to me I don't understand what you meant. After the FAT partition is also created, I copy the config.xml file to that partition. So if I can copy something to it, it sees it. Also from the boot manager I can see 2 partitions, and I can choose either of them. Normally it only from one of them. But the information is there. I will try with Etcher instead.

                  1 Reply Last reply Reply Quote 0
                  • J
                    jimp Rebel Alliance Developer Netgate
                    last edited by Mar 18, 2022, 4:54 PM

                    On some operating systems it won't refresh the disk partitions after writing, depending on how it was written. Unplug the USB drive and plug it back in and you will know for certain it's re-reading the partition table properly. You might think you are seeing the right one, but the list may not be complete.

                    Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                    Need help fast? Netgate Global Support!

                    Do not Chat/PM for help!

                    N 1 Reply Last reply Mar 18, 2022, 6:55 PM Reply Quote 0
                    • N
                      NRgia @jimp
                      last edited by NRgia Mar 18, 2022, 6:56 PM Mar 18, 2022, 6:55 PM

                      @jimp said in Clarification on using USB stick during installation to restore backup.:

                      On some operating systems it won't refresh the disk partitions after writing, depending on how it was written. Unplug the USB drive and plug it back in and you will know for certain it's re-reading the partition table properly. You might think you are seeing the right one, but the list may not be complete.

                      Ok, just tried it.

                      OS: Manjaro Linux (previously Win 10)
                      Flashing tool: balenaEtcher v.1.7.7 (previously Rufus)

                      1. I unmounted and remounted the USB stick.
                      2. Created a conf directory where I copied the config.xml
                      3. Booted the pfSense box from USB installation media.
                      4. Installed pfSense.
                      5. Selected Reboot at the end of the installation.
                      6. During POST I removed the installation media, otherwise we have the ECL case.

                      Actual: No configuration has been restored, and pfSense asks me to reconfigure the Networks, define which interface is WAN, LAN, the user/password is set to default.

                      Expected:
                      The user configuration from /conf/config.xml should be restored during installation phase.

                      MrPeteM 1 Reply Last reply Mar 21, 2022, 2:57 PM Reply Quote 0
                      • MrPeteM
                        MrPete @NRgia
                        last edited by Mar 21, 2022, 2:57 PM

                        @nrgia said in Clarification on using USB stick during installation to restore backup.:

                        Ok, just tried it.
                        ...
                        6) During POST I removed the installation media, otherwise we have the ECL case.

                        Actual: No configuration has been restored, and pfSense asks me to reconfigure the Networks, define which interface is WAN, LAN, the user/password is set to default.

                        Expected:
                        The user configuration from /conf/config.xml should be restored during installation phase.

                        So, this IS a point of at least confusion or uncertainty.

                        @jimp QUESTION: are we SURE that autoconfig-during-install is NOT at all dependent on the ECL process?

                        Here's how I do my installs:

                        • Set system to boot from internal drive if possible
                        • Do a one-time boot from install USB (or if not available, wipe the internal boot drive)
                        • Do the USB install
                        • Leave USB stick in for at least the first reboot.

                        Even the ECL process link shared by @jimp says "If this is the first boot post-installation, then this process also triggers reinstallation of packages listed in the restored configuration."

                        I suspect pfSense does NOT self-reconfigure based on reading config.xml during the install-time boot, but instead during the next boot. But I'm not certain of that.

                        S 1 Reply Last reply Mar 21, 2022, 3:14 PM Reply Quote 0
                        • S
                          SteveITS Galactic Empire @MrPete
                          last edited by Mar 21, 2022, 3:14 PM

                          @mrpete Do you copy the config file to both /conf/config.xml and /config/config.xml? The two procedures use different locations.

                          Pre-2.7.2/23.09: Only install packages for your version, or risk breaking it. Select your branch in System/Update/Update Settings.
                          When upgrading, allow 10-15 minutes to restart, or more depending on packages and device speed.
                          Upvote 👍 helpful posts!

                          MrPeteM 1 Reply Last reply Mar 24, 2022, 6:37 PM Reply Quote 0
                          • stephenw10S
                            stephenw10 Netgate Administrator
                            last edited by Mar 22, 2022, 2:56 PM

                            I've done this many times and I expect it to boot into the recovered config. You should not have to reboot again unless you had a package that required it after install.

                            Steve

                            noplanN 1 Reply Last reply Mar 22, 2022, 4:02 PM Reply Quote 0
                            • noplanN
                              noplan @stephenw10
                              last edited by Mar 22, 2022, 4:02 PM

                              @stephenw10

                              OK gonna test it tomorrow cuz I am not able to remember if I disconnected the stick after the first reboot....

                              Da mm n getting old sucks....

                              1 Reply Last reply Reply Quote 0
                              • C
                                chrcoluk @jimp
                                last edited by Mar 23, 2022, 10:54 AM

                                @jimp said in Clarification on using USB stick during installation to restore backup.:

                                Do not use Rufus, use Etcher. The EFI partition is NOT the FAT partition used to read config.xml.

                                The correct FAT partition would be labeled PFSENSE and it would contain LICENSE.txt and README.txt.

                                I just wrote out a 2.6.0 memstick with Etcher and it had the correct partition present.

                                I can confirm I am using AMD64.

                                I will be installing 2.6.0 soon so I get the new ZFS layout, I will write the image with Etcher when I do this and report back. :)

                                pfSense CE 2.7.2

                                1 Reply Last reply Reply Quote 0
                                • MrPeteM
                                  MrPete @SteveITS
                                  last edited by Mar 24, 2022, 6:37 PM

                                  @steveits Actually I only place it in the root these days.

                                  1 Reply Last reply Reply Quote 0
                                  • C
                                    chrcoluk @jimp
                                    last edited by chrcoluk Jul 12, 2022, 5:19 AM Jul 12, 2022, 1:04 AM

                                    @jimp said in Clarification on using USB stick during installation to restore backup.:

                                    Do not use Rufus, use Etcher. The EFI partition is NOT the FAT partition used to read config.xml.

                                    The correct FAT partition would be labeled PFSENSE and it would contain LICENSE.txt and README.txt.

                                    I just wrote out a 2.6.0 memstick with Etcher and it had the correct partition present.

                                    Hi Jim, mystery solved, Seems the partition is created but a drive letter isnt been assigned to it so isnt visible in windows. So I guess yes a Rufus problem, but fixable by manually adding a drive letter so can copy the files across, see this screenshot. Feel free to use this image if you want to edit the documentation.

                                    Although I am wring the image now with Etcher.

                                    alt text

                                    Confirmed using Etcher both FAT32 partitions show up in windows with drive letters automatically, copied over the config to the PFSENSE partition and it worked during install as documented. I suggest adding something to the documentation about what was said in this thread. :)

                                    I will email the Rufus developer about this issue.

                                    pfSense CE 2.7.2

                                    1 Reply Last reply Reply Quote 2
                                    • J
                                      jimp Rebel Alliance Developer Netgate
                                      last edited by Jul 12, 2022, 12:46 PM

                                      We have removed all of the Rufus information from the docs (too problematic) so I'm hesitant to add anything back even if there is a workaround. Using Etcher is so much simpler and less likely to cause problems. There isn't a need to involve something as complex as Rufus here.

                                      Rufus can make sense for Linux and for other similar situations where you need more control over how the disk is laid out and Linux boots, but not for pfSense/FreeBSD.

                                      Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                                      Need help fast? Netgate Global Support!

                                      Do not Chat/PM for help!

                                      1 Reply Last reply Reply Quote 2
                                      • S
                                        scurrier
                                        last edited by May 13, 2023, 5:57 AM

                                        Seems like this is still a problem. I tried both Etcher and Rufus on Windows. They both appear to have done the same thing, creating EFISYS (FAT), DTBFAT0 (FAT32), and some other partition I don't know much about from Windows Disk Manager. It's just called "USB Drive" but with no ability to show properties. It automatically mounted, but I can't open it. I tried disconnecting/reconnecting the USB with each flash software - no change.

                                        I have to do this on the road tomorrow on our 1100 so I'm just going to spam the files in all the possible locations on each usable partition and hope for the best. Hope I don't need to use the network to restore because I'm under the gun for time.

                                        1 Reply Last reply Reply Quote 0
                                        • stephenw10S
                                          stephenw10 Netgate Administrator
                                          last edited by May 13, 2023, 11:45 AM

                                          The aarch64 image is different. It is the DTBFAT0 partition you should put the config.xml file in, you will see the 4 dtb files in there when you open it.
                                          However the aarch64 installer does not copy that in during the install. Instead it will pull it in at the first boot after the install using the External Config loader:
                                          https://docs.netgate.com/pfsense/en/latest/backup/restore-during-install.html#restore-using-the-external-configuration-locator-ecl

                                          Steve

                                          S 1 Reply Last reply May 13, 2023, 2:02 PM Reply Quote 1
                                          • First post
                                            Last post
                                          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                                            [[user:consent.lead]]
                                            [[user:consent.not_received]]