Adding more swap for FreeBSD 10
Warren Block
wblock at wonkity.com
Mon Dec 29 21:11:22 UTC 2014
On Mon, 29 Dec 2014, Odhiambo Washington wrote:
>
>
> On 29 December 2014 at 20:45, Warren Block <wblock at wonkity.com> wrote:
> On Mon, 29 Dec 2014, Odhiambo Washington 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 .....'
>
>
> Use gpart(8) rather than bsdinstall. With MBR and bsdlabel, everything is more difficult than with GPT, but it still can be done. Please show the output of 'gpart show'.
>
>
> wash at mail:~$ gpart show ada0
> => 0 976773168 ada0 BSD (466G)
> 0 964689920 1 freebsd-ufs (460G)
> 964689920 12083248 - free - (5.8G)
Oh, just bare bsdlabels... (untested):
gpart add -t freebsd-swap -a4k ada0
The device for the swap entry in /etc/fstab will be ada0b.
More information about the freebsd-questions
mailing list