From owner-freebsd-questions@FreeBSD.ORG Fri Nov 5 15:24:47 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3EA2616A4CF for ; Fri, 5 Nov 2004 15:24:47 +0000 (GMT) Received: from hobbit.neveragain.de (neveragain.de [217.69.76.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6D01E43D1D for ; Fri, 5 Nov 2004 15:24:46 +0000 (GMT) (envelope-from amf@hobbit.neveragain.de) Received: from hobbit.neveragain.de (amf@localhost [127.0.0.1]) iA5FOi11029818 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 5 Nov 2004 16:24:44 +0100 Received: (from amf@localhost) by hobbit.neveragain.de (8.13.1/8.13.1/Submit) id iA5FOicH029817; Fri, 5 Nov 2004 16:24:44 +0100 Date: Fri, 5 Nov 2004 16:24:44 +0100 From: Dennis Koegel To: CHris Rich Message-ID: <20041105152444.GH21279@neveragain.de> References: <8292450b0411050713536e2e0e@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <8292450b0411050713536e2e0e@mail.gmail.com> X-PGP-KeyID: 0D73E19A User-Agent: Mutt/1.5.6+20040722i X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-1.4 (hobbit.neveragain.de [127.0.0.1]); Fri, 05 Nov 2004 16:24:45 +0100 (CET) cc: freebsd-questions@freebsd.org Subject: Re: Transferring system to a new hard drive X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 Nov 2004 15:24:47 -0000 On Fri, Nov 05, 2004 at 09:13:25AM -0600, CHris Rich wrote: > My original install of FreeBSD is on a 30 gig hard drive, I want to > move it to an 80 gig I now have, but i don't want to have to reinstall > everything since I've spent hours waiting for some ports to install. > [...] > If I do move it over will I have ot make new slices to take advantage > of the bigger hard drive? What I usually do is: - install the new hd as second drive in the running system - partition/slice it as you like - newfs the new partitions - mount the whole structure somewhere, like * mount /dev/ad1s1a /mnt * mount /dev/ad1s1e /mnt/usr * mount /dev/ad1s1f /mnt/var etc. - go single user - cd / && find | cpio -padmuv /mnt - check /mnt/etc/fstab - write boot sector to ad1 - shutdown, replace old drive with new drive - done The find|cpio combination will copy your entire system 1:1 to the new hard disk and it's slice structure below /mnt. HTH, - D.