From owner-freebsd-questions@FreeBSD.ORG Fri Sep 16 14:09:24 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org 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 D084C16A41F for ; Fri, 16 Sep 2005 14:09:24 +0000 (GMT) (envelope-from micahjon@u.washington.edu) Received: from smtpout1.ywave.com (unknown [216.227.100.60]) by mx1.FreeBSD.org (Postfix) with SMTP id 7503A43D46 for ; Fri, 16 Sep 2005 14:09:24 +0000 (GMT) (envelope-from micahjon@u.washington.edu) Received: (qmail 13890 invoked by uid 502); 16 Sep 2005 14:09:23 -0000 Received: from dsl13079.ywave.com (HELO ?192.168.1.65?) (micahjon@ywave.com@66.243.212.79) by 0 with SMTP; 16 Sep 2005 14:09:23 -0000 X-CLIENT-IP: 66.243.212.79 X-CLIENT-HOST: dsl13079.ywave.com Message-ID: <432AD212.1060909@u.washington.edu> Date: Fri, 16 Sep 2005 07:09:22 -0700 From: Micah Lieske User-Agent: Mozilla Thunderbird 1.0.6 (X11/20050908) X-Accept-Language: en-us, en MIME-Version: 1.0 To: sstahl@gmail.com, freebsd-questions@freebsd.org References: <14197f4205091521093a3528f4@mail.gmail.com> In-Reply-To: <14197f4205091521093a3528f4@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Subject: Re: upgrade HDD 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: Fri, 16 Sep 2005 14:09:24 -0000 Scott wrote: > I have a FBSD 4.10 install on a machine that the HDD has become full. > I would like to replace the drive with a larger one so does anyone > know any howtos on how to do a disk to disk transfer? > > I've down this with Linux before... copied the partitions over in > single user mode and reinstalled the boot manager although I suspect > there's some differences with FBSD as I've never replaced a disk on it > before. > > Many thanks, > > Scott. I see while I was typing this someone posted a FreeBSD howto. My simple procedure was to: * Make sure you have an install CD handy with the live filesystem, just in case you screw something up. :) * Make the slices and partitions on the new drive using sysinstall. * Mount them somewhere one at a time (say mount /dev/ad???? /mnt/newroot) * Use rsync to copy the files over to the new partition (in ports under net/rsync). I used rsync -avx src/ dst (man rsync for details). Other tools can be used too. I copied a linux installation once using plain old cp. * Adjust the fstab entries on the new partition to point to the new drive. If you remove the old drive you /may/ not need to do this. * Possibly reinstall the boot manager. Can't help you on FreeBSD's boot manager because I use grub. I think sysinstall will ask about installing it when you do the slices/partitions. HTH, Micah