From owner-freebsd-questions Wed May 3 20:18:55 2000 Delivered-To: freebsd-questions@freebsd.org Received: from freebie.lemis.com (freebie.lemis.com [192.109.197.137]) by hub.freebsd.org (Postfix) with ESMTP id 2CA3A37BF8F for ; Wed, 3 May 2000 20:18:46 -0700 (PDT) (envelope-from grog@freebie.lemis.com) Received: (from grog@localhost) by freebie.lemis.com (8.9.3/8.9.0) id MAA23132; Thu, 4 May 2000 12:49:06 +0930 (CST) Date: Thu, 4 May 2000 12:49:06 +0930 From: Greg Lehey To: Consultant Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Cloning a hard drive Message-ID: <20000504124906.G22025@freebie.lemis.com> References: <001a01bfb577$1a4f3f00$7ada4dd8@emerald> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0pre2i In-Reply-To: <001a01bfb577$1a4f3f00$7ada4dd8@emerald> Organization: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-418-838-708 WWW-Home-Page: http://www.lemis.com/~grog X-PGP-Fingerprint: 6B 7B C3 8C 61 CD 54 AF 13 24 52 F8 6D A4 95 EF Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Wednesday, 3 May 2000 at 23:16:13 -0400, Consultant wrote: > I have a hard drive with 3.4 installed on it and I do not what to change the > configuration so I would just like to be able ot clone this hard drive to an > new drive, what is the simplest way to go about this process. Use dd. If your drive is /dev/da2, and you want to copy it to /dev/da3, do: # disklabel -W /dev/rda3c # dd if=/dev/rda2c of=/dev/rda3c bs=128b The disklabel is necessary to make the label portion of the disk writable; otherwise your copy will fail with "Read only file system". Greg -- When replying to this message, please copy the original recipients. For more information, see http://www.lemis.com/questions.html Finger grog@lemis.com for PGP public key See complete headers for address and phone numbers To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message