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

Unable to upgrade from 2.7.1 to 2.7.2 | Unmounting /boot/efi... done. | failed.

Problems Installing or Upgrading pfSense Software
49
81
32.7k
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.
  • B
    beatvjiking @jimp
    last edited by Dec 8, 2023, 4:14 PM

    @jimp access to the efi partition seems blocked.

    [2.7.0-RELEASE][admin@pvd-dhall-1.cic.com]/root: sysctl machdep.bootmethod
    machdep.bootmethod: UEFI
    [2.7.0-RELEASE][admin@pvd-dhall-1.cic.com]/root: mount /boot/efi
    mount: /boot/efi: unknown special file or file system
    [2.7.0-RELEASE][admin@pvd-dhall-1.cic.com]/root:
    
    J 1 Reply Last reply Dec 8, 2023, 4:19 PM Reply Quote 0
    • J
      jimp Rebel Alliance Developer Netgate @beatvjiking
      last edited by Dec 8, 2023, 4:19 PM

      @beatvjiking said in Unable to upgrade from 2.7.1 to 2.7.2 | Unmounting /boot/efi... done. | failed.:

      @jimp access to the efi partition seems blocked.

      [2.7.0-RELEASE][admin@pvd-dhall-1.cic.com]/root: sysctl machdep.bootmethod
      machdep.bootmethod: UEFI
      [2.7.0-RELEASE][admin@pvd-dhall-1.cic.com]/root: mount /boot/efi
      mount: /boot/efi: unknown special file or file system
      [2.7.0-RELEASE][admin@pvd-dhall-1.cic.com]/root:
      

      Do you have either /dev/msdosfs/EFISYS or /dev/gpt/EFISYS? If so, try this instead:

      # mount_msdosfs /dev/msdosfs/EFISYS /boot/efi
      

      Or

      # mount_msdosfs /dev/gpt/EFISYS /boot/efi
      

      Followed by the df -hi /boot/efi/efi/boot/ command.

      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!

      B A 2 Replies Last reply Dec 8, 2023, 4:25 PM Reply Quote 7
      • B
        beatvjiking @jimp
        last edited by Dec 8, 2023, 4:25 PM

        @jimp that seems to have done the trick:

        [2.7.0-RELEASE][admin@pvd-dhall-1.cic.com]/dev: mount_msdosfs /dev/msdosfs/EFISYS /boot/efi
        [2.7.0-RELEASE][admin@pvd-dhall-1.cic.com]/dev: df -hi /boot/efi/efi/boot/
        Filesystem             Size    Used   Avail Capacity iused ifree %iused  Mounted on
        /dev/msdosfs/EFISYS    780K    387K    393K    50%       3   509    1%   /boot/efi
        [2.7.0-RELEASE][admin@pvd-dhall-1.cic.com]/dev:
        

        seems a bit... cramped?

        1 Reply Last reply Reply Quote 0
        • A
          alethewizard @jimp
          last edited by Dec 8, 2023, 4:27 PM

          @jimp

          Filesystem Size Used Avail Capacity iused ifree %iused Mounted on
          /dev/msdosfs/EFISYS 779K 386K 393K 50% 3 509 1% /boot/efi

          1 Reply Last reply Reply Quote 1
          • A alethewizard referenced this topic on Dec 8, 2023, 4:41 PM
          • J
            jimp Rebel Alliance Developer Netgate
            last edited by Dec 8, 2023, 4:52 PM

            Yeah, those must be rather old installations to have an EFI partition that small. I thought we made them significantly larger several years ago.

            There probably isn't going to be a safe way to upgrade those in-place given the space constraint there. You're better off reinstalling.

            But with the config recovery in the installer that should only take a few minutes to do in most cases.

            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!

            A B D 3 Replies Last reply Dec 8, 2023, 5:08 PM Reply Quote 6
            • A
              alethewizard @jimp
              last edited by Dec 8, 2023, 5:08 PM

              @jimp

              Thank you.

              My EFI partition is 200M.

              Could I resize the /dev/msdosfs/EFISYS to be more than 800K?

              J 1 Reply Last reply Dec 8, 2023, 5:12 PM Reply Quote 0
              • J
                jimp Rebel Alliance Developer Netgate @alethewizard
                last edited by Dec 8, 2023, 5:12 PM

                @alethewizard said in Unable to upgrade from 2.7.1 to 2.7.2 | Unmounting /boot/efi... done. | failed.:

                @jimp

                Thank you.

                My EFI partition is 200M.

                Could I resize the /dev/msdosfs/EFISYS to be more than 800K?

                We looked into doing that in an automated manner at one time, but deemed it too dangerous. While technically possible you'd spend more time doing that and possibly messing it up than you would just reinstalling and recovering the configuration.

                Once upon a time the FreeBSD EFI update method involved writing out a FAT filesystem image onto the partition rather than mounting and copying files, and that image was very small since it didn't need to be much larger than the loader itself. That was ... less than ideal for a number of reasons. But it's hard to break out of that in a safe manner.

                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!

                A 1 Reply Last reply Dec 8, 2023, 5:31 PM Reply Quote 4
                • B
                  beatvjiking @jimp
                  last edited by Dec 8, 2023, 5:12 PM

                  @jimp this install is from last year - I'd done a fresh install of 2.6 onto it to get ZFS in place. I have other machines on identical hardware and circumstances that aren't seeing the issue - is there some kind of weird corner case I hit? Maybe a workaround? The reinstalls are easy to do only if one can get to the machines.

                  1 Reply Last reply Reply Quote 2
                  • A
                    alethewizard @jimp
                    last edited by Dec 8, 2023, 5:31 PM

                    @jimp

                    Thank you jimp!

                    Simply extraordinary! :)

                    You're right: with the config recovery in the installer in 3 minutes I have the VM again with new version 2.7.2.

                    Thank you very much!

                    1 Reply Last reply Reply Quote 1
                    • J
                      jimp Rebel Alliance Developer Netgate
                      last edited by Dec 8, 2023, 5:53 PM

                      WARNING: These commands may cause unintended harm to your installation, your state of being, aura, personal wellness, sanity, favorite sports team, and/or pets. Use with caution. Have backups and installation media nearby.

                      If it's a VM, snapshot it before proceeding.

                      Assuming your EFI partition is /dev/msdosfs/EFISYS, this should work. If it's not, substitute in the proper path (e.g. /dev/gpt/EFISYS or maybe /dev/vtbd0p1 for example.)

                      # mkdir -p /boot/efi
                      # mount_msdosfs /dev/msdosfs/EFISYS /boot/efi
                      # mkdir -p /tmp/efitmp
                      # cp -Rp /boot/efi/* /tmp/efitmp
                      # umount /boot/efi
                      # newfs_msdos -F 32 -c 1 -L EFISYS /dev/msdosfs/EFISYS
                      # mount_msdosfs /dev/msdosfs/EFISYS /boot/efi
                      # cp -Rp /tmp/efitmp/* /boot/efi/
                      

                      Afterwards you should have an EFI filesystem that is the full size of the partition, which is roughly 200M.

                      The upgrade should proceed after that.

                      If it doesn't work, roll back or reinstall. You never saw this post. That torpedo did not self-destruct. You heard it hit the hull. I was never here.

                      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!

                      B S J T N 29 Replies Last reply Dec 8, 2023, 6:13 PM Reply Quote 84
                      • B
                        beatvjiking @jimp
                        last edited by Dec 8, 2023, 6:13 PM

                        @jimp this worked perfectly for me! I appreciate the help on all of this. I was willing to take the risk in this situation because if there was no workaround, it ended with me getting on a plane; if the workaround blew up the system, I'd be getting on a plane. Thank you for helping me take that calculated risk. And there's no plane involved!

                        1 Reply Last reply Reply Quote 2
                        • S
                          slu @jimp
                          last edited by Dec 8, 2023, 6:27 PM

                          @jimp said in Unable to upgrade from 2.7.1 to 2.7.2 | Unmounting /boot/efi... done. | failed.:

                          You never saw this post.

                          Thank you @jimp I will try this never saw workaround. :)

                          Technical it's not a problem for me to reinstall, but I must travel hundreds of km between the offices...

                          pfSense Gold subscription

                          1 Reply Last reply Reply Quote 1
                          • J
                            josh.hall @jimp
                            last edited by Dec 8, 2023, 7:28 PM

                            @jimp I'll do my best Col. Klink impersonation. I see nothing! I know nothing!

                            Also, thanks for showing us that nothing. Might be less than elegant, and certainly risky... but, it means I don't need to physically move the system to a monitor to rebuild it completely. What's the point of working in software if we can't be a bit lazy now and then?

                            1 Reply Last reply Reply Quote 1
                            • T
                              tighernain @jimp
                              last edited by Dec 9, 2023, 1:20 AM

                              @jimp

                              This worked for me, thank you for the help.

                              1 Reply Last reply Reply Quote 0
                              • N
                                nol166 @jimp
                                last edited by Dec 9, 2023, 4:14 AM

                                @jimp Logged in just to say thank you for posting this. It worked for me!

                                I appreciate your help!

                                1 Reply Last reply Reply Quote 0
                                • C
                                  crsesilva @jimp
                                  last edited by Dec 9, 2023, 4:43 AM

                                  @jimp Logged in just to say thank you for posting this. It worked for me!

                                  I appreciate your help!

                                  1 Reply Last reply Reply Quote 0
                                  • M
                                    Making_sense_of_pfSense
                                    last edited by Dec 9, 2023, 8:15 AM

                                    My /boot/efi partition was 779K.
                                    login-to-view

                                    Then I ran the commands that @jimp provided and now it's 197M!
                                    login-to-view

                                    After that, pfSense-upgrade had no issue upgrading from 2.7.1 to 2.7.2!
                                    Thank you so much!

                                    Running pfSense Community Edition 2.7.2 on a Qotom Mini PC.

                                    1 Reply Last reply Reply Quote 0
                                    • S
                                      slu @jimp
                                      last edited by Dec 9, 2023, 11:10 AM

                                      Confirm, it's working!

                                      /dev/msdosfs/EFISYS                                197M    512B    197M     0%    /boot/efi
                                      

                                      Thank you very much @jimp 👍

                                      pfSense Gold subscription

                                      1 Reply Last reply Reply Quote 0
                                      • K
                                        Klaus2314 @slu
                                        last edited by Klaus2314 Dec 9, 2023, 2:33 PM Dec 9, 2023, 2:15 PM

                                        @slu same issue here, but the procedure above fixed it. thanks! I had to power cycle the device after reboot though. it did not come back after reboot. same on my SG1100.

                                        Updating the EFI loader
                                        install: //boot/efi/efi/boot/INS@8I5bRD: Input/output error
                                        pkg-static: POST-INSTALL script failed
                                        
                                        1 Reply Last reply Reply Quote 0
                                        • L
                                          lnxfrk @jimp
                                          last edited by Dec 9, 2023, 3:59 PM

                                          @jimp said in Unable to upgrade from 2.7.1 to 2.7.2 | Unmounting /boot/efi... done. | failed.:

                                          You never saw this post.

                                          I'm certainly glad I saw this post. Thank you @jimp - At some point I'll plan on doing a fresh install as I'm sure that will help long term. I think the initial install for me was 2.4.5p1 so it's been a while.
                                          Again, thanks!

                                          1 Reply Last reply Reply Quote 0
                                          23 out of 81
                                          • First post
                                            23/81
                                            Last post
                                          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.