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

    Does a system update wipe out user files?

    Scheduled Pinned Locked Moved Problems Installing or Upgrading pfSense Software
    4 Posts 3 Posters 762 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.
    • D
      DominikHoffmann
      last edited by

      A while ago I installed the PHP code snippet for checking, whether new system updates are available, and notifying me via email, by @luckman212. I must have update the system (to 23.05) a little while later and just yesterday noticed that the PHP code was no longer at /root/.

      My question is twofold:

      1. Do system updates wipe out user-installed files?
      2. If so, can this be prevented for this file at /root/?
      GertjanG 1 Reply Last reply Reply Quote 0
      • GertjanG
        Gertjan @DominikHoffmann
        last edited by

        @DominikHoffmann

        See here :

        https://forum.netgate.com/topic/137707/auto-update-check-checks-for-updates-to-base-system-packages-and-sends-email-alerts/20

        I'm updating/upgrading for a decade or so, using Console (nearly always) or GUI (maybe ones) and not lost my own 'stuff' in root.
        File system changes (upgrades) like going from UFS to ZFS will "destroy" the drive. That type of install can't be a "click in the GUI and done" but needs a USB drive, and booting from USB to re partition the drive etc.

        No "help me" PM's please. Use the forum, the community will thank you.
        Edit : and where are the logs ??

        D 1 Reply Last reply Reply Quote 1
        • D
          DominikHoffmann @Gertjan
          last edited by

          @Gertjan: I manage 4 or 5 Netgate firewalls. I yesterday found that /root/ had been wiped on all of them. I am pretty sure that it was not, when the upgrade to ZFS happened, but subsequently. Of course, this long after the fact it’s impossible to prove it.

          One data point: In the case of just now updating one from 23.05 to 23.05.1, your PHP package stayed in place.

          S 1 Reply Last reply Reply Quote 0
          • S
            SteveITS Galactic Empire @DominikHoffmann
            last edited by

            @DominikHoffmann Changing to ZFS wipes/repartitions the drive during the reinstall.

            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 1
            • First post
              Last post
            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.