From owner-freebsd-stable@FreeBSD.ORG Mon Dec 15 22:18:43 2014 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id D8AB6D34 for ; Mon, 15 Dec 2014 22:18:43 +0000 (UTC) Received: from wonkity.com (wonkity.com [67.158.26.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "wonkity.com", Issuer "wonkity.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 83F4E267 for ; Mon, 15 Dec 2014 22:18:43 +0000 (UTC) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.14.9/8.14.9) with ESMTP id sBFMIfDS008337 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Mon, 15 Dec 2014 15:18:42 -0700 (MST) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.14.9/8.14.9/Submit) with ESMTP id sBFMIf3j008334; Mon, 15 Dec 2014 15:18:41 -0700 (MST) (envelope-from wblock@wonkity.com) Date: Mon, 15 Dec 2014 15:18:41 -0700 (MST) From: Warren Block To: Kevin Oberman Subject: Re: Mounting swap partition In-Reply-To: Message-ID: References: <548F071D.2000700@multiplay.co.uk> <548F115D.3080609@gmail.com> User-Agent: Alpine 2.11 (BSF 23 2013-08-11) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.4.3 (wonkity.com [127.0.0.1]); Mon, 15 Dec 2014 15:18:42 -0700 (MST) Cc: FreeBSD-STABLE Mailing List , Net Warrior X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Dec 2014 22:18:43 -0000 On Mon, 15 Dec 2014, Kevin Oberman wrote: > On Mon, Dec 15, 2014 at 8:50 AM, Net Warrior > wrote: > >> Hi Steve >> After disabling gpt and gptid at boot the swap is back >> >> root@:~ # swapinfo >> Device 1K-blocks Used Avail Capacity >> /dev/ada0p2 2097152 0 2097152 0% >> >> Thank you very much. >> > > While this works, I find it best to leave gpt in place and then use gpart > to label all partitions (except swap which does not support it) Umm.... > and use glabel to label swap. GPT labels are stored in the metadata, so swap can have a GPT label just like all the other partitions. Maybe you are thinking of UFS filesystem labels? > Now everything is named and there should never be any confusion. You can > see why I leave gpt labels enabled. Here is my fstab: > # Device Mountpoint FStype Options Dump Pass# > /dev/gpt/swap none swap sw 0 0 ^^^^^^^^^^^^^^^ That is a GPT label right there.