From owner-freebsd-stable@FreeBSD.ORG Mon Dec 15 22:11:54 2014 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id A3689B5B for ; Mon, 15 Dec 2014 22:11:54 +0000 (UTC) Received: from mail-ig0-x235.google.com (mail-ig0-x235.google.com [IPv6:2607:f8b0:4001:c05::235]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 684091F9 for ; Mon, 15 Dec 2014 22:11:54 +0000 (UTC) Received: by mail-ig0-f181.google.com with SMTP id l13so6390302iga.8 for ; Mon, 15 Dec 2014 14:11:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=VoKTG2S4NI2sf+5E9tx0ZP0Z0TmIt5fX0228bO0BSiE=; b=XSx593QYfU4K0Ee1SWWbehky6P3fKazcAddLiKqlKXy+2VL7sjnTST35Hdngj9m6bi qPc74t2IU1NzUhVGqoai3DOMso4lBAfpX9JSz7Ty/sqkGgJ573N66nZ88kpBMmSbpraz 9ANs07V1YCu6Owevr3n7pDO0RK1dd26xvj7IbY2l/Zngs1GKe/I1FqM8J388w12kHjgm Sb1kczq0JWIjTZsOz4nhjCKqRl1FbBWWvubyxO5QfNNpdJn5v3RsZ1LTAmFnbeslUnnW 0ChIIu8O+PlBF7s48PLDGIIvUKZEXpurz1GUCfxKKHoP60KrbaqvzS8cvLSouIp7R4hW 7Qwg== MIME-Version: 1.0 X-Received: by 10.50.30.202 with SMTP id u10mr20077540igh.35.1418681513870; Mon, 15 Dec 2014 14:11:53 -0800 (PST) Sender: kob6558@gmail.com Received: by 10.107.52.19 with HTTP; Mon, 15 Dec 2014 14:11:53 -0800 (PST) In-Reply-To: <548F115D.3080609@gmail.com> References: <548F071D.2000700@multiplay.co.uk> <548F115D.3080609@gmail.com> Date: Mon, 15 Dec 2014 14:11:53 -0800 X-Google-Sender-Auth: 3_-IjlSRSNHms6kWFHKEDGvZ-4w Message-ID: Subject: Re: Mounting swap partition From: Kevin Oberman To: Net Warrior Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 Cc: FreeBSD-STABLE Mailing List 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:11:54 -0000 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) and use glabel to label swap. 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 /dev/gpt/rootfs / ufs rw 1 1 /dev/gpt/tmp /tmp ufs rw 2 2 /dev/gpt/usr /usr ufs rw 2 2 /dev/gpt/var /var ufs rw 2 2 /dev/ntfs/Windows7_OS /media/Windows7_OS ntfs rw,failok,uid=9381,gid=15,norecover,noatime,windows_names,late,mountprog=/usr/local/bin/ntfs-3g 0 0 /dev/ntfs/Media /media/Media ntfs rw,failok,uid=9381,gid=15,norecover,noatime,windows_names,late,mountprog=/usr/local/bin/ntfs-3g 0 0 #/dev/acd0 /cdrom cd9660 ro,noauto 0 0 -- R. Kevin Oberman, Network Engineer, Retired E-mail: rkoberman@gmail.com