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

    Odd bootup problem with pfSense 2.0

    Scheduled Pinned Locked Moved 2.0-RC Snapshot Feedback and Problems - RETIRED
    9 Posts 4 Posters 2.1k 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.
    • V
      vladk
      last edited by

      Hi there, let me explain my setup and what's happening.

      I used a USB key to install pfSense onto a USB connected hard drive. This might not be a supported configuration but I wanted to ask anyway.

      If all I have connected to the machine is my USB hard drive where pfSense sits I can't reboot the machine back into pfSense. When the mounting part happens "Trying to mount root from ufs:/dev/da0s1a" the system fails saying it can't mount and that's that.

      At first I reinstalled pfSense thinking I broke it but the same issue occurred. Then I decided to stick the installation usb key back in after reboot and sure enough the system booted. The strangest part is that I removed the key and just plugged in USB keyboard and the bootup still worked! So now to do a reboot I have to have a USB device of some sort plugged in otherwise mounting da0s1a fails.

      I am a BSD noob so this might be something trivial but is there any way for me to fix this so that I don't have to have keyboard always connected to my box?

      Thank you.

      1 Reply Last reply Reply Quote 0
      • R
        rilles
        last edited by

        I have seen this issue, I thought it was my 2003 vintage motherboard wonkiness.

        What I had to do to make my computer headless and keyboardless, is plug in 2 USB keys both formatted for BSD.  Once I did that, each time the system correctly boots to the USB and the USB key correctly mounts. I setup the BIOS to boot the correct key and both keys have pfSense 2.0 on it - I guess I can use the other one as a backup.

        I don't recall seeing this behavior with 1.2.3 - but 2.0 definitely has it.

        1 Reply Last reply Reply Quote 0
        • W
          wallabybob
          last edited by

          The USB stack in pfSense 2.0 is different from the USB stack in pfSense 1.2.3. Changed behaviour is likely.

          vladk: Do you see evidence in your startup output that FreeBSD sees your USB hard drive before it attempts to mount the root filesystem?

          There has been another thread in this forum that recently discussed what appears to be the same issue: USB drive not seenn at attempt to mount the root file system. There might be a useful suggestion or two in there.

          1 Reply Last reply Reply Quote 0
          • V
            vladk
            last edited by

            I believe it does see the hard drive just fine. That mounting part is the last part of the bootup process before pfsense starts kicking in and all the drives have been detected by that point.

            I really don't want to have a usb key or keyboard plugged in just so I can reboot pfsense :)

            1 Reply Last reply Reply Quote 0
            • W
              wallabybob
              last edited by

              @vladk:

              I believe it does see the hard drive just fine.

              Evidence?

              1 Reply Last reply Reply Quote 0
              • V
                vladk
                last edited by

                If I follow the bootup log it detects the drive just like it normally would.

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

                  Press the boot menu option that indicates it is for booting from a USB device.

                  If that works, look at http://doc.pfsense.org/index.php/Boot_Troubleshooting and follow the directions for setting kern.cam.boot_delay=10000 in loader.conf.local

                  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
                  • V
                    vladk
                    last edited by

                    I believe that did the trick, I was able to reboot with keyboard disconnected and the router booted just fine. I hope it does the same on next reboot.

                    Thank you!

                    1 Reply Last reply Reply Quote 0
                    • R
                      rilles
                      last edited by

                      Did what what suggested to the loader.conf file on the USB key and it boots fine all the time for me now.

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