From owner-freebsd-questions@FreeBSD.ORG Mon Dec 29 18:30:31 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 4748FB4 for ; Mon, 29 Dec 2014 18:30:31 +0000 (UTC) Received: from mail-la0-x230.google.com (mail-la0-x230.google.com [IPv6:2a00:1450:4010:c03::230]) (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 BCAE016D1 for ; Mon, 29 Dec 2014 18:30:30 +0000 (UTC) Received: by mail-la0-f48.google.com with SMTP id gf13so11368169lab.7 for ; Mon, 29 Dec 2014 10:30:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:references:from:date:message-id:subject:to :content-type; bh=QQZnVJtQ9qHVhPIuuQGXIO9Vxsd2a8JzDO0kMcHM9H4=; b=xQBuIi1LpOFt0rWMzHKA26PQgbg337AQqW8ItgFThKYyel9jMlBhfaVrot3GUT8Bo1 V/LhdzU9/4rHOii7QRo+ohOFKEa5e346JodDBsAxOy8LdBzkVTqb8/VOD078zy3Mm5ux c2PN433S0nNLntsPDZzieHMJRFrvgK8CprD3Ws6pS8dYxLA+nW9dwoZg5gbPlzVyZrhy Yi7iJT8r+aUvVFBOEb54TMPq3rZs2dYAOxtu6MC8/Hq0paLGqQZlqSxzlQzdwRDhZYQg X0uhvfKR6uMRh3RIqk769j4KTclCBvb0WiayYl8lVfPUljfsn7moj8E6hZMnnAnMAmbz xg3w== X-Received: by 10.112.154.70 with SMTP id vm6mr56189549lbb.18.1419877827743; Mon, 29 Dec 2014 10:30:27 -0800 (PST) MIME-Version: 1.0 References: <20141229192828.e7fa7f970f4a3a6f3db409a7@yahoo.es> From: Odhiambo Washington Date: Mon, 29 Dec 2014 18:30:27 +0000 Message-ID: Subject: Re: Adding more swap for FreeBSD 10 To: Eduardo Morras , freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 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 18:30:31 -0000 This isn't an option in 10.x anymore. I tried it. On Mon, Dec 29, 2014, 21:28 Eduardo Morras wrote: > On Mon, 29 Dec 2014 19:48:03 +0300 > 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 .....' > > You can use a file as swap. > > See : http://www.freebsd.org/doc/handbook/adding-swap-space.html > > At 12.12.2 > > For future references: > Create 8G swap file (change count as needed) > # dd if=/dev/zero of=/usr/swap0 bs=1m count=8192 > Change permissions > # chmod 0600 /usr/swap0 > Add entry to /etc/fstab (modify md99 with the md** numbers not used you > want, it must begin with md) > md99 none swap sw,file=/usr/swap0 0 0 > Use the swap without reboot > # swapon -aq > > > -- > > Best regards, > > Odhiambo WASHINGTON, > > Nairobi,KE > > +254733744121/+254722743223 > > "I can't hear you -- I'm using the scrambler." > > _______________________________________________ > > freebsd-questions@freebsd.org mailing list > > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > > To unsubscribe, send any mail to > > "freebsd-questions-unsubscribe@freebsd.org" > > > --- --- > Eduardo Morras > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions- > unsubscribe@freebsd.org" >