System not mounting filesystem contained in /etc/fstab on boot
-
Hi All,
I'm not sure if this is pfsense 2.1 snapshot issue, but maybe you can confirm if for me. I have added a second drive to my soekris 5501 for squid cache usage but it does not appear to mount on pfsense boot. Here is what I have done thus far (from the very good tutorials found in these forums)
[1] Installed pfSense 2.1 RC1 nano (snapshot) on on 4GB CF card
[2] Configured pfSense per wizard
[3] Logged in to a shell prompt and configured the second drive (ad1)
(a) gpart create -s mbr ad1
(b) gpart add -t freebsd ad1
newfs -U /dev/ad1
(d) /etc/rc.conf_mount_rw
(e) mkdir /squid
(f) edit /etc/fstab and added the following line
/dev/ad1 /squid ufs rw,sync,noatime 1 1
(g) /etc/rc.conf_mount_ro
(h) mount /squidAt this point everything looks good, I am able to see the file system, I can create/remove files etc etc.
When I got to reboot the system, the /squid mount point is not automatically mounted. I checked that /squid exists and that the entries are listed in /etc/fstab. I cannot see any error messages anywhere either (unless I am looking in the wrong place).
Am I doing something wrong (quite possible), or is this a bug with pfSense 2.1 RC1? I've not tried the 2.0.x versions of pfSense so I cannot say for sure that it happens there.
Any pointers/suggestions would be greatly appreciated
-
fstab on NanoBSD isn't used for mounting filesystems at boot time.
If you want it mounted, add an earlyshellcmd to mount it, or even better, call a script that will try to mount it, run fsck if it fails, and then try again.
Similar to what /etc/rc does for / and /cf