From owner-freebsd-questions@FreeBSD.ORG Sun Nov 25 21:34:07 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 78AD6ED9 for ; Sun, 25 Nov 2012 21:34:07 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (wonkity.com [67.158.26.137]) by mx1.freebsd.org (Postfix) with ESMTP id 1241A8FC12 for ; Sun, 25 Nov 2012 21:34:05 +0000 (UTC) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.14.5/8.14.5) with ESMTP id qAPLY58M024830; Sun, 25 Nov 2012 14:34:05 -0700 (MST) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.14.5/8.14.5/Submit) with ESMTP id qAPLY4ei024827; Sun, 25 Nov 2012 14:34:05 -0700 (MST) (envelope-from wblock@wonkity.com) Date: Sun, 25 Nov 2012 14:34:04 -0700 (MST) From: Warren Block To: Ralf Mardorf Subject: Re: How to create a partition for FreeBSD 9.0? In-Reply-To: <1353877782.2508.225.camel@q> Message-ID: References: <1353795280.2662.12.camel@q> <20121124233520.7ad4b4be.freebsd@edvax.de> <1353798889.2662.46.camel@q> <20121125002717.11a61c8d.freebsd@edvax.de> <1353807268.2773.16.camel@q> <20121125131908.671f6d31.freebsd@edvax.de> <1353846552.2508.23.camel@q> <1353877782.2508.225.camel@q> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.7 (wonkity.com [127.0.0.1]); Sun, 25 Nov 2012 14:34:05 -0700 (MST) Cc: freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Nov 2012 21:34:07 -0000 On Sun, 25 Nov 2012, Ralf Mardorf wrote: > I can't backup the whole HDDs :(. I backup some data from HDD1 to HDD2 > and te other data from HDD2 to HDD1. > > On Sun, 2012-11-25 at 13:43 -0700, Warren Block wrote: >> Assuming the first slice has been deleted. > > Correct. > >> # gpart add -t freebsd -i1 ada0 >> >> Create a FreeBSD disklabel/bsdlabel partitioning scheme inside the >> FreeBSD slice: >> >> # gpart create -s bsd da0s1 >> >> Create FreeBSD partitions. Sizes may be adjusted, but these will work. >> >> # gpart add -t freebsd-ufs -a 4k -s 2g da0s1 >> # gpart add -t freebsd-swap -a 4k -s 512m da0s1 >> # gpart add -t freebsd-ufs -a 4k -s 1g da0s1 >> # gpart add -t freebsd-ufs -a 4k -s 256m da0s1 >> # gpart add -t freebsd-ufs -a 4k da0s1 >> >> After you have done all this, you can go back and use the Partition >> selection in bsdinstall to enter types and mountpoints for each. Or you >> can newfs each and then mount them, setting the location in >> BSDINSTALL_CHROOT. > > I would prefer to continue with the installer. > > However, I guess for my needs just / is needed, so I guess > > # gpart add -t freebsd-swap -a 4k -s 512m da0s1 > # gpart add -t freebsd-ufs -a 4k da0s1 I think we just found in another thread that the UFS partition must be first, but it will have to have a size stated. > 512m (it doesn't matter to use m or M?) is enough swap? I've got 4GB > RAM. On Linux I use 2 swaps each around 2GB, but they are not much used. Use more if you like. It will not hurt, and might be useful in some situations. The "m" or "g" is not case-sensitive. So the command above to allocate 40G for a filesystem and the rest to swap would be # gpart add -t freebsd-ufs -a 4k -s 40g da0s1 # gpart add -t freebsd-swap -a 4k -s da0s1 Bootcode might also be needed on the FreeBSD slice, but I have not used grub, so don't know for sure.