From owner-freebsd-questions Mon Sep 30 13:55:48 2002 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 E2BB437B401 for ; Mon, 30 Sep 2002 13:55:46 -0700 (PDT) Received: from sage-one.net (adsl-65-71-135-137.dsl.crchtx.swbell.net [65.71.135.137]) by mx1.FreeBSD.org (Postfix) with ESMTP id C263243E81 for ; Mon, 30 Sep 2002 13:55:45 -0700 (PDT) (envelope-from jackstone@sage-one.net) Received: from sagea (sagea [192.168.0.3]) by sage-one.net (8.11.6/8.11.6) with SMTP id g8UKtaN92657; Mon, 30 Sep 2002 15:55:37 -0500 (CDT) (envelope-from jackstone@sage-one.net) Message-Id: <3.0.5.32.20020930155536.028ece30@mail.sage-one.net> X-Sender: jackstone@mail.sage-one.net X-Mailer: QUALCOMM Windows Eudora Pro Version 3.0.5 (32) Date: Mon, 30 Sep 2002 15:55:36 -0500 To: "Pranav A. Desai" , From: "Jack L. Stone" Subject: Re: how to use 'dd' to create image of a hard drive? In-Reply-To: References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG At 03:50 PM 9.30.2002 -0500, Pranav A. Desai wrote: > >Hi all! > > Can I use something like > >dd if=/dev/ad0 of=/dev/ad1 > >to copy every thing from first drive to the second and be able to boot >from the second drive? Do I need to specify block size ? The second drive >doesnt have anything on it (filesystem or slices). > >Thanks > >-Pranav > You would use this for IDE HDs: # dd if=/dev/ad0 of=/dev/ad1 bs=8192 #Change the "bs" switch to something that works best for you. Of importance is that ad1 be equal to or larger than ad0. If larger, then that larger portion will be unusable. Best regards, Jack L. Stone, Administrator SageOne Net http://www.sage-one.net jackstone@sage-one.net To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message