From owner-freebsd-questions@freebsd.org Thu Jan 18 22:39:33 2018 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 7954BEC7B7C for ; Thu, 18 Jan 2018 22:39:33 +0000 (UTC) (envelope-from 4250.10.freebsd-questions=freebsd.org@email-od.com) Received: from bca5.email-od.com (bca5.email-od.com [207.246.239.5]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 476F324A0 for ; Thu, 18 Jan 2018 22:39:32 +0000 (UTC) (envelope-from 4250.10.freebsd-questions=freebsd.org@email-od.com) DKIM-Signature: v=1; a=rsa-sha256; d=email-od.com;i=@email-od.com;s=dkim; c=relaxed/relaxed; q=dns/txt; t=1516315176; x=1518907176; h=x-thread-info:date:from:to:subject:message-id:in-reply-to:references:mime-version:content-type:content-transfer-encoding; bh=n3pKBvS4Wgz+vji4xG0WDtiQ6fWS/hO/AH0R0WTfm3w=; b=a3gXNfIn8RNsTNKz+UhgwgLIuVA0UdKQp80B0f5Jm6dyTQxhL9n8H13AyQrzNv6OLz4Bxf5RDqFkItguVghffzt06vGZA3OVz4RySBzk6w2MiSZ/+5nLGugT0kajlkhjAC/+RelfM/eSfqV42KbrSexHYmBqje0+xT+O6Sq84zQ= X-Thread-Info: NDI1MC4xMi44ODAwMDAwMDBiZGNlMy5mcmVlYnNkLXF1ZXN0aW9ucz1mcmVlYnNkLm9yZw== Received: from r6.us-west-2a.aws.in.socketlabs.com (r6.us-west-2a.aws.in.socketlabs.com [52.40.216.92]) by bca2.email-od.com with ESMTP(version=Tls12 cipher=Aes256 bits=256); Thu, 18 Jan 2018 16:39:19 -0500 Received: from smtp.lan.sohara.org (EMTPY [89.127.62.20]) by r6.us-west-2a.aws.in.socketlabs.com with ESMTP(version=Tls12 cipher=Aes256 bits=256) Thu, 18 Jan 2018 16:39:16 -0500 Received: from [192.168.63.1] (helo=steve.lan.sohara.org) by smtp.lan.sohara.org with smtp (Exim 4.90 (FreeBSD)) (envelope-from ) id 1ecHtx-000NHA-Pg for freebsd-questions@freebsd.org; Thu, 18 Jan 2018 21:39:13 +0000 Date: Thu, 18 Jan 2018 21:39:13 +0000 From: Steve O'Hara-Smith 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> X-Mailer: Sylpheed 3.6.0 (GTK+ 2.24.31; amd64-portbld-freebsd11.0) X-Clacks-Overhead: "GNU Terry Pratchett" Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Jan 2018 22:39:33 -0000 On Thu, 18 Jan 2018 15:01:56 -0600 Tim Daneliuk 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/ none swap sw 0 0 -- Steve O'Hara-Smith