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

/mnt folder question

Scheduled Pinned Locked Moved General pfSense Questions
11 Posts 4 Posters 407 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.
  • J
    JonathanLee
    last edited by JonathanLee Jan 6, 2025, 5:57 AM Jan 6, 2025, 5:11 AM

    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

    G 1 Reply Last reply Jan 6, 2025, 8:04 AM Reply Quote 0
    • G
      Gertjan @JonathanLee
      last edited by Jan 6, 2025, 8:04 AM

      @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
      • S
        stephenw10 Netgate Administrator
        last edited by Jan 6, 2025, 1:43 PM

        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.

        J 1 Reply Last reply Jan 6, 2025, 6:36 PM Reply Quote 1
        • J
          JonathanLee @stephenw10
          last edited by Jan 6, 2025, 6:36 PM

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

          Make sure to upvote

          P 1 Reply Last reply Jan 6, 2025, 7:15 PM Reply Quote 0
          • S
            stephenw10 Netgate Administrator
            last edited by Jan 6, 2025, 6:41 PM

            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

            J 2 Replies Last reply Jan 6, 2025, 7:10 PM Reply Quote 1
            • J
              JonathanLee @stephenw10
              last edited by JonathanLee Jan 6, 2025, 7:18 PM Jan 6, 2025, 7:10 PM

              @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
              • P
                patient0 @JonathanLee
                last edited by patient0 Jan 6, 2025, 7:15 PM Jan 6, 2025, 7:15 PM

                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.

                G 1 Reply Last reply Jan 7, 2025, 7:11 AM Reply Quote 2
                • J
                  JonathanLee @stephenw10
                  last edited by Jan 6, 2025, 10:33 PM

                  @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
                  • G
                    Gertjan @patient0
                    last edited by Jan 7, 2025, 7:11 AM

                    @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 ??

                    P 1 Reply Last reply Jan 7, 2025, 8:51 AM Reply Quote 0
                    • P
                      patient0 @Gertjan
                      last edited by Jan 7, 2025, 8:51 AM

                      @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.

                      G 1 Reply Last reply Jan 7, 2025, 8:55 AM Reply Quote 0
                      • G
                        Gertjan @patient0
                        last edited by Jan 7, 2025, 8:55 AM

                        @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
                        • J JonathanLee referenced this topic 3 days ago
                        11 out of 11
                        • First post
                          11/11
                          Last post
                        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                          This community forum collects and processes your personal information.
                          consent.not_received