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

    Adding a second drive to pfSense 2.5.2

    Scheduled Pinned Locked Moved General pfSense Questions
    5 Posts 4 Posters 775 Views 4 Watching
    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.
    • M Offline
      mk873425
      last edited by mk873425

      Hi all,

      I'm running pfSense 2.5.2 on a dedicated machine, and I have installed a secondary SSD which I intend to use just for the logfiles.

      I created a partitioning scheme on the new SSD, and then added a new freebsd-ufs partition.
      Screenshot of gpart show.
      ada0 is the newly added SSD.

      All good till this point, I can also mount ada0 to /media/ssd without any problems.

      The problems occur when I try to have it automatically mount when pfSense boots. I created a entry in /etc/fstab like this.

      The mount works correctly when I perform a mount -a, but once I reboot the machine it refuses to boot, and goes into a read-only state.

      Any ideas?

      EDIT: It's the nullfs bind that's giving problems. When I remove/uncomment that line, and only mount /dev/ada0p1 to /media/ssd the server boots without issues.

      GertjanG 1 Reply Last reply Reply Quote 0
      • A Offline
        ashima LAYER 8
        last edited by

        @mk873425
        Write a shell script to mount it later.
        Use Shellcmd to run the script.

        Hope this works.
        Ashima

        M 1 Reply Last reply Reply Quote 1
        • M Offline
          mk873425 @ashima
          last edited by

          @ashima Already tried that, but pfSense gets confused when you bind /var/log to another directory after it has booted. All logs are empty when I try that.

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

            Don't do that, use an external syslog server.

            But if you really have to do it use the syslog-ng package where you can set the log storage location. Export the logs to it internally.

            Steve

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

              @mk873425 said in Adding a second drive to pfSense 2.5.2:

              but once I reboot the machine it refuses to boot, and goes into a read-only state.
              Any ideas?

              When rebooted, the drive is 'umount' properly ?

              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.