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.

    Scheduled Pinned Locked Moved Problems Installing or Upgrading pfSense Software
    81 Posts 49 Posters 38.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.
    • iorxI
      iorx @t1e1
      last edited by

      @t1e1

      Worked awesomely! Thank you for the swift response.

      If anyone curios of the event:

      My EFISYS was obiously matching here.

      [2.7.1-RELEASE]/: mkdir -p /boot/efi
      [2.7.1-RELEASE]/: mount_msdosfs /dev/msdosfs/EFISYS /boot/efi
      [2.7.1-RELEASE]/: mkdir -p /tmp/efitmp
      [2.7.1-RELEASE]/: cp -Rp /boot/efi/* /tmp/efitmp
      [2.7.1-RELEASE]/: ls /tmp/efitmp/efi/boot/
      BOOTx64.efi startup.nsh
      [2.7.1-RELEASE]/: umount /boot/efi
      [2.7.1-RELEASE]/: newfs_msdos -F 32 -c 1 -L EFISYS /dev/msdosfs/EFISYS
      /dev/msdosfs/EFISYS: 403266 sectors in 403266 FAT32 clusters (512 bytes/cluster)
      BytesPerSec=512 SecPerClust=1 ResSectors=32 FATs=2 Media=0xf0 SecPerTrack=63 Heads=255 HiddenSecs=0 HugeSectors=409600 FATsecs=3151 RootCluster=2 FSInfo=1 Backup=2
      [2.7.1-RELEASE]/: mount_msdosfs /dev/msdosfs/EFISYS /boot/efi
      [2.7.1-RELEASE]/: cp -Rp /tmp/efitmp/* /boot/efi/
      [2.7.1-RELEASE]/: df -hi /boot/efi
      Filesystem             Size    Used   Avail Capacity iused ifree %iused  Mounted on
      /dev/msdosfs/EFISYS    197M    386K    197M     0%       0     0     -   /boot/efi
      

      updated from console:

      Enter an option: 13
      
      >>> Updating repositories metadata...
      Updating pfSense-core repository catalogue...
      Fetching meta.conf: . done
      Fetching packagesite.pkg: . done
      Processing entries: . done
      pfSense-core repository update completed. 4 packages processed.
      Updating pfSense repository catalogue...
      Fetching meta.conf: . done
      Fetching packagesite.pkg: ...... done
      Processing entries: .......... done
      pfSense repository update completed. 549 packages processed.
      All repositories are up to date.
      
      The following 10 package(s) will be affected (of 0 checked):
      
      Installed packages to be UPGRADED:
              curl: 8.4.0 -> 8.5.0 [pfSense]
              isc-dhcp44-relay: 4.4.3P1_3 -> 4.4.3P1_4 [pfSense]
              isc-dhcp44-server: 4.4.3P1_3 -> 4.4.3P1_4 [pfSense]
              openvpn: 2.6.7_1 -> 2.6.8_1 [pfSense]
              pfSense: 2.7.1 -> 2.7.2 [pfSense]
              pfSense-base: 2.7.1 -> 2.7.2 [pfSense-core]
              pfSense-default-config: 2.7.1 -> 2.7.2 [pfSense]
              pfSense-kernel-pfSense: 2.7.1 -> 2.7.2 [pfSense-core]
              pfSense-repo: 2.7.1 -> 2.7.2 [pfSense]
              strongswan: 5.9.11_2 -> 5.9.11_3 [pfSense]
      
      Number of packages to be upgraded: 10
      
      **** WARNING ****
      Reboot will be required!!
      Proceed with upgrade? (y/N) y
      >>> Removing vital flag from php82... done.
      >>> Downloading upgrade packages...
      Updating pfSense-core repository catalogue...
      Fetching meta.conf:
      Fetching packagesite.pkg:
      pfSense-core repository is up to date.
      Updating pfSense repository catalogue...
      Fetching meta.conf:
      Fetching packagesite.pkg:
      pfSense repository is up to date.
      All repositories are up to date.
      Checking for upgrades (10 candidates): .......... done
      Processing candidates (10 candidates): .......... done
      Checking integrity... done (0 conflicting)
      The following 10 package(s) will be affected (of 0 checked):
      
      Installed packages to be UPGRADED:
              curl: 8.4.0 -> 8.5.0 [pfSense]
              isc-dhcp44-relay: 4.4.3P1_3 -> 4.4.3P1_4 [pfSense]
              isc-dhcp44-server: 4.4.3P1_3 -> 4.4.3P1_4 [pfSense]
              openvpn: 2.6.7_1 -> 2.6.8_1 [pfSense]
              pfSense: 2.7.1 -> 2.7.2 [pfSense]
              pfSense-base: 2.7.1 -> 2.7.2 [pfSense-core]
              pfSense-default-config: 2.7.1 -> 2.7.2 [pfSense]
              pfSense-kernel-pfSense: 2.7.1 -> 2.7.2 [pfSense-core]
              pfSense-repo: 2.7.1 -> 2.7.2 [pfSense]
              strongswan: 5.9.11_2 -> 5.9.11_3 [pfSense]
      
      Number of packages to be upgraded: 10
      >>> Downloading pkg...
      
      No packages are required to be fetched.
      Integrity check was successful.
      >>> Upgrading pfSense-boot...>>> Unmounting /boot/efi... done.
       done.
      >>> Upgrading pfSense kernel...
      Checking integrity... done (0 conflicting)
      The following 1 package(s) will be affected (of 0 checked):
      
      Installed packages to be UPGRADED:
              pfSense-kernel-pfSense: 2.7.1 -> 2.7.2 [pfSense-core]
      
      Number of packages to be upgraded: 1
      [1/1] Upgrading pfSense-kernel-pfSense from 2.7.1 to 2.7.2...
      [1/1] Extracting pfSense-kernel-pfSense-2.7.2: .......... done
      ===> Keeping a copy of current kernel in /boot/kernel.old
      >>> Removing unnecessary packages... done.
      System is going to be upgraded.  Rebooting in 10 seconds.
      

      and then

      *** Welcome to pfSense 2.7.2-RELEASE (amd64) on fw ***
      
      1 Reply Last reply Reply Quote 3
      • jimpJ
        jimp Rebel Alliance Developer Netgate @iorx
        last edited by

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

        @stephenw10

        Hi, I posted the same problem (In the "heat of the moment" I missed to search first of course...)

        Was the installation affected / changed when getting this error? Do I dare to reboot?

        FYI- No, nothing was harmed. The odd-looking filename is from the install command attempting to create a new file with the new loader contents. The way the install command is invoked here it makes a new file and then only if that succeeds does it remove the old file and then rename the new file to the old name.

        This means that it only actually changes things if each step succeeds, which is the safest method. Since the creation of the new file failed, it didn't end up changing anything, so it stopped processing at that point.

        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!

        1 Reply Last reply Reply Quote 3
        • jimpJ jimp forked this topic on
        • M
          mikeinnyc
          last edited by

          I borked this upgrade badly. I was down literally for an hour. I gave up and just installed fresh and loaded my backup. All good now.

          1 Reply Last reply Reply Quote 0
          • M
            MichelH
            last edited by

            Thanks @jimp! Increasing the EFI filesystem size fixed the issue for me as well. My version started out as a 2.4.4 version back in the days.

            1 Reply Last reply Reply Quote 0
            • chpalmerC
              chpalmer @jimp
              last edited by chpalmer

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

              mount_msdosfs /dev/msdosfs/EFISYS /boot/efi

              [2.7.1-RELEASE][admin@BlynSite.localdomain]/root: mount_msdosfs /dev/msdosfs/EFISYS /boot/efi
              mount_msdosfs: /dev/msdosfs/EFISYS: Device busy

              Well crap! This box is about 300 miles away from me.

              Guess is shall stay on 2.7.1 for now.

              Just tried again and it appears that it has now worked.. whew!! ๐Ÿ˜ต

              Triggering snowflakes one by one..
              Intel(R) Core(TM) i5-4590T CPU @ 2.00GHz on an M400 WG box.

              1 Reply Last reply Reply Quote 0
              • E
                elfranko @jimp
                last edited by

                @jimp Just like to say I can neither cofirm nor deny if this fix worked for my 3 installs that started with a blistering 900k partition. If it worked, thank you I now have 200mb, if not I don't have a firewall.
                I think the system I inherited started out as a 2.4 (Physical Server built from an ISO)

                Cheers

                Elfranko

                1 Reply Last reply Reply Quote 0
                • G
                  gnowicki @jimp
                  last edited by

                  @jimp Thank you! Worked perfectly for me.

                  1 Reply Last reply Reply Quote 0
                  • R
                    RumMonkey69 @jimp
                    last edited by

                    @jimp this fixed it for me too. thanks

                    1 Reply Last reply Reply Quote 0
                    • rcfaR
                      rcfa @slu
                      last edited by

                      @slu Exactly the same issue, here...

                      1 Reply Last reply Reply Quote 0
                      • rcfaR
                        rcfa @jimp
                        last edited by

                        This post is deleted!
                        1 Reply Last reply Reply Quote 0
                        • rcfaR
                          rcfa @jimp
                          last edited by

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

                          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.

                          @jimp Thanks, this did the trick. Reinstalling wasn't really a viable option, as I have no physical access to the system without stepping into a plane and taking a long trip...

                          1 Reply Last reply Reply Quote 1
                          • E
                            eostrike
                            last edited by

                            This is where mine fails. Before I try the above commands I wonder if this is the same or different than with others are experiencing:

                            Installed packages to be REINSTALLED:
                            pfSense-boot-2.7.2 [pfSense-core]

                            Number of packages to be reinstalled: 1
                            [1/1] Reinstalling pfSense-boot-2.7.2...
                            [1/1] Extracting pfSense-boot-2.7.2: .......... done
                            Updating the EFI loader
                            install: //boot/efi/efi/boot/INS@wA0x7V: Input/output error
                            pkg-static: POST-INSTALL script failed
                            failed.


                            [2.7.1-RELEASE][root@erico.esoindustries.com]/root: df -hi /boot/efi/efi/boot/
                            Filesystem Size Used Avail Capacity iused ifree %iused Mounted on
                            /dev/gptid/9004f6cb-76ff-11eb-a980-80ee73eba629 222G 2.8G 201G 1% 53k 30M 0% /


                            [2.7.1-RELEASE][root@erico.esoindustries.com]/root: sysctl machdep.bootmethod
                            machdep.bootmethod: UEFI

                            jimpJ 1 Reply Last reply Reply Quote 0
                            • jimpJ
                              jimp Rebel Alliance Developer Netgate @eostrike
                              last edited by

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

                              This is where mine fails. Before I try the above commands I wonder if this is the same or different than with others are experiencing:

                              Yours is different. Start a new thread. Though it's probably an EFI partition from a second disk or installer media. Either way that belongs in a fresh thread, though.

                              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!

                              E 1 Reply Last reply Reply Quote 0
                              • E
                                eostrike @jimp
                                last edited by

                                @jimp thank you I just started a new thread.

                                1 Reply Last reply Reply Quote 0
                                • Sammy73S
                                  Sammy73 @jimp
                                  last edited by

                                  @jimp This worked for me too, thanks so much! ๐Ÿ˜Š

                                  1 Reply Last reply Reply Quote 0
                                  • P
                                    proger @jimp
                                    last edited by

                                    @jimp
                                    Thank you for this solution!
                                    It's work for me at 2.7.0 -> 2.7.2 upgrade

                                    1 Reply Last reply Reply Quote 0
                                    • N NickFree referenced this topic on
                                    • conbonburC
                                      conbonbur
                                      last edited by

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

                                      @jimp

                                      Hello.
                                      I am coming late but I had the same problem and @jimp's solution worked perfectly.

                                      @jimp
                                      Thank you. Merry Christmas (late) and Happy New Year.

                                      1 Reply Last reply Reply Quote 2
                                      • T
                                        tumbleweedcity @jimp
                                        last edited by

                                        @jimp Just another upvote for this fantastic stress-saving solution! ๐Ÿ‘ ๐Ÿ‘ Really appreciated, as your clear step by step instructions saved me literally hours of work having to re-install my pfSense+ edition from scratch via the lengthy process via the CE installer.

                                        Massive thanks! Upgrade to 23.09.1 completed successfully following your instructions to increase the EFI partition to 200Mb. I'd buy you a coffee/beer if I could!

                                        1 Reply Last reply Reply Quote 0
                                        • M
                                          melik2k3 @jimp
                                          last edited by

                                          @jimp ty ๐Ÿ‘

                                          1 Reply Last reply Reply Quote 0
                                          • noloaderN
                                            noloader
                                            last edited by

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

                                            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.

                                            Thank you sir!

                                            1 Reply Last reply Reply Quote 2
                                            • B blahblah referenced this topic on
                                            • First post
                                              Last post
                                            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.