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

    Boot is interrupted for a shell prompt

    Scheduled Pinned Locked Moved General pfSense Questions
    14 Posts 3 Posters 2.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.
    • stephenw10S
      stephenw10 Netgate Administrator
      last edited by

      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 Reply Quote 1
      • J
        jamullinstx @stephenw10
        last edited by

        @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
        • stephenw10S
          stephenw10 Netgate Administrator
          last edited by

          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 Reply Quote 0
          • J
            jamullinstx @stephenw10
            last edited by

            @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

            GertjanG 1 Reply Last reply Reply Quote 0
            • stephenw10S
              stephenw10 Netgate Administrator
              last edited by

              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
              • GertjanG
                Gertjan @jamullinstx
                last edited by

                @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 Reply Quote 0
                • J
                  jamullinstx @Gertjan
                  last edited by

                  @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
                  • stephenw10S
                    stephenw10 Netgate Administrator
                    last edited by

                    Does it have a serial console you can test against?

                    J 2 Replies Last reply Reply Quote 0
                    • J
                      jamullinstx @stephenw10
                      last edited by jamullinstx

                      @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

                        @stephenw10 @Gertjan

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

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