From owner-freebsd-questions@FreeBSD.ORG Sun Nov 25 21:24:48 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 B16C0A20 for ; Sun, 25 Nov 2012 21:24:48 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx02.qsc.de (mx02.qsc.de [213.148.130.14]) by mx1.freebsd.org (Postfix) with ESMTP id 5FD0A8FC0C for ; Sun, 25 Nov 2012 21:24:48 +0000 (UTC) Received: from r56.edvax.de (port-92-195-51-39.dynamic.qsc.de [92.195.51.39]) by mx02.qsc.de (Postfix) with ESMTP id D04FD2766A for ; Sun, 25 Nov 2012 22:24:46 +0100 (CET) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id qAPLOmps006911 for ; Sun, 25 Nov 2012 22:24:48 +0100 (CET) (envelope-from freebsd@edvax.de) Date: Sun, 25 Nov 2012 22:24:48 +0100 From: Polytropon To: freebsd-questions@freebsd.org Subject: Re: How to create a partition for FreeBSD 9.0? Message-Id: <20121125222448.0101e539.freebsd@edvax.de> In-Reply-To: <1353877782.2508.225.camel@q> 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> Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) 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.14 Precedence: list Reply-To: Polytropon List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Nov 2012 21:24:49 -0000 On Sun, 25 Nov 2012 22:09:42 +0100, 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. Per definition, that's just a copy, not a backup. :-) > 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 > > is what I should run?! > > 512m (it doesn't matter to use m or M?) is enough swap? If you have sufficient disk space, going for about 2 GB swap won't be problematic (and offer you some "free space" for "unexpected" use of swap). >From "man gpart": "Its size is given by the -s size option. SI unit suffixes are allowed." The SI unit suffix per definition is M, but if m also works, both seem to be valid. There's an example reading "/sbin/gpart add -s 512M -t freebsd-ufs da0" in the EXAMPLES section. > I've got 4GB > RAM. On Linux I use 2 swaps each around 2GB, but they are not much used. > For Linux there are no valid rules any more, how to set up the swap, or > at least I don't know the rules. In fact, there are no definite rules anymore. The use of swap depends on too many factors (HDD or SSD, how many, RAID layout, RAM in machine, applications, ...) to make an easy rule. But better have swap you don't need than to need swap you don't have. :-) I still wonder how or why the new installer fails with the task discussed here. Basically, if there is free space on the disk, one should be able to use fdisk to allocate it to a FreeBSD slice (cf. "DOS primary partition") and then use disklabel (bsdlabel) to create the required partitions inside this slice (/ and swap, in your case). There would be no need to write any boot codes or MBR stuff as GRUB will chainload the FreeBSD loader (hd0,a:/boot/loader). Modern technology... :-) -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...