From owner-freebsd-questions Sun Sep 14 03:40:10 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id DAA04895 for questions-outgoing; Sun, 14 Sep 1997 03:40:10 -0700 (PDT) Received: from fly.HiWAAY.net (root@fly.HiWAAY.net [208.147.154.56]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id DAA04875 for ; Sun, 14 Sep 1997 03:40:05 -0700 (PDT) Received: from nospam.hiwaay.net (tnt2-33.HiWAAY.net [208.147.148.33]) by fly.HiWAAY.net (8.8.6/8.8.6) with ESMTP id FAA23630; Sun, 14 Sep 1997 05:40:03 -0500 (CDT) Received: from localhost (localhost [127.0.0.1]) by nospam.hiwaay.net (8.8.7/8.8.4) with ESMTP id FAA25803; Sun, 14 Sep 1997 05:02:38 -0500 (CDT) Message-Id: <199709141002.FAA25803@nospam.hiwaay.net> X-Mailer: exmh version 2.0zeta 7/24/97 To: justin@ashworth.org cc: questions@FreeBSD.ORG From: dkelly@hiwaay.net Subject: Re: Disk copying In-reply-to: Message from Justin Ashworth of "Sat, 13 Sep 1997 14:32:46 PDT." <341B067E.5BB24FEB@ashworth.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sun, 14 Sep 1997 05:02:38 -0500 Sender: owner-freebsd-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Justin Ashworth writes: > > What is the easiest and most reliable way to copy my data from one hard > drive to another? My primary FreeBSD hard drive is doing some funny > stuff and I'd like to transfer the data over to a replacement drive > without losing anything or having to redo the install. Is there any way > I can do this without having to format, partition, etc. manually? Unless the two drives are identical, or at least the 2nd is larger, you could use "dd if=/dev/rsd0 of=rsd1 bs=1024k" or similar. Need to do more checking on the exact device to use for the copy, you want a "whole device" device, not one working out of slices. I suggest you bite the bullet and let sysinstall create a new partition table and all that good stuff on your new disk. It'll even mkfs for you. You really wanted to increase your root, swap and var partition sizes, didn'ty you? Then use dump piped into restore for each of your partitions. -- David Kelly N4HHE, dkelly@hiwaay.net ===================================================================== The human mind ordinarily operates at only ten percent of its capacity -- the rest is overhead for the operating system.