Why not just add the necessary line to /etc/fstab, and let the boot-time 
rc scripts mount it like usual?
(Note: I _am_ running 2.0, this might be a useless suggestion under 1.x, I 
don't know.)

The discussion of adding swap in the FreeBSD docs mentioned only covers 
adding auxiliary swap *files*, not swap partitions.

The shortest and clearest example I can find of adding swap to fstab(5) is 
at http://www.freebsd.org/doc/handbook/swap-encrypting.html or possibly 
http://www.freebsd.org/doc/handbook/geom-glabel.html, both of which 
contain extraneous detail - the Handbook assumes sysinstall(8) prepared 
swap space and adjusted /etc/fstab for you during install.  You should be 
able to compare-and-contrast based on those two examples, though.

AFAIK this isn't something pfSense/m0n0wall does differently than 
FreeBSD... the weirdness starts quite a bit later in the boot process.

(I'm curious - why do you need/want more swap on a firewall?)

-Adam


> -----Original Message-----
> From: st41ker [mailto:[email protected]]
> Sent: Wednesday, November 10, 2010 11:25
> To: [email protected]
> Subject: Re: [pfSense Support] Swap
>
> Hello again,
>
> Little fix just add '/sbin' path to binary just to make sure that
> init
> subsystem will run it:
>
> echo "/sbin/swapon /dev/ad1s1" > /usr/local/etc/rc.d/startup.sh ;
> chmod
> +x /usr/local/etc/rc.d/startup.sh; reboot
>
> On 10.11.2010 18:20, st41ker wrote:
> > Hello,
> >
> > echo "swapon /dev/ad1s1" > /usr/local/etc/rc.d/startup.sh ; chmod
> +x
> > /usr/local/etc/rc.d/startup.sh; reboot
> >
> > On 10.11.2010 13:30, James Bensley wrote:
> >> Hey Listee's
> >>
> >> I am trying to add a swap drive to my pfSense box but I'm
> failing to
> >> keep it after a reboot.
> >>
> >> I zero out a spare 512MB partition with dd and chmod'd it as per
> the
> >> this freeBSD doc [0] but then I get stuck. /etc/rc.conf doesn't
> exist?
> >> I can execute 'swapon /dev/ad1s1' and then under swapinfo my new
> swap
> >> drive appears, also in the web interface it shows on the front
> page.
> >> As soon as I reboot it is no longer there and I have to execute
> >> 'swapon' again.
> >>
> >> So how to I complete this process under pfSense?
> >>
> >>
> >> [0] http://www.freebsd.org/doc/handbook/adding-swap-space.html
> >>> 
> >> >
> >
> > -----------------------------------------------------------------
> ----
> > To unsubscribe, e-mail: [email protected]
> > For additional commands, e-mail: [email protected]
> >
> > Commercial support available - https://portal.pfsense.org
> >
>
>
> -------------------------------------------------------------------
> --
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
> Commercial support available - https://portal.pfsense.org




---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Commercial support available - https://portal.pfsense.org

Reply via email to