Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 29 Dec 2014 19:28:28 +0100
From:      Eduardo Morras <emorrasg@yahoo.es>
To:        freebsd-questions@freebsd.org
Subject:   Re: Adding more swap for FreeBSD 10
Message-ID:  <20141229192828.e7fa7f970f4a3a6f3db409a7@yahoo.es>
In-Reply-To: <CAAdA2WP__b2z8v3PiUDVSCY69d3QaHSmy7LvnZhbeQFuPeGNkg@mail.gmail.com>
References:  <CAAdA2WP__b2z8v3PiUDVSCY69d3QaHSmy7LvnZhbeQFuPeGNkg@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 29 Dec 2014 19:48:03 +0300
Odhiambo Washington <odhiambo@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@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to
> "freebsd-questions-unsubscribe@freebsd.org"


---   ---
Eduardo Morras <emorrasg@yahoo.es>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20141229192828.e7fa7f970f4a3a6f3db409a7>