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

    /mnt folder question

    General pfSense Questions
    4
    11
    382
    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.
    • JonathanLeeJ
      JonathanLee
      last edited by JonathanLee

      Hello fellow Netgate community members can you please help?

      What is normally listed in the /mnt folder?

      I am using the as a location to mount a drive however I stated to question of many packages or something else uses this ever and if I am using it maybe it could cause issues

      Make sure to upvote

      GertjanG 1 Reply Last reply Reply Quote 0
      • GertjanG
        Gertjan @JonathanLee
        last edited by

        @JonathanLee said in /mnt folder question:

        What is normally listed in the /mnt folder?

        Nothing.
        IMHO, pfSense never uses this folder. I exists because it exists in the default FreeBSD file paths and folder, like any UNIX, Linux and other BSD based OS.
        Its not used by pfSense, as pfSense users 'normally' don't mount drives (partitions) on their firewall.
        It can be done of course, for whatever your reason is.

        There are no packages that state that to use them, you need to mount an external drive.
        Again, I never saw such a setup.

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

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

          I would still use a custom location to be sure. I can't find anything off hand but if would conflict with anything that did.

          I'm pretty sure the efi partition is mounted there to test at upgrade for example.

          JonathanLeeJ 1 Reply Last reply Reply Quote 1
          • JonathanLeeJ
            JonathanLee @stephenw10
            last edited by

            @stephenw10 what if I use a folder inside that folder leaving the original location still useable

            Make sure to upvote

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

              No I don't think that will work if the parent folder is then a mount point for something else. Though I'm not sure I've ever tried it.

              Why not use something otherwise unused like maybe: /root/mnt or /root/logdrive etc

              JonathanLeeJ 2 Replies Last reply Reply Quote 1
              • JonathanLeeJ
                JonathanLee @stephenw10
                last edited by JonathanLee

                @stephenw10 Thanks for the information I changed it to /nvme/LOGS_Optane per recommendations.

                Make sure to upvote

                1 Reply Last reply Reply Quote 0
                • patient0P
                  patient0 @JonathanLee
                  last edited by patient0

                  what if I use a folder inside that folder leaving the original location still useable

                  @JonathanLee just to clear to up: that won't work. If you mount yours on /mnt/very/important and pfSense mounts something into /mnt/ your content in subdirectories is not accessable anymore as long as there is something mounted into /mnt. After /mnt is unmounted it's accessable again.

                  What you are doing now, mounting into /nvme is a much better idea.

                  GertjanG 1 Reply Last reply Reply Quote 2
                  • JonathanLeeJ
                    JonathanLee @stephenw10
                    last edited by

                    @stephenw10 @patient0

                    Updated my unofficial guide if anyone else wants to try this

                    https://forum.netgate.com/topic/195843/unofficial-guide-have-package-logs-record-to-a-secondary-ssd-drive-snort-syslog-squid-and-or-squid-cache-system

                    Make sure to upvote

                    1 Reply Last reply Reply Quote 0
                    • GertjanG
                      Gertjan @patient0
                      last edited by

                      @patient0 said in /mnt folder question:

                      that won't work. If you mount yours on /mnt/very/important and pfSense mounts something into /mnt/

                      But who would 'take over' /mnt/ ? pfSense ?
                      Normally (IMHO), a sub folder in /mnt/ is created, and that sub folder would get mounted.

                      Example : I've a USB drive named A , and mount in /mnt/, it would be accessible like this / mnt/drive-A/*
                      Mounting a second drive B would be called /mnt/Drive-B/
                      If mounted in /mnt/ then yeah, that would be what I call a huge error : bug ...

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

                      patient0P 1 Reply Last reply Reply Quote 0
                      • patient0P
                        patient0 @Gertjan
                        last edited by

                        @Gertjan a bit further up stephenw10 wrote:

                        I'm pretty sure the efi partition is mounted there to test at upgrade for example.

                        ... that's why.

                        GertjanG 1 Reply Last reply Reply Quote 0
                        • GertjanG
                          Gertjan @patient0
                          last edited by

                          @patient0 said in /mnt folder question:

                          @Gertjan a bit further up stephenw10 wrote:

                          I'm pretty sure the efi partition is mounted there to test at upgrade for example.

                          ... that's why.

                          That's why I replied ... it wouldn't mount in /mnt but somewhere in /mnt/somewhere/
                          That is, that is what I hope.
                          Because, if not .... dono, that feels pretty dirty to me.
                          What if I have a USB drive mounted (also) with my config.xml ?
                          Anyway, just thinking out loud here.

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

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