From owner-freebsd-questions@FreeBSD.ORG Mon Oct 14 02:07:57 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id F05D229E for ; Mon, 14 Oct 2013 02:07:57 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx01.qsc.de (mx01.qsc.de [213.148.129.14]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id B389B22F6 for ; Mon, 14 Oct 2013 02:07:57 +0000 (UTC) Received: from r56.edvax.de (port-92-195-74-65.dynamic.qsc.de [92.195.74.65]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx01.qsc.de (Postfix) with ESMTPS id 29A193C73F; Mon, 14 Oct 2013 04:07:49 +0200 (CEST) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id r9E27g8X001936; Mon, 14 Oct 2013 04:07:42 +0200 (CEST) (envelope-from freebsd@edvax.de) Date: Mon, 14 Oct 2013 04:07:42 +0200 From: Polytropon To: "Kenta Suzumoto" Subject: Re: Reinstall without reformat Message-Id: <20131014040742.d03fa5bd.freebsd@edvax.de> In-Reply-To: <20131013172430.71AA26018E@smtp.hushmail.com> References: <20131013172430.71AA26018E@smtp.hushmail.com> 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 Cc: freebsd-questions@freebsd.org 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: Mon, 14 Oct 2013 02:07:58 -0000 On Sun, 13 Oct 2013 13:24:30 -0400, Kenta Suzumoto wrote: > Hi all. Is it possible to install FreeBSD without formatting the disk? Yes. The installer supports not formatting existing partitions. The file system characteristica will be kept, possible content will overwritten. Note that "superfluous content" will also be kept, except of course you previously remove everything. > I have one directory of data that I want to keep. You should still make a backup, because "I want to keep" does imply exactly that in regards of an OS installation. :-) > I can boot from the > installer and rm every directory except that (/bin /boot etc), but how > could I install the OS from there? You simply re-enter the installer, assign the (existing, but now empty) partitions to the desired mountpoint, make sure _not_ to newfs them, and then commit to the installation as usual. An alternative would be, after "preparing" the partitions, mount them as desired and extract the installation datasets from the installation media manually (via shell commands). Still you might miss other steps the installer performs. > I've done ZFS on root installs with > the shell and mounting the zpool to /mnt, would that work here too? Probably yes (never tried that myself). -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...