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

    Upgrade from 2.2.6 to 2.3 Release fails - can't find kernel, can't mount filesys

    Scheduled Pinned Locked Moved Problems Installing or Upgrading pfSense Software
    31 Posts 10 Posters 11.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.
    • B Offline
      BlackDragon381
      last edited by

      @jimp:

      Great! Once you have a correct /etc/fstab that works after rebooting, you can run /usr/local/sbin/ufslabels.sh to permanently adjust fstab to use UFS labels rather than the device name

      How can I edit fstab?

      Now I have in /etc/fstab
      /dev/vtbd0s1a for /
      /dev/vtbd0s1b for swap
      and in /dev/
      ad0s1a
      ad0s1
      and no da0s1a

      And how to run /usr/local/sbin/ufslabels.sh?

      1.png
      1.png_thumb
      2.png
      2.png_thumb
      3.png
      3.png_thumb
      4.png
      4.png_thumb

      1 Reply Last reply Reply Quote 0
      • P Offline
        paulsnoop
        last edited by

        @Boolah:

        Actually, your second point in the above post (https://forum.pfsense.org/index.php?topic=109802.msg612250#msg612250) solves the issue.  pfSense v2.3 was trying to load the root from /dev/ada0s1a, when it should have been using /dev/da0s1a.  Entering "ufs:/dev/da0s1a" at the mountroot> prompt boots v2.3 correctly.  After the booting, /etc/fstab shows it's trying to mount the device directly, not by ufs id.  Editing the fstab and rebooting solves the issue and allows the machine to reboot in the future without issue.

        Also, the two posts linked in the Hyper-V thread both say the issue is with Hyper-V 2008 R2 and is fixed in Hyper-V 2012.  I'm running Hyper-V 2012 R2, so don't believe they're related.

        Just to confirm I had exactly the same problem on my HyperV 2012R2 pfSense VM. It's also a pretty old install so was using device names rather than the UFS label.
        After a brief panic I got round it in exactly the same way, will take a look at ufslabels.sh later.

        1 Reply Last reply Reply Quote 0
        • B Offline
          BlackDragon381
          last edited by

          @BlackDragon381:

          How can I edit fstab?

          Somebody can help me?
          There is no editor in this shell!

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

            vi and ee both exist in the shell, and both can be used.

            If they won't run, try using the full path: /usr/bin/vi or /usr/bin/ee

            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 0
            • ? This user is from outside of this forum
              Guest
              last edited by

              Mounting from ufs:/dev/ada0xxx failed with error 19
              mountroot>

              IS this a 1 GB CF Card? Then you should go with a 2 GB or 4 GB since the version 2.3 is no more for 1 GB
              CF Cards!

              a ? did only show the cd rom…

              And on the other side with 1 GB RAM you could be easily run out of RAM space or in other words
              1 GB RAM is perhaps to small! Insert as a minimum 2 GB or better 4 GB if needed and pending on the
              the installed packets or used services.

              Now I am trying to reinstall 2.2.6 again - seems to work fine, now…

              Could be a short work around until the version 2.3.1 is out, but then perhaps read once more the lines above
              with 1 GB CF Card and 1 GB RAM it would be perhaps underpowered or not right sorted.

              No Idea what 2.3 does there…?

              Is this a 32Bit or 64Bit install?

              After dozens of flawless updates, now this..:-(

              There will be each version one day where the user or customer should be thinking on to do something
              by its own intense because his hardware could be outdated at one day. So if you are using a 1 GB CF card
              change it against a 2 GB or 4 GB model, the 1 GB CF Cards are to small, and if then all other things must be
              running in the RAM als the 1 GB of RAM is to small too.

              1 Reply Last reply Reply Quote 0
              • B Offline
                BlackDragon381
                last edited by

                @jimp:

                vi and ee both exist in the shell, and both can be used.

                If they won't run, try using the full path: /usr/bin/vi or /usr/bin/ee

                How do I use the editor to edit the file /etc/fstab?
                I can't open vi or ee, see attachment!

                editors.png
                editors.png_thumb

                1 Reply Last reply Reply Quote 0
                • D Offline
                  divsys
                  last edited by

                  Sounds almost like you don't have vi installed on your box.
                  It should come in from a standard install.

                  What happens if you type:

                  ls -al /usr/bin/vi

                  At a command prompt?

                  Are you running a bare metal or VM install?
                  How did you load pfSense?

                  -jfp

                  1 Reply Last reply Reply Quote 0
                  • B Offline
                    BlackDragon381
                    last edited by

                    @divsys:

                    Sounds almost like you don't have vi installed on your box.
                    It should come in from a standard install.

                    What happens if you type:

                    ls -al /usr/bin/vi

                    At a command prompt?

                    Are you running a bare metal or VM install?
                    How did you load pfSense?

                    illegal option – a

                    My pfSense broken after upgrading to 2.3 via gui.
                    System can't find kernel (see attachment).
                    PfSense installed on Proxmox (kvm).

                    vi.png
                    vi.png_thumb

                    1 Reply Last reply Reply Quote 0
                    • K Offline
                      kpa
                      last edited by

                      That's the boot loader prompt, not the single user mode shell.

                      1 Reply Last reply Reply Quote 0
                      • D Offline
                        divsys
                        last edited by

                        Sorry, I looked back through the thread and realized your not getting a properly mounted system drive, but you're getting farther than the OP in this thread.

                        Normally you need to mount the required disk and prove that the pfSense install is up and running before making any of those fstab changes.

                        As far as the "ls" command, try it without the "-al" -> "ls /usr/bin/vi".

                        You may be able to recover your install, but it's probably far easier just to reinstall and reload a config backup.

                        -jfp

                        1 Reply Last reply Reply Quote 0
                        • B Offline
                          BlackDragon381
                          last edited by

                          @kpa:

                          That's the boot loader prompt, not the single user mode shell.

                          How enter to user mode shell?

                          1 Reply Last reply Reply Quote 0
                          • K Offline
                            kpa
                            last edited by

                            @BlackDragon381:

                            @kpa:

                            That's the boot loader prompt, not the single user mode shell.

                            How enter to user mode shell?

                            https://doc.pfsense.org/index.php/Locked_out_of_the_WebGUI

                            That is for a different problem but it documents how to get to the single user mode shell.

                            1 Reply Last reply Reply Quote 0
                            • S Offline
                              sunsetquest
                              last edited by

                              This worked for me: http://blog.stefcho.eu/upgrade-from-pfsense-2-1-5-to-2-2-on-hyper-v/

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