From owner-freebsd-questions@FreeBSD.ORG Tue Feb 14 18:18:21 2006 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 E468716A422 for ; Tue, 14 Feb 2006 18:18:20 +0000 (GMT) (envelope-from joe@netmusician.org) Received: from netmusician.org (netmusician.org [209.67.223.75]) by mx1.FreeBSD.org (Postfix) with ESMTP id 885A943D48 for ; Tue, 14 Feb 2006 18:18:20 +0000 (GMT) (envelope-from joe@netmusician.org) Received: from localhost (localhost [127.0.0.1]) by netmusician.org (Postfix) with ESMTP id 038A9730AD; Tue, 14 Feb 2006 13:18:20 -0500 (EST) Received: from netmusician.org ([127.0.0.1]) by localhost (netmusician.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 01256-05; Tue, 14 Feb 2006 13:18:18 -0500 (EST) Received: from [129.79.115.14] (jauty.journalism.indiana.edu [129.79.115.14]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by netmusician.org (Postfix) with ESMTP id B17917303E; Tue, 14 Feb 2006 13:18:18 -0500 (EST) In-Reply-To: References: Mime-Version: 1.0 (Apple Message framework v746.2) X-Priority: 3 (Normal) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: Content-Transfer-Encoding: 7bit From: Joe Auty Date: Tue, 14 Feb 2006 13:18:17 -0500 To: fbsd_user@a1poweruser.com X-Mailer: Apple Mail (2.746.2) X-Virus-Scanned: by amavisd-new at netmusician.org Cc: freebsd-questions@freebsd.org Subject: Re: best approach to clone a disk? 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: Tue, 14 Feb 2006 18:18:21 -0000 Thanks for this! Unfortunately, I don't really have access to a Windows PC, and I'm also not sure I have enough space to both store an image, and extract the files from the image to the same hard drive... I'm thinking of trying the instructions here: http://www.feyrer.de/g4u/#copydisk and using growfs to grow the partition size. I'm just not sure how to determine how many sectors I should grow the disk to, but perhaps I can cross that bridge when it comes... any ideas? On Feb 14, 2006, at 12:50 PM, fbsd_user wrote: > I use the Norton ghost program. You have to first install ghost on a > window box and then create a ms/dos bootable floppy with ghost on > it. Them boot your FreeBSD box with that floppy and ghost image the > hard drive with mbr to cdrom or dvd. You can then boot the target > box with that same floppy and restore the cdrom/dvd even if the hd > is bigger than the source one. > > Using 2003 version of ghost I first zero out all the free space on > FreeBSD so ghost will compress it in the backup image which makes > ghost run faster on bkup and restore. > > > dd if=/dev/zero of=/filler bs=1m ; rm /filler > dd if=/dev/zero of=/tmp/filler bs=1m ; rm /tmp/filler > dd if=/dev/zero of=/usr/filler bs=1m ; rm /usr/filler > dd if=/dev/zero of=/var/filler bs=1m ; rm /var/filler > > Of course this is a hands on method. You have to have physical > access to the source and target pc's to do this. > > -----Original Message----- > From: owner-freebsd-questions@freebsd.org > [mailto:owner-freebsd-questions@freebsd.org]On Behalf Of Joe Auty > Sent: Tuesday, February 14, 2006 11:49 AM > To: freebsd-questions@freebsd.org > Subject: best approach to clone a disk? > > > Okay, > > In taking the advice of an earlier poster in suggesting that the > instructions located here: > > http://www.unixcities.com/howto/ > > Are rather old, allow me to make my question a little broader in > scope: > > What is the best way to clone a disk in FreeBSD? Do you have any > step- > by-step instructions? The instructions I used above (even replacing > the restore -r flag with a -x) produced a core dump. > > Can I use DD on two disks of different size? Do you recommend Ghost > for Unix? Any other suggestions or recommendations should the dump > command just not work for me? > > > Thanks in advance! > > > > > ----------- > Joe Auty > NetMusician: web publishing software for musicians > http://www.netmusician.org > joe@netmusician.org > > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org" > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions- > unsubscribe@freebsd.org"