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

    upgrade 2.6.0 to 2.7.0 not booting: UFS cannot be mounted anymore (superblock CGSIZE)

    Scheduled Pinned Locked Moved Problems Installing or Upgrading pfSense Software
    11 Posts 3 Posters 1.6k 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
      dneuhaeuser @dneuhaeuser
      last edited by

      On FreeBSD Bugzilla someonce commented that the available patch apparently is not yet in pfsense 2.7.0
      https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=264450

      But, looking, 14.0-CURRENT@0c59e0b4e581 is from 2023-Mar-30, long
      predating the fix reported in comment #15 . The issue is a known
      problem with the old release involved, one that has been fixed.
      
      My guess here is that pfsense needs to be based on an updated
      FreeBSD that has the fix reported in #15 . Time for a 2.7.1 ?
      
      1 Reply Last reply Reply Quote 0
      • stephenw10S
        stephenw10 Netgate Administrator
        last edited by

        @dneuhaeuser said in upgrade 2.6.0 to 2.7.0 not booting: UFS cannot be mounted anymore (superblock CGSIZE):

        https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=264450

        I think you're out by a year. 😉

        That fix was commited in May 2022. It's in pfSense 2.7. Along with numerous more recent fixes.
        https://github.com/pfsense/FreeBSD-src/commit/076002f24d35962f0d21f44bfddd34ee4d7f015d

        Steve

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

          My mistake this commit: https://github.com/pfsense/FreeBSD-src/commit/800a53b445e7eb113ba193b1ac98631299178529

          In June 2022 as shown in the bug.

          1 Reply Last reply Reply Quote 0
          • S
            sbingner @dneuhaeuser
            last edited by

            @dneuhaeuser I encountered this same issue - it's definitely a kernel bug, if I boot the old kernel it can read the FS but there are significant issues that causes it to not be safe (like copy doesn't work). I suspect that if you were to copy a 2.7.2 kernel off and boot that on the 2.7.0 system it would work properly. I went through and upgraded from 2.7.0 to 2.7.2 and it could read everything fine once again. It seems to be some error in how the 2.7.0 UFS is calculating cgsize. After I upgraded by booting the old kernel, lots of files were zero sized because of the failure to copy files (for example all the nginx config files were empty)

            I ended up just reinstalling from a 2.7.2 DVD, but I'll probably try the 2.7.2 kernel on 2.7.0 route on the next one I try this on.

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

              You were also upgrading from 2.6 to 2.7 when you hit it?

              S 1 Reply Last reply Reply Quote 0
              • S
                sbingner @stephenw10
                last edited by

                @stephenw10 yes that is correct - I posted a lot of details in slack but the important bits are above.

                S 1 Reply Last reply Reply Quote 2
                • S
                  sbingner @sbingner
                  last edited by

                  @stephenw10 FYI I had to upgrade another system and the same thing happened. I booted the 2.7.2 install cd and mounted the old root. Copied /boot/kernel to /mnt/boot/kernel.new then booted that. Everything worked fine. Would be nice if the installer could have the kernel updated to one that's not bugged

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

                    The 2.7.2 installer? It seems like that is good if you're able to mount the old root from it no?

                    S 1 Reply Last reply Reply Quote 0
                    • S
                      sbingner @stephenw10
                      last edited by

                      @stephenw10 sorry my message was unclear, I meant the kernel in the upgrade that the UI applies. Yes the 2.7.2 installer is good… but you have to go to 2.7.0 first because…. Reasons?

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

                        Oh, I see so if you have this specific UFS install the 2.7.0 kernel will not boot from it. The 2.7.2 kernel will boot from it but you have to go through 2.7.0 because that was the first version that added dynamic repos. Hmm. Yeah I'm not sure what we can do about that at this point. You can always install 2.7.2 clean and restore the config from 2.6.

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