From owner-freebsd-questions Mon Sep 15 21:48:46 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id VAA22677 for questions-outgoing; Mon, 15 Sep 1997 21:48:46 -0700 (PDT) Received: from gdi.uoregon.edu (cisco-ts13-line11.uoregon.edu [128.223.150.160]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id VAA22657 for ; Mon, 15 Sep 1997 21:48:39 -0700 (PDT) Received: from localhost (dwhite@localhost) by gdi.uoregon.edu (8.8.5/8.8.5) with SMTP id VAA03170; Mon, 15 Sep 1997 21:48:28 -0700 (PDT) Date: Mon, 15 Sep 1997 21:48:27 -0700 (PDT) From: Doug White X-Sender: dwhite@localhost Reply-To: Doug White To: dkelly@HiWAAY.net cc: justin@ashworth.org, questions@FreeBSD.ORG Subject: Re: Disk copying In-Reply-To: <199709141002.FAA25803@nospam.hiwaay.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk On Sun, 14 Sep 1997 dkelly@HiWAAY.net wrote: > Justin Ashworth writes: > > > > What is the easiest and most reliable way to copy my data from one hard > > drive to another? > 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 just realized that I documented the safe way to do this in the disk formatting tutorial (now at http://www.freebsd.org/tutorials/diskformat -- update your URLs!). It's basically a tar c | tar x type operation except it calls pax directly. (When I did it using dump/restore I didn't keep the command lines, but the pax style was submitted to me and is equivalent.) Doug White | University of Oregon Internet: dwhite@resnet.uoregon.edu | Residence Networking Assistant http://gladstone.uoregon.edu/~dwhite | Computer Science Major Spam routed to /dev/null by Procmail | Death to Cyberpromo