pfSense - Adding a Disk for Squid Cache
Jake G April 02, 2022 #pfSense #SysAdminI needed to add a disk to pfSense to be used exclusively for Squid, this is how I did it.
First find your drive you intend to use, you should look for the fields that indicates the size and serial number of your drive.
Next completely wipe out the filesystem on that drive and create a new partition and filesystem, of=
is the path of the device, the device name listed by geom should exist in the /dev
directory.
Next we will create a directory for our squid data:
Finally we will install nano and use it to edit the /etc/fstab file to mount this on boot.
Notice below we have failok
, this allows the system to boot even if it is unable to mount this location, I suggest having this in place until everything is working, otherwise if something goes wrong you may have to boot into a recover shell to alter the fstab file before your system will boot, I simply leave failok
in place because squid is not mission critical, but the system properly booting is.
You can either reboot and allow fstab to mount the location, or you can mount it manually now: