Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    • Register
    • Login
    Introducing Netgate Nexus: Multi-Instance Management at Your Fingertips.

    Upgrade from 2.0.1 to 2.1.2 corrupted one of my boot environments

    Scheduled Pinned Locked Moved Problems Installing or Upgrading pfSense Software
    3 Posts 3 Posters 1.4k 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.
    • J
      Jon Strabala
      last edited by

      Hi,

      I upgraded from 2.0.1 to 2.1.2, my system has two boot environments F1 and F2 after the first upgrade on F2 went fine (booted to F2)

      I ran for a week and tested everything ….

      Then I upgraded boot environment F1 from 2.0.1 to 2.1.2, but now the / or root fs wouldn't mount R/W and said it needed an fsck

      At this point I had a good boot on F2 ( / on /dev/ad4s2a ) and a non-functional boot on F1 ( / on /dev/ad4s1a) obviously not what I want and I was loath to do a fresh install over both my working boot partitions.

      So I tough dump/restore utilities alas pFsense seems to not deliver /sbin/restore or /sbin/mksnap_ffs both needed to clone onto another boot media.

      #####################################

      sometimes the XML config files are just not enough …

      why is /sbin/restore and /sbin/mksnap_ffs missing ?

      #####################################

      Painful I had to download the ISO get the utilities I needed, then I was able to make a bootable USB with my configs and all my changes and notes

      Okay I could have installed form scratch but that would have been excessive down time on my firewall and also if it all went south I wojuld be SOL.

      Once I had a bootable USB thumb drive (yes all works when the SATA drive was pulled) that ran my firewall, I felt completely comfortable doing the following to fix the broken boot environment on my hard drive.

      gpart show
      df -kl
      newfs -L rootfs -U /dev/ad4s1a
      mount /dev/ad4s1a /mnt
      cd /mnt
      pwd
      df -kl
      dump -0Lauf - /dev/ad4s2a | restore -rf -
      cd /mnt/etc

      #–-------------------------------------------------------------

      update the /mnt/etc/fstab to BOOT the F1 clone

      was /dev/ad4s2a for / and /dev/ad4s2b for swap

      now /dev/ad4s1a for / and /dev/ad4s1b for swap

      #---------------------------------------------------------------

      vi /mnt/etc/fstab

      cd /
      umount /mnt

      The above (USB prep not shown - but I used the same dump/restore pipeline) took a bit of research but I had solid piece of mind the entire time and now I also have a working USB thumb (the best part all my notes and tweaks also copied over)

      1 Reply Last reply
      Reply Quote 0
      • R
        robi
        last edited by

        @Jon:

        I upgraded from 2.0.1 to 2.1.2, my system has two boot environments F1 and F2 after the first upgrade on F2 went fine (booted to F2)

        I ran for a week and tested everything ….

        Then I upgraded boot environment F1 from 2.0.1 to 2.1.2, but now the / or root fs wouldn't mount R/W and said it needed an fsck

        At this point I had a good boot on F2 ( / on /dev/ad4s2a ) and a non-functional boot on F1 ( / on /dev/ad4s1a) obviously not what I want and I was loath to do a fresh install over both my working boot partitions.

        Why didn't you just duplicate the working F2 slice to F1 overwriting it? That can be done with a few clicks from the web interface.

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

          Not running Nano? Looks like a custom install.

          Steve

          1 Reply Last reply
          Reply Quote 0

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Register Login
          • First post
            Last post
          Copyright 2026 Rubicon Communications LLC (Netgate). All rights reserved.
          Privacy Policy · Cookie Policy