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

Boot is interrupted for a shell prompt

General pfSense Questions
3
14
2.2k
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
    stephenw10 Netgate Administrator
    last edited by Dec 6, 2021, 1:52 PM

    Indeed that should not happen and sounds like a config issue.

    I assume it booted correctly immediately after the install? And rebooted OK before you started configuring it?

    Can we see exactly where is stops in the boot?

    Steve

    1 Reply Last reply Reply Quote 0
    • J
      jamullinstx
      last edited by Dec 6, 2021, 5:16 PM

      I've uploaded the dmesg.boot file and a couple of images that are photo shots of the console during boot.

      dmesg.boot.txt

      🔒 Log in to view

      🔒 Log in to view

      As I said in the original post, if I enter the default shell, then exit, the boot proceeds normally. I'm able to reach the Menu Console and login to the webConfigurator. Everything seems normal at that point.

      I notice the NCQ_TRIM_BROKEN message just prior to the shell path request. There is documentation on the web about such an error for Crucial devices on the FreeBSD forums, but they are from June 2016 and have been patched in future releases of FreeBSD. Not sure if that may be contributing to the problem, or not.

      Anyway, if I run a backup then reinstall. Can I recover all of my configuration work to date, assuming the issue resolves, or is all lost?

      Thanks for any assistance.

      1 Reply Last reply Reply Quote 0
      • S
        stephenw10 Netgate Administrator
        last edited by Dec 6, 2021, 6:45 PM

        Ah, OK. It looks like it's detecting ada0 after it's trying to mount root for some reason. I assume you are booting from ada0? It usually stops at the 'mountroot>' prompt when that happens but I'd still try this:
        https://docs.netgate.com/pfsense/en/latest/troubleshooting/boot-issues.html#booting-from-usb

        Steve

        J 1 Reply Last reply Dec 6, 2021, 6:57 PM Reply Quote 1
        • J
          jamullinstx @stephenw10
          last edited by Dec 6, 2021, 6:57 PM

          @stephenw10 Yes, I'm booting from ada0. Just to be clear, you're suggesting inserting the delay to allow the loader to detect ada0 before attempting to mount /root?

          1 Reply Last reply Reply Quote 0
          • S
            stephenw10 Netgate Administrator
            last edited by Dec 6, 2021, 7:08 PM

            Yes, exactly. Although reviewing that here it may not be the issue. A good boot can also show that:

            Trying to mount root from ufs:/dev/ufsid/618d608b12143b64 [rw,noatime]...
            Root mount waiting for: CAM usbus0
            uhub0: 8 ports with 8 removable, self powered
            ugen0.2: <FTDI FT232R USB UART> at usbus0
            Root mount waiting for: CAM usbus0
            uftdi0 on uhub0
            uftdi0: <FT232R USB UART> on usbus0
            ugen0.3: <Silicon Labs CP2104 USB to UART Bridge Controller> at usbus0
            uslcom0 on uhub0
            uslcom0: <CP2104 USB to UART Bridge Controller> on usbus0
            Root mount waiting for: CAM
            Root mount waiting for: CAM
            Root mount waiting for: CAM
            Root mount waiting for: CAM
            Root mount waiting for: CAM
            Root mount waiting for: CAM
            Root mount waiting for: CAM
            ses0 at ahciem0 bus 0 scbus1 target 0 lun 0
            ses0: <AHCI SGPIO Enclosure 2.00 0001> SEMB S-E-S 2.00 device
            ses0: SEMB SES Device
            ses1 at ahciem1 bus 0 scbus3 target 0 lun 0
            ses1: <AHCI SGPIO Enclosure 2.00 0001> SEMB S-E-S 2.00 device
            ses1: SEMB SES Device
            ses0: pass0 in 'Slot 00', SATA Slot: scbus0 target 0
            ada0 at ahcich0 bus 0 scbus0 target 0 lun 0
            ada0: <NT-32 1.095.06> ACS-2 ATA SATA 3.x device
            ada0: Serial Number 987032300377
            ada0: 600.000MB/s transfers (SATA 3.x, UDMA5, PIO 512bytes)
            ada0: Command Queueing enabled
            ada0: 30533MB (62533296 512 byte sectors)
            mountroot: waiting for device /dev/ufsid/618d608b12143b64...
            Dual Console: Serial Primary, Video Secondary
            Configuring crash dumps...
            Using /dev/label/swap0 for dump device.
            /dev/ufsid/618d608b12143b64: FILE SYSTEM CLEAN; SKIPPING CHECKS
            

            The dmesg output doesn't show everything. Check the system logs, does it report the console type as shown in my log above?
            It could be mounting root correctly and then crashing out on something else that isn't logged there. What do you see on the console after exiting from the shell?
            You could have serial console set as primary in which case you might simply not be seeing the issue at the video console. Check vid console is primary in Sys > Adv > Admin Access.

            Steve

            J 1 Reply Last reply Dec 6, 2021, 8:31 PM Reply Quote 0
            • J
              jamullinstx @stephenw10
              last edited by Dec 6, 2021, 8:31 PM

              @stephenw10
              The primary console is VGA. I'm connected to the monitor via HDMI cable. The only other choice is Serial.

              I'm uploading the boot.conf & boot.conf.local files as text. You can see that the delay was already present in the boot.conf. It doesn't seem to have any effect regarding the problem with the boot interrupt to a shell. I get the same behavior.

              I've also attached the system.log file as text. It's organized with newest messages on top. Pay no attention to the time stamps, as I'm not connected to the ISP via the WAN, so there is no way for the pfSense box to get a network time. I don't see anything noteworthy there, but I'm not expert.

              loader.conf.txt

              loader.conf.local.txt

              system.log.txt

              G 1 Reply Last reply Dec 7, 2021, 9:13 AM Reply Quote 0
              • S
                stephenw10 Netgate Administrator
                last edited by Dec 6, 2021, 9:21 PM

                Hmm, nothing too terrible shown there.

                If you set the WAN as static instead does it boot correctly?

                Steve

                1 Reply Last reply Reply Quote 0
                • G
                  Gertjan @jamullinstx
                  last edited by Dec 7, 2021, 9:13 AM

                  @jamullinstx

                  Can you test with another, more classic, non SSD drive ?
                  Can you remove any non essential USB devices ?
                  ( and even disable all kind of devices in the bios that are not needed by pfSense like sound support etc ? )

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

                  J 1 Reply Last reply Dec 7, 2021, 9:22 PM Reply Quote 0
                  • J
                    jamullinstx @Gertjan
                    last edited by Dec 7, 2021, 9:22 PM

                    @gertjan
                    No, the only USB device connected is a fob for a wireless keyboard. I tried booting without the fob inserted with no difference in outcome.

                    There are no settings in the BIOS for superfluous devices. It's a barebones, 4-USB, 4-NIC mini-PC whose primary purpose is to run pfSense.

                    I'm going to make 1 last backup before trying to set a static WAN address. If that doesn't work, I'll try a reinstall and restore from backup.

                    1 Reply Last reply Reply Quote 0
                    • S
                      stephenw10 Netgate Administrator
                      last edited by Dec 7, 2021, 9:37 PM

                      Does it have a serial console you can test against?

                      J 2 Replies Last reply Dec 7, 2021, 9:56 PM Reply Quote 0
                      • J
                        jamullinstx @stephenw10
                        last edited by jamullinstx Dec 7, 2021, 10:18 PM Dec 7, 2021, 9:56 PM

                        @stephenw10 @Gertjan
                        Yes, there is a serial port on the box, but, alas, there isn't a serial output on my laptop. 😁

                        I think I got the problem resolved. I reinstalled and changed the installation option from ZFS to UFS/UEFI. The boot cycle completes without interruption. I'm going to try loading a backup I took just before the reinstall. If that doesn't work, well, I'll have to redo the configs.

                        And, thank you both for all the time you devoted to this issue. It's much appreciated.

                        1 Reply Last reply Reply Quote 0
                        • J
                          jamullinstx @stephenw10
                          last edited by Dec 7, 2021, 10:25 PM

                          @stephenw10 @Gertjan

                          Successful restore from backup! Thanks, again, for your help.

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