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

Mounting failed with error 5

Scheduled Pinned Locked Moved General pfSense Questions
13 Posts 4 Posters 2.7k 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.
  • S
    signalz
    last edited by Nov 16, 2023, 12:48 AM

    My pfSense 2.7 VM suddenly won't boot. Last shut down was clean, though the host (Ubuntu 22.04) has crashed with the pfSense VM running before. I never noticed any apparent problems because of that. The hard drive the disk image is on doesn't seem to be having problems either.

    What do I do now? Is this recoverable? I'm having a hard time getting anywhere is this shell.

    VirtualBox_testament_16_11_2023_00_39_34.png

    1 Reply Last reply Reply Quote 0
    • S
      stephenw10 Netgate Administrator
      last edited by Nov 16, 2023, 1:24 AM

      I would try to boot into single user mode and run a ZFS scrub:
      https://docs.netgate.com/pfsense/en/latest/troubleshooting/filesystem-check.html#troubleshooting-disk-and-filesystem-issues

      Steve

      1 Reply Last reply Reply Quote 0
      • S
        signalz
        last edited by signalz Nov 16, 2023, 1:42 AM Nov 16, 2023, 1:40 AM

        Is there something else going on, or am I just very bad at FreeBSD? What out of anything on the screen is the pool name?

        VirtualBox_testament_16_11_2023_01_42_39.png

        1 Reply Last reply Reply Quote 0
        • S
          stephenw10 Netgate Administrator
          last edited by Nov 16, 2023, 1:56 AM

          Run: zpool status to see it. By default it's pfSense.

          1 Reply Last reply Reply Quote 0
          • S
            stephenw10 Netgate Administrator
            last edited by Nov 16, 2023, 1:59 AM

            For example:

            23.09-RELEASE][admin@5100.stevew.lan]/root: zpool status
              pool: pfSense
             state: ONLINE
            status: Some supported and requested features are not enabled on the pool.
            	The pool can still be used, but some features are unavailable.
            action: Enable all features using 'zpool upgrade'. Once this is done,
            	the pool may no longer be accessible by software that does not support
            	the features. See zpool-features(7) for details.
            config:
            
            	NAME        STATE     READ WRITE CKSUM
            	pfSense     ONLINE       0     0     0
            	  ada0p3    ONLINE       0     0     0
            
            errors: No known data errors
            [23.09-RELEASE][admin@5100.stevew.lan]/root: zpool scrub pfSense
            [23.09-RELEASE][admin@5100.stevew.lan]/root: zpool status
              pool: pfSense
             state: ONLINE
            status: Some supported and requested features are not enabled on the pool.
            	The pool can still be used, but some features are unavailable.
            action: Enable all features using 'zpool upgrade'. Once this is done,
            	the pool may no longer be accessible by software that does not support
            	the features. See zpool-features(7) for details.
              scan: scrub in progress since Thu Nov 16 01:58:20 2023
            	5.20G / 12.1G scanned at 1.73G/s, 0B / 12.1G issued
            	0B repaired, 0.00% done, no estimated completion time
            config:
            
            	NAME        STATE     READ WRITE CKSUM
            	pfSense     ONLINE       0     0     0
            	  ada0p3    ONLINE       0     0     0
            
            errors: No known data errors
            
            1 Reply Last reply Reply Quote 0
            • S
              signalz
              last edited by Nov 16, 2023, 2:07 AM

              Both zpool status and zpool scrub pfSense return Invalid file system specification

              1 Reply Last reply Reply Quote 0
              • S
                stephenw10 Netgate Administrator
                last edited by Nov 16, 2023, 11:35 AM

                Hmm, probably going to be easier to just reinstall but you could try geom part list just to make sure it sees the partition at all.
                Very unusual to a ZFS failure like that. I'd have to assume it's some filesystem issue at the hypervisor level.

                1 Reply Last reply Reply Quote 0
                • S
                  signalz
                  last edited by Nov 17, 2023, 2:01 AM

                  Thanks for your help. geom part list says the same thing. I'll reinstall.

                  G 1 Reply Last reply 10 days ago Reply Quote 0
                  • G
                    GlennNZ @signalz
                    last edited by 10 days ago

                    Hi

                    I suffered pretty much the same issue,and given this is first/second google hit thought would update solution for me here in case it helps others.

                    Pfsense Plus power cut (backup exhausted) bad shutdown.
                    Then failed to start.
                    Root mount waiting for: CAM (lots)
                    Then:
                    Mounting from zfs:Pfsense/ROOT/Default failed with error 5
                    Error 5, as per screen shots here.

                    Any zpool command gave error - as above.
                    “Invalid file system specification”

                    I pulled PC, pulled drive, booted from USB Pfsense stick.
                    Pulled hair.
                    Could not seem to get to bottom of.
                    Was going to reinstall Pfense (not plus) from USB stick - no drive to be found other than USB (?). Was going to replace drive altogether.

                    Then discovered one post, in a forum, somewhere, which I will link to if ever can find again, talking about BIOS drive settings changed in power cut.

                    Solution:
                    Somehow power surge/power cut had changed BIOS to RAID for drives from AHCI. (interestingly did so for another PC I discovered later - Pfsense was first job - this was Windows PC and failed to Boot altogether)
                    Oddly here though - Pfsense partially booted - as above so for drive was readable for parts…. (Hence hadn’t considered drive issue)

                    Solution:
                    Check BIOS Settings
                    Hard Drives - Selection - AHCI. (not RAID which it had become somehow)

                    Hopefully this helps someone else in the future.

                    G 1 Reply Last reply 9 days ago Reply Quote 0
                    • G GlennNZ referenced this topic 10 days ago
                    • G
                      Gertjan @GlennNZ
                      last edited by 9 days ago

                      @GlennNZ said in Mounting failed with error 5:

                      Somehow power surge/power cut had changed BIOS

                      More common : the CMOS battery has gone for a holiday, or is about to die.
                      In such a case, BIOS defaults are load and this will surely change the boot order, boot designation etc. The result will always be the same : system can't boot anymore.
                      Solution : get a new battery.

                      No "help me" PM's please. Use the forum, the community will thank you.
                      Edit : and where are the logs ??

                      G 1 Reply Last reply 9 days ago Reply Quote 0
                      • G
                        GlennNZ @Gertjan
                        last edited by 9 days ago

                        @Gertjan
                        Thats a great suggestion that CMOS battery died and defaults now in play.
                        Will check it out/replace batteries.

                        The purpose of the post was to point out that this error messaging and “partial” startup can happen with this issue. (AHCI vs RAID setup) Even though 1/2 starts Pfsense boots and get this messaging - problem lies elsewhere. (BIOS as here)

                        I suspect in this old case the same issue applied. Instinctively you would think that any boot would fail completely (such as with Windows with same issue), instead of the above messaging.

                        G 1 Reply Last reply 9 days ago Reply Quote 0
                        • G
                          Gertjan @GlennNZ
                          last edited by 9 days ago

                          @GlennNZ

                          When the way how the system should access the 'disk' changes from AHCI (== 'normal SATA access') to RAID (= probably some software raid solution) then partitions, the file system need to be changed also from the ground up.
                          The BIOS won't be able to 'see' or even 'know' if the partitions contains a "pfSense OS", as it would be able to read anything from the boot partition. Imho, it wouldn't even be possible to boot half way. When the access method is set to RAID, the BIOS is going to search for a hardware RAID solution - an extension card, or a software solution from 'from somewhere'. It wouldn't be able to read the 'RAID' drive (which isn't a RAID drive here) by itself.
                          Maybe the BIOS of your system somewhat smarter ?

                          @GlennNZ said in Mounting failed with error 5:

                          Instinctively you would think that any boot would fail completely (such as with Windows with same issue)

                          Most of my PCs have that AHCI or RAID switch, and I can confirm ... 👍
                          A switch means, afaik, a complete re install.

                          No "help me" PM's please. Use the forum, the community will thank you.
                          Edit : and where are the logs ??

                          G 1 Reply Last reply 9 days ago Reply Quote 0
                          • G
                            GlennNZ @Gertjan
                            last edited by GlennNZ 8 days ago 9 days ago

                            @Gertjan

                            I have just done it and lived through it.

                            The messaging at the top (from the originator) is the same as mine with an Intel system set incorrectly to RAID access for single HDD, with a Pfsense install. (install of the system was with AHCI)

                            Invalid file system configuration for every Zpool based command.

                            Changing BIOS back to the correct setting (AHCI) resolved this startup issue, and the system continued to boot as usual.

                            So, whilst I agree, you would think such a change would lead to a completely non bootable system (and different trouble shooting) I can 100% confirm that it does not and lead you down a Pfsense install troubleshooting path (when issue is nothing to do with Pfsense)

                            Glenn

                            1 Reply Last reply Reply Quote 1
                            • First post
                              Last post
                            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                              This community forum collects and processes your personal information.
                              consent.not_received