From owner-freebsd-questions@FreeBSD.ORG Mon Dec 29 17:45:57 2014 Return-Path: Delivered-To: freebsd-questions@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 561A76B0 for ; Mon, 29 Dec 2014 17:45:57 +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 028143CE6 for ; Mon, 29 Dec 2014 17:45:56 +0000 (UTC) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.14.9/8.14.9) with ESMTP id sBTHjsbZ079428 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Mon, 29 Dec 2014 10:45:54 -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 sBTHjsbX079425; Mon, 29 Dec 2014 10:45:54 -0700 (MST) (envelope-from wblock@wonkity.com) Date: Mon, 29 Dec 2014 10:45:54 -0700 (MST) From: Warren Block To: Odhiambo Washington Subject: Re: Adding more swap for FreeBSD 10 In-Reply-To: Message-ID: References: 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, 29 Dec 2014 10:45:54 -0700 (MST) Cc: User Questions X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Dec 2014 17:45:57 -0000 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'.