From owner-freebsd-questions@FreeBSD.ORG Sun Feb 28 15:42:18 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DA8D5106566B for ; Sun, 28 Feb 2010 15:42:18 +0000 (UTC) (envelope-from eliaschr@cha.forthnet.gr) Received: from mx-out.forthnet.gr (mx-out.forthnet.gr [193.92.150.104]) by mx1.freebsd.org (Postfix) with ESMTP id 25E518FC17 for ; Sun, 28 Feb 2010 15:42:17 +0000 (UTC) Received: from mx-av-04.forthnet.gr (mx-av.forthnet.gr [193.92.150.27]) by mx-out-01.forthnet.gr (8.14.3/8.14.3) with ESMTP id o1SFgEsV008011 for ; Sun, 28 Feb 2010 17:42:14 +0200 Received: from MX-IN-01.forthnet.gr (mx-in-01.forthnet.gr [193.92.150.23]) by mx-av-04.forthnet.gr (8.14.3/8.14.3) with ESMTP id o1SFgEZm005815 for ; Sun, 28 Feb 2010 17:42:14 +0200 Received: from pluto.universe (62.1.182.68.dsl.dyn.forthnet.gr [62.1.182.68]) by MX-IN-01.forthnet.gr (8.14.3/8.14.3) with ESMTP id o1SFgDlE007249 for ; Sun, 28 Feb 2010 17:42:13 +0200 Authentication-Results: MX-IN-01.forthnet.gr smtp.mail=eliaschr@cha.forthnet.gr; spf=neutral Authentication-Results: MX-IN-01.forthnet.gr header.from=eliaschr@cha.forthnet.gr; sender-id=neutral From: Elias Chrysocheris To: FreeBSD Questions Date: Sun, 28 Feb 2010 17:42:03 +0200 User-Agent: KMail/1.12.4 (FreeBSD/8.0-RELEASE-p2; KDE/4.3.5; amd64; ; ) References: <20100228132654.GA2796@orange.esperance-linux.co.uk> In-Reply-To: <20100228132654.GA2796@orange.esperance-linux.co.uk> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201002281742.03674.eliaschr@cha.forthnet.gr> Subject: Re: / slice too small X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Feb 2010 15:42:18 -0000 On Sunday 28 of February 2010 15:26:54 Frank Shute wrote: > I've got a machine here running 7.2 which I want to upgrade to 8.0 but > looking at the root slice it is woefully small: > > $ df -h > Filesystem Size Used Avail Capacity Mounted on > /dev/ad4s2 190M 146M 29M 84% / > devfs 1.0K 1.0K 0B 100% /dev > /dev/ad4s4 129G 15G 104G 12% /usr > devfs 1.0K 1.0K 0B 100% /var/named/dev > > I've got a CD/DVD writer on that machine along with a 100MB ethernet > connection to my desktop. > > How do I go about upgrading it? Dump/restore and change the partition > table? > > Any suggestions gratefully received. > > > Regards, > Yes. The dump/restore should do the trick as long as you have another medium to store the dumps (such as another hard disk). You will store the images of your slices to the new medium using dump(8). You can then use FixIt console to re-partition and re-slice your hard disk and then restore(8) your images in the newly sliced hard disk. Actually, if you have another hard disk device, you can use piped dump/restore to copy the whole system from one disk to the other and make the second one your bootable disk. Of course you must have sliced the second device first. I've done this many times. The first was to remove an openSUSE partition I had, living in the same hard disk as my FreeBSD. The second time was to move my FreeBSD to another hard disk (physical device). The new disk became my boot disk. The third time was to move my system to another bigger hard disk device and at the same time be formated as ZFS. Now my system boots from this third hard disk device, having ZFS and the operating system is the same as that I first installed (of cource updated...) Elias