Adding more swap for FreeBSD 10

Odhiambo Washington odhiambo at gmail.com
Mon Dec 29 18:30:31 UTC 2014


This isn't an option in 10.x anymore. I tried it.

On Mon, Dec 29, 2014, 21:28 Eduardo Morras <emorrasg at yahoo.es> wrote:

> On Mon, 29 Dec 2014 19:48:03 +0300
> Odhiambo Washington <odhiambo at gmail.com> wrote:
>
> > My FreeBSD system is crashing so much for lack of swap.
> >
> > I used BSD labels instead of GPT and I had it a little rough creating
> > my slices and this resulted in me not creating the swap partition.
> >
> > Now, if I run 'bsdinstall partedit', I see that it is possible to
> > create a partition of 5.8GB at the end of my disks. However, the gui
> > from bsdinstall wouldn't let me commit my changes on the already live
> > disks.
> >
> > Is there a command line way of achieving the above with bsdinstall
> > without destroying a disk?
> >
> > I am hoping that there is something like 'bsdinstall
> > scriptedpart .....'
>
> You can use a file as swap.
>
> See : http://www.freebsd.org/doc/handbook/adding-swap-space.html
>
> At 12.12.2
>
> For future references:
> Create 8G swap file (change count as needed)
>   # dd if=/dev/zero of=/usr/swap0 bs=1m count=8192
> Change permissions
>   # chmod 0600 /usr/swap0
> Add entry to /etc/fstab (modify md99 with the md** numbers not used you
> want, it must begin with md)
>   md99  none    swap    sw,file=/usr/swap0      0       0
> Use the swap without reboot
>   # swapon -aq
>
> > --
> > Best regards,
> > Odhiambo WASHINGTON,
> > Nairobi,KE
> > +254733744121/+254722743223
> > "I can't hear you -- I'm using the scrambler."
> > _______________________________________________
> > freebsd-questions at freebsd.org mailing list
> > http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> > To unsubscribe, send any mail to
> > "freebsd-questions-unsubscribe at freebsd.org"
>
>
> ---   ---
> Eduardo Morras <emorrasg at yahoo.es>
> _______________________________________________
> freebsd-questions at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-
> unsubscribe at freebsd.org"
>


More information about the freebsd-questions mailing list