From owner-freebsd-questions@FreeBSD.ORG Mon Dec 29 18:28:34 2014 Return-Path: Delivered-To: freebsd-questions@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 31104EF4 for ; Mon, 29 Dec 2014 18:28:34 +0000 (UTC) Received: from nm17-vm8.bullet.mail.ir2.yahoo.com (nm17-vm8.bullet.mail.ir2.yahoo.com [212.82.96.223]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 7730C15FA for ; Mon, 29 Dec 2014 18:28:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.es; s=s2048; t=1419877709; bh=oezCAuPkxXIKMEW3dURP7V68jbnExpZdPO2ZDptCHEQ=; h=Date:From:To:Subject:In-Reply-To:References:From:Subject; b=Ps/AxBMxKiiZg8mJJY8PpIBKuYYa4ij9qm/ylkv6fAhchotjFqGywkF+exh6mM0G0Qu9QfBhEgLR/IJ2mfq4lNG+JpuPSklMA3Mztn4CavuxZPwHZNh0/QIQw5SE7z1wye8An78HBOy3k+nG1SlWdGeLSNHcDga43kEb5iBPe5mr8C3ABDiyWpzrasrjuIG+ecm8u04rM1CTBMvnIca5Wd8nZmLDQaRYq9wVFVAYpSHd3TcysLuc+wabP97hywxrxDN8OVArMKHuGIDvBOS2Oq73az9hC/Cns/wQ9KA7xVrkA4bphnzSzY7PquQmqD/U9Yq+ksHNtY0lQjXrOwq86w== DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s2048; d=yahoo.es; b=kdQFAnpcvISjsJWm0UCUyYjrH7xnEtfA1mXvLNy4DfZDgRPVJx0mUfDtLJqmvg5WKc9gXpAw30k4T2tHTKebeo1vNIrTDV7EvoP+oMYJD/Eh6zYHtyivw/pYMl+FRiNv8IIvt/+0jq/7di3tyRh5jkWR0F7HHg9/mGj8hZejhrVONdxYvxYS4xNbX2Kz+nStEsAHajY4/49nhrf0kcBRWw+eu0rhDwSSTogk8XvRHImWp3Z0sowHmWLdHsvQy23F998yqBgbEuTzPQfiJcPS+aw18UVatBQqGQvWk2WOTtAYlzw2dsA5U+syM3fS75dsfnFzeWu2NcQU+SxMiu/HPg==; Received: from [212.82.98.51] by nm17.bullet.mail.ir2.yahoo.com with NNFMP; 29 Dec 2014 18:28:29 -0000 Received: from [46.228.39.105] by tm4.bullet.mail.ir2.yahoo.com with NNFMP; 29 Dec 2014 18:28:29 -0000 Received: from [127.0.0.1] by smtp142.mail.ir2.yahoo.com with NNFMP; 29 Dec 2014 18:28:29 -0000 X-Yahoo-Newman-Id: 774385.30569.bm@smtp142.mail.ir2.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: 1ga4yy8VM1l6IQfR_kiTfNXYtVLul1cNxJzJoMPIyrDwoNF b8X68AeoCHiWX7teSUORmLRfrubhBZHT_HMsS8Vd7cFfxAoo0VSP0L048alo pEDDCnYTxwUhC6Idc7i14yHp.X3RivBZbNvuj3YWfPkGKYTVXk7_cEbnQEoR U0osSXXA4SFCdql2hZsNOt_SCYGA3GieGz7VMHL.RF1OizAzdGtAwmNk8CfO OK98mwJsR6.Y1pNlDMUUf_wuItxsM8aqxl2ETEMM.xQ.Q5BvJ60TbOq16u8f AAYMKlnsk09EprWBjh99Oc_jLJT53HHOxk9lbWDXCN7L_OIOo37U3rGcA9iq vB1IrZ7TKW.6aPMCXPnrrv1X.PxlWGUTzv9Z5Q6QheXYmsQRfD7WkvWiEcEk rpLJNzc.TY4GWMNxIzSrG8dJsAhVs8O9YsE3JWPHoysBGyirM1q0_Y4.c7._ CEZVwnxSxq3WD_m75v_wqoNkuG5B4XqJC3jrR7nQQgmKpSbgA.7UBMS.je1J 6IlW8CJB29b9MQnfhlv9N8rlL8lpYOAsAWc2i X-Yahoo-SMTP: mX392iiswBAeJNdO_s.EW62LZDJR Date: Mon, 29 Dec 2014 19:28:28 +0100 From: Eduardo Morras To: freebsd-questions@freebsd.org Subject: Re: Adding more swap for FreeBSD 10 Message-Id: <20141229192828.e7fa7f970f4a3a6f3db409a7@yahoo.es> In-Reply-To: References: X-Mailer: Sylpheed 3.4.2 (GTK+ 2.24.25; amd64-portbld-freebsd9.1) 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.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:28:34 -0000 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