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

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