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

    Compact Flash doesn't boot

    Scheduled Pinned Locked Moved Problems Installing or Upgrading pfSense Software
    16 Posts 3 Posters 6.0k 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

      Looks like you're doing everything right.
      I've never tried Roadkills image writer. Try using physdiskwrite or Win32diskimager instead.

      Steve

      1 Reply Last reply Reply Quote 0
      • GruensFroeschliG
        GruensFroeschli
        last edited by

        If you're not writing with a different image-writer, it's possible that this one cannot decompress the image on the fly.

        Try decompressing the .gz file first and then write the big .img file to the disk.

        We do what we must, because we can.

        Asking questions the smart way: http://www.catb.org/esr/faqs/smart-questions.html

        1 Reply Last reply Reply Quote 0
        • S
          schnauber
          last edited by

          First of all I already have decompressed the .gz file. I will delete the current partition and try the win32diskimage. However I believe there is some issue with my Bios setting i.e. DMA active/inactive or something like that!?

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

            I always use physdiskwriter (even though it's in German!) as it does on the fly decompression and I know it works.
            You could try disabling UDMA on your CF card in the bios. It is disabled in pfSense anyway as it sometimes causes issues.

            Steve

            1 Reply Last reply Reply Quote 0
            • S
              schnauber
              last edited by

              Hi Guys,

              I've deleted the image with Gparted and download the pfHacom 1G image because VGA support. The image was written with physdiskwrite without any errors. After select LBA for the 4GB Scandisk everything works fine. The nanoBSD booted correctly also the Web Interface seems to work without any problem but on the "shell" on the monitor screen I see some reading errors something with ad0: reading error 51. This issue appears everytime when I do some changes on the web interface and save them. Any ideas?

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

                That's not good. However I guess I might be caused by inconsistent dma settings. Are you seeing?:

                ad0: FAILURE - READ_DMA status=51 <ready,dsc,error>error=40<uncorrectable></uncorrectable></ready,dsc,error>
                

                Did you actually disable udma in the bios? If you look in /boot/loader.conf do you have these lines?

                
                hw.ata.atapi_dma="0"
                hw.ata.ata_dma="0"
                hw.ata.wc="0"
                

                Steve

                1 Reply Last reply Reply Quote 0
                • S
                  schnauber
                  last edited by

                  @stephenw10:

                  That's not good. However I guess I might be caused by inconsistent dma settings. Are you seeing?:

                  ad0: FAILURE - READ_DMA status=51 <ready,dsc,error>error=40<uncorrectable></uncorrectable></ready,dsc,error>
                  

                  Did you actually disable udma in the bios? If you look in /boot/loader.conf do you have these lines?

                  
                  hw.ata.atapi_dma="0"
                  hw.ata.ata_dma="0"
                  hw.ata.wc="0"
                  

                  Steve

                  In the BIOS I didn't find any flag with udma setting but I'll google for that tonight. Are that reading errors such a big problem? Everything on the web interface seems to work correct and also saved correct when I do any changes.

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

                    If this was a normal HD it would probably imply a UD failure. But it isn't.

                    @Hacom:

                    We remount the root filesystem as read-only, sync, noatime. The default pfSense nanobsd mounts the filesystems as write-able, sync, noatime.
                    This changes the "normal" behavior pf pfSense. Any write (update) operations require the root filesystem to be remounted as write-able by the shell command: "mount -u -ow /". After the changes, just reboot the system or execute the command: "sh /usr/local/etc/rc.d/hacom.sh" to mount the root filesystem back as read-only.
                    This is a precaution since during early testing of pfSense 2.0: both BETA5 and RC1, we have experienced major flash corruptions.

                    Do the changes you have made survive a reboot?

                    Steve

                    1 Reply Last reply Reply Quote 0
                    • S
                      schnauber
                      last edited by

                      @stephenw10:

                      If this was a normal HD it would probably imply a UD failure. But it isn't.

                      @Hacom:

                      We remount the root filesystem as read-only, sync, noatime. The default pfSense nanobsd mounts the filesystems as write-able, sync, noatime.
                      This changes the "normal" behavior pf pfSense. Any write (update) operations require the root filesystem to be remounted as write-able by the shell command: "mount -u -ow /". After the changes, just reboot the system or execute the command: "sh /usr/local/etc/rc.d/hacom.sh" to mount the root filesystem back as read-only.
                      This is a precaution since during early testing of pfSense 2.0: both BETA5 and RC1, we have experienced major flash corruptions.

                      Do the changes you have made survive a reboot?

                      Steve

                      Yes, the changes survive a reboot.

                      1 Reply Last reply Reply Quote 0
                      • S
                        schnauber
                        last edited by

                        I've deactivated the UDMA settings on my BIOS but the error message is still there if I do any changes on the webinterface:
                        ad0: failure - read status=51 error=10(nid_not_found)

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

                          What do you have in your /boot/loader.conf ?

                          Can you try a standard pfSense image?

                          1 Reply Last reply Reply Quote 0
                          • S
                            schnauber
                            last edited by

                            can you tell me, how I get access to the loader.conf please? Is this file in the root directory of pfhacom? Sorry, I am a unix dummy. I have choosen the pfhacom Image because I want VGA support.

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

                              Everyone starts some where.  :)
                              From the command line:

                              
                              [2.0-RC2][root@pfsense.fire.box]/root(1): cat /boot/loader.conf
                              hw.ata.atapi_dma="0"
                              hw.ata.ata_dma="0"
                              loader_color="NO"
                              autoboot_delay="5"
                              hw.ata.wc="0"
                              kern.ipc.nmbclusters="0"
                              beastie_disable="YES"
                              vm.kmem_size="435544320"
                              vm.kmem_size_max="535544320"
                              
                              

                              Alternatively you can open it from the file editor in the GUI: Diagnostics -> Edit File
                              Just don't go making random changes!

                              Steve

                              1 Reply Last reply Reply Quote 0
                              • S
                                schnauber
                                last edited by

                                I have exactly the same settings below!

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

                                  Hmmm,
                                  I'm out of ideas at this point.  :(
                                  You could try reflashing the card. You could try a different CF card. You could try a different image.

                                  Steve

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