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

Console Re-Install on Netgate SG-1100 Fails with Bad Device USB 0

Scheduled Pinned Locked Moved Problems Installing or Upgrading pfSense Software
17 Posts 8 Posters 2.5k 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.
  • R
    rickster439489
    last edited by Apr 28, 2023, 11:26 PM

    I’ve got a Netgate SG-1100 (with the small UFS partition) I am attempting to install pfSense 23.01 on. I’ve downloaded the 23.01 image & following the procedure for reinstalling pfSense. I am a Linux nerd so I used DD prep the new media (usb3) & write the image to the drive. For whatever reason, on reboot of the router, I get bad device (USB0). I’ve also tried the usb reset, which did not make a difference. I tried an older thumb drive, & still see the same problem. At this point, I’m at a loss for words as to what is happening. I understand the recommendations are to use etcher, but I just assumed DD & gzip would work just as adequately. I’m also wondering if it was a bad download, even though the sha sum looked. Ok. Thanks in advance for any troubleshooting suggestions.
    -Rick

    S 1 Reply Last reply Apr 28, 2023, 11:34 PM Reply Quote 0
    • S
      SteveITS Galactic Empire @rickster439489
      last edited by Apr 28, 2023, 11:34 PM

      @rickster439489 one thing that caught me with etcher was the 2100 image file is well under 2GB IIRC but it needed a > 4 GB stick to write the file. It would error out for no apparent reason. Not quite what you’re saying but make sure it’s writing the image. The process just copies it from stick to emmc.

      Pre-2.7.2/23.09: Only install packages for your version, or risk breaking it. Select your branch in System/Update/Update Settings.
      When upgrading, allow 10-15 minutes to restart, or more depending on packages and device speed.
      Upvote 👍 helpful posts!

      1 Reply Last reply Reply Quote 0
      • M
        mer
        last edited by Apr 29, 2023, 7:20 AM

        The image, is it compressed? I think last one I downloaded was and I will admit to dd'ing without uncompressing the first time and got an error like that.

        I'm not saying you did that, I'm saying I spaced out once and got the same error.

        S 1 Reply Last reply Apr 29, 2023, 7:29 AM Reply Quote 0
        • S
          SteveITS Galactic Empire @mer
          last edited by Apr 29, 2023, 7:29 AM

          @mer The download definitely is, it’s a .gz file. Windows etcher will write that without extracting but it doesn’t calculate the space needed correctly. It just fails. The 2100 image needed an 8 GB stick…about 4.5 IIRC.

          Pre-2.7.2/23.09: Only install packages for your version, or risk breaking it. Select your branch in System/Update/Update Settings.
          When upgrading, allow 10-15 minutes to restart, or more depending on packages and device speed.
          Upvote 👍 helpful posts!

          M 1 Reply Last reply Apr 29, 2023, 9:58 AM Reply Quote 0
          • M
            mer @SteveITS
            last edited by Apr 29, 2023, 9:58 AM

            @steveits thanks I thought the download was, I spaced out and dd'd the .gz file directly to the USB stick and got the same error. Only did that once.

            1 Reply Last reply Reply Quote 0
            • R
              rickster439489
              last edited by Apr 29, 2023, 3:09 PM

              Thank you all. I thought I used gzip to extract the image, but now I’m thinking I could have spaced on that. One thing I wonder about is the file system on my USB drive. I formatted it using vfat (fat32) from my Linux Mint box, & wondering if that could be the culprit. If I understood the documentation properly, using fat32 I could create a conf directory & put a previous backup there as config.xml. My configuration is relatively simple & seems like I could restore the previous configuration using the gui, once everything is back up & running. Any suggestions on formatting the USB drive & config restore would be appreciated.
              Thanks,
              -Rick

              S 1 Reply Last reply Apr 29, 2023, 4:56 PM Reply Quote 0
              • S
                SteveITS Galactic Empire @rickster439489
                last edited by Apr 29, 2023, 4:56 PM

                @rickster439489 I think you’re making it more complex doing it manually. Etcher will write the image with partitions for you.
                https://docs.netgate.com/pfsense/en/latest/solutions/sg-1100/reinstall-pfsense.html
                -> https://docs.netgate.com/reference/create-flash-media.html

                Pre-2.7.2/23.09: Only install packages for your version, or risk breaking it. Select your branch in System/Update/Update Settings.
                When upgrading, allow 10-15 minutes to restart, or more depending on packages and device speed.
                Upvote 👍 helpful posts!

                R 1 Reply Last reply Apr 29, 2023, 9:02 PM Reply Quote 0
                • R
                  rickster439489 @SteveITS
                  last edited by Apr 29, 2023, 9:02 PM

                  @steveits
                  I give it again today using my Mac. For a sanity check, I checked the shasum again of the original image & it matches. Also, downloaded etcher to create the image, & used new media again this time. It's a 128GB drive, so space should not be a problem. Connected up my USB cable to the console port of the Netgate, & proceeded to get the same message again:
                  Marvell>> run usbrecovery
                  switch to partitions #0, OK
                  mmc1(part 0) is current device
                  MMC erase: dev # 1, block # 0, count 4194304 ... 4194304 blocks erased: OK
                  resetting USB...
                  USB0: Register 2000104 NbrPorts 2
                  Starting the controller
                  USB XHCI 1.00
                  USB1: USB EHCI 1.00
                  scanning bus 0 for devices... 1 USB Device(s) found
                  scanning bus 1 for devices... 1 USB Device(s) found
                  scanning usb for storage devices... 0 Storage Device(s) found
                  ** Bad device usb 0 **
                  I'm out of ideas completely now. & obviously bummed I can't get this to work. I really wonder if I'm doing something stupid I'm totally overlooking. Any words of wisdom would be appreciated.
                  Thanks,
                  -Rick

                  S E 2 Replies Last reply Apr 29, 2023, 9:54 PM Reply Quote 0
                  • S
                    SteveITS Galactic Empire @rickster439489
                    last edited by Apr 29, 2023, 9:54 PM

                    @rickster439489 said in Console Re-Install on Netgate SG-1100 Fails with Bad Device USB 0:

                    ** Bad device usb 0 **

                    per https://docs.netgate.com/pfsense/en/latest/solutions/sg-1000/faq.html

                    that is "...normal when the boot environment supports booting from the USB OTG port, but there is no bootable media connected to the OTG port."

                    Maybe it doesn't like the USB stick? 128GB too big? Perhaps @stephenw10 may have insight.

                    Pre-2.7.2/23.09: Only install packages for your version, or risk breaking it. Select your branch in System/Update/Update Settings.
                    When upgrading, allow 10-15 minutes to restart, or more depending on packages and device speed.
                    Upvote 👍 helpful posts!

                    1 Reply Last reply Reply Quote 0
                    • E
                      endotronic @rickster439489
                      last edited by Apr 30, 2023, 6:38 AM

                      @rickster439489 I just hit this on my SG-3100, and I found that before typing "run recovery" at the prompt, I needed to run "usb reset" until my USB device was actually found (turned out to be twice). After that I had no issues. Hope this works for you too.

                      R 1 Reply Last reply Apr 30, 2023, 3:29 PM Reply Quote 0
                      • R
                        rickster439489 @endotronic
                        last edited by Apr 30, 2023, 3:29 PM

                        @endotronic
                        Thanks for the suggestion. I tried it a half dozen times or so, & did not get any different results. What I find interesting, is the commands identify my USB drive, but not the storage device. I'm wondering if the device not being found is referencing storage on the Netgate itself.
                        Marvell>> usb reset
                        resetting USB...
                        USB0: Register 2000104 NbrPorts 2
                        Starting the controller
                        USB XHCI 1.00
                        USB1: USB EHCI 1.00
                        scanning bus 0 for devices... 1 USB Device(s) found
                        scanning bus 1 for devices... 1 USB Device(s) found
                        scanning usb for storage devices... 0 Storage Device(s) found
                        Another thing I noticed is the USB drive configured by Etcher contains four files that don't seem a little odd. If I view them in a bash session on my mac this is what I see:
                        rick-MacBook-Pro:~ rick$ ls -lahrt /Volumes/DTBFAT0/
                        total 127
                        -rwxrwxrwx 1 rick staff 13K Feb 10 20:11 armada-3720-sg2100.dtb
                        -rwxrwxrwx 1 rick staff 18K Feb 10 20:11 armada-3720-sg1100.dtb
                        -rwxrwxrwx 1 rick staff 13K Feb 10 20:11 armada-3720-netgate-2100.dtb
                        -rwxrwxrwx 1 rick staff 18K Feb 10 20:11 armada-3720-netgate-1100.dtb
                        drwxrwxrwx@ 1 rick staff 1.0K Apr 30 10:58 .
                        drwxr-xr-x 4 root wheel 128B Apr 30 10:58 ..
                        drwxrwxrwx 1 rick staff 512B Apr 30 10:58 .fseventsd
                        This seems to be really odd, & not what I would expect for firmware. Can anyone please validate those are the right files & sizes I should be seeing?
                        Thanks for any suggestions,
                        -Rick

                        R R 2 Replies Last reply Apr 30, 2023, 3:45 PM Reply Quote 0
                        • R
                          rickster439489 @rickster439489
                          last edited by Apr 30, 2023, 3:45 PM

                          @rickster439489
                          One last observation, if I look at the original downloaded firmware image using the gunzip, here is what I see:
                          rick-MacBook-Pro:pfSense rick$ gunzip -lv pfSense-plus-compat-recovery-23.01-RELEASE-aarch64.img.gz
                          method crc date time compressed uncompressed ratio uncompressed_name
                          defla 41b432cd Apr 2 18:02 1816266884 1073741824 -69.2% pfSense-plus-compat-recovery-23.01-RELEASE-aarch64.img

                          It's a stupid observation, but this is very different file contents from what I see on the USB drive itself. Again, a reality check on the files would be really helpful.
                          Thanks,
                          -Rick

                          1 Reply Last reply Reply Quote 0
                          • R
                            rcoleman-netgate Netgate @rickster439489
                            last edited by Apr 30, 2023, 4:11 PM

                            @rickster439489 said in Console Re-Install on Netgate SG-1100 Fails with Bad Device USB 0:

                            scanning bus 0 for devices... 1 USB Device(s) found
                            scanning bus 1 for devices... 1 USB Device(s) found
                            scanning usb for storage devices... 0 Storage Device(s) found

                            When you see this do "usb reset" until it shows. If it fails multiple times then try the other port. If it fails there try another flash drive.

                            Ryan
                            Repeat, after me: MESH IS THE DEVIL! MESH IS THE DEVIL!
                            Requesting firmware for your Netgate device? https://go.netgate.com
                            Switching: Mikrotik, Netgear, Extreme
                            Wireless: Aruba, Ubiquiti

                            R 1 Reply Last reply Apr 30, 2023, 4:12 PM Reply Quote 0
                            • R
                              rcoleman-netgate Netgate @rcoleman-netgate
                              last edited by Apr 30, 2023, 4:12 PM

                              @rcoleman-netgate If you keep having issues reply to your email that the link came via and TAC will help.

                              Ryan
                              Repeat, after me: MESH IS THE DEVIL! MESH IS THE DEVIL!
                              Requesting firmware for your Netgate device? https://go.netgate.com
                              Switching: Mikrotik, Netgear, Extreme
                              Wireless: Aruba, Ubiquiti

                              1 Reply Last reply Reply Quote 0
                              • jimpJ
                                jimp Rebel Alliance Developer Netgate
                                last edited by May 1, 2023, 3:44 PM

                                If it doesn't find the storage device in u-boot then it doesn't like the drive for one reason or another. I've got a couple drives here that work in some but not all of my lab devices, it varies a bit by size make/model, USB 2 vs 3 and so on. If you have a USB 2.0 8-16GB drive or so that's probably your best bet for compatibility, but that isn't a definite rule.

                                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
                                • F
                                  fredu
                                  last edited by Aug 23, 2023, 8:26 AM

                                  I know this is an old thread, but In the interest of closure, I just had exactly this problem.
                                  I was using a flashed uSD card - I tried many, but settled on a relatively old one - Flash with either Balena Etcher, or the Raspberry Pi Imager

                                  My problem: The uSD to USB adapter. I was using a relatively new USB3 one (Blue on the inside) ... It doesn't like those for some reason. Get your hands on an older USB2 adapter, that isn't blue
                                  For reference, I plugged it into the USB socket on the left, NOT the SS Socket on the right. This worked.

                                  1 Reply Last reply Reply Quote 0
                                  • stephenw10S
                                    stephenw10 Netgate Administrator
                                    last edited by Aug 23, 2023, 11:29 AM

                                    Yes, I have found that forcing a USB3 flash device to use USB2 often allows it to work. Additionally the opposite is often true. If a USB2 device isn't recognised try moving that to the USB3 port.

                                    1 Reply Last reply Reply Quote 0
                                    • 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