Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 18 Jan 2018 21:39:13 +0000
From:      Steve O'Hara-Smith <steve@sohara.org>
To:        freebsd-questions@freebsd.org
Subject:   Re: gpart And VPS Disk: Disappearing swap Partition
Message-ID:  <20180118213913.b39616554429136e897334fa@sohara.org>
In-Reply-To: <511934e8-cbcb-75e2-b4ac-ea06e1a54196@tundraware.com>
References:  <511934e8-cbcb-75e2-b4ac-ea06e1a54196@tundraware.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 18 Jan 2018 15:01:56 -0600
Tim Daneliuk <tundra@tundraware.com> wrote:

> I have Digital Ocean instance that has about 1G free on the disk.
> I want to use this to create a second swap partition.  I am able to
> run 'gpart add -t freebsd-swap ...' successfully.  That is, gpart show
> shows that new swap partition as present and I can swap it on.  HOWEVER,
> upon reboot, that partition disappears and the space shows as free again.
> 
> What am I missing here?

	An entry in /etc/fstab something like this:

/dev/gpt/<gpt label>	none	swap	sw	0	0

-- 
Steve O'Hara-Smith <steve@sohara.org>



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