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

    Root Mount Error

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

      Have you read this: http://forum.pfsense.org/index.php/topic,46119.0.html

      pfSense (or at least FreeBSD 8) has a problem with DMA access on compact flash cards. Often resulting in errors similar to the ones you are seeing.
      Try disabling dma in the bios or using a slower card.

      Steve

      1 Reply Last reply Reply Quote 0
      • J
        jaredadams
        last edited by

        I believe I came across that thread before.  This is an old project.  I'll retry the DMA process though that thread said it didnt work.  dLocker said he got it working but gave absolutely no information on how.  Hate that!

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

          He's an active member, try sending him a pm.

          If I had to guess what he did I'd say add

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

          to /boot/loader.conf.local

          Steve

          1 Reply Last reply Reply Quote 0
          • J
            jaredadams
            last edited by

            Therein lies a problem.  How do I edit that file?

            In my OP I mentioned there is no vi/ee/nano from the command prompt.  I have a "more" command which allows me to list the contents of a file, but I cannot edit it.

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

              Hmm,

              echo 'hw.ata.ata_dma="0"' > /boot/loader.conf.local
              

              Not entirely sure on that!  ;)

              You should look in /boot/loader.conf to check you haven't got that already though.

              Steve

              Edit: Thinking about this if the filesystem can't mount you aren't going to be able to access /boot. However you did read /etc so worth a try.

              1 Reply Last reply Reply Quote 0
              • J
                jaredadams
                last edited by

                Cool.  Ill give that a shot soon as I get home.  Thanks so much for the help.

                1 Reply Last reply Reply Quote 0
                • D
                  dLockers
                  last edited by

                  You boot it in safe mode and then add it in to the config file

                  1 Reply Last reply Reply Quote 0
                  • J
                    jaredadams
                    last edited by

                    "it" = ?
                    "config file" = ?

                    I assume you're referring to what Steve just told me, but just like in the other thread you gave no indication what those things are.

                    1 Reply Last reply Reply Quote 0
                    • J
                      jaredadams
                      last edited by

                      running the more command on the /boot/loader.conf file shows that the file is empty.

                      interesting.

                      about to run the echo command.  will post back results

                      1 Reply Last reply Reply Quote 0
                      • J
                        jaredadams
                        last edited by

                        running the command does not put the line in the file.

                        going to load up an ubuntu vm and hope it passes usb through and can actually read my usb cf reader

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

                          @jaredadams:

                          running the command does not put the line in the file.

                          Does it create an empty file?

                          Steve

                          1 Reply Last reply Reply Quote 0
                          • J
                            jaredadams
                            last edited by

                            the file was empty before i ran that command.

                            it stayed empty afterwards.

                            ubuntu cannot read the CF. WTF

                            1 Reply Last reply Reply Quote 0
                            • J
                              jaredadams
                              last edited by

                              got it to boot in safe mode, trying to add those two lines to the loader.conf file now that i have a vi editor.

                              gonna go brush up onmy vi…. google here i come.

                              edit

                              read only file system!  wq! doesnt even work.

                              1 Reply Last reply Reply Quote 0
                              • J
                                jaredadams
                                last edited by

                                SOLVED

                                1.  Boot pfsense in safemode
                                2.  Once booted fully enter the shell
                                3.  i changed folders to /boot
                                4.  run command

                                 mount -u / 
                                

                                5.  run command

                                vi loader.conf
                                

                                6.  enter two lines of code supplied by Steve (THANKS!)

                                @stephenw10:

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

                                7.  save
                                8.  exit shell
                                9.  reboot

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

                                  You should put custom loader options in /boot/loader.conf.local, it gets copied across a firmware update where as loader.conf may not be.

                                  I'm surprised those lines weren't already present to be honest. What image are you using exactly?

                                  Steve

                                  1 Reply Last reply Reply Quote 0
                                  • J
                                    jaredadams
                                    last edited by

                                    I'm using the nano 512MB image vga console on a 1GB card.

                                    There is no loader.conf.local.  Should there be one?  Should I make it?

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

                                      Yes, create it.

                                      I see no 'safe mode' option when I boot.
                                      It's a bit odd. Is it possible that the 512MB image is using a different boot loader config? Are you using VGA and keyboard or serial console?

                                      Steve

                                      Edit: I see you're using VGA. Too late to read properly, need sleep!

                                      1 Reply Last reply Reply Quote 0
                                      • J
                                        jaredadams
                                        last edited by

                                        Should i create it and add the two lines just like the other one?  You're saying that even if i update that any changes an update might do will not have any effect on the loader?

                                        1 Reply Last reply Reply Quote 0
                                        • D
                                          dLockers
                                          last edited by

                                          @jaredadams:

                                          "it" = ?
                                          "config file" = ?

                                          I assume you're referring to what Steve just told me, but just like in the other thread you gave no indication what those things are.

                                          In case anyone else finds this thread, this is what works for me regarding the MaxTerm 8300B, with a 4GB CompactFlash card (SanDisk, if it makes any difference).

                                          1.) Install on the CF card as normal
                                          2.) Boot into safe mode (Option 4 IIRC - you need VGA or console access)
                                          3.) Go to WebConfigurator
                                          4.) Diagnostics > Edit File
                                          5.) Enter '/boot/loader.conf' for the file
                                          6.) The file is blank currently, add 'ahci_load="YES"'
                                          7.) Reboot, should work fine.

                                          I have tried adding ata_dma before and it didn't seem to work, however try adding:

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

                                          If you still have issues.

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

                                            When 2.1 comes out or some critical security flaw is found prompting a 2.0.2 release then you can update to that by simply clicking the update button in the GUI.
                                            The update process will never overwrite loader.conf.local but it may (or may not) alter loader.conf. Usually it would not since that's not how the NanoBSD filesystem works.
                                            It's easier to keep track of your own alterations by putting them in a different file anyway.

                                            It looks from reading this with fresh(er) eyes that the Nano+VGA images do not have DMA disabled by default, which can be a problem as you have found.

                                            Steve

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