From owner-freebsd-questions Thu Jul 22 1: 1:56 1999 Delivered-To: freebsd-questions@freebsd.org Received: from hermes.axis.de (hermes.axis.de [194.163.241.7]) by hub.freebsd.org (Postfix) with SMTP id C389F14F43 for ; Thu, 22 Jul 1999 01:01:49 -0700 (PDT) (envelope-from maret@axis.de) Received: from erlangen01.axis.de by hermes.axis.de via smtpd (for hub.FreeBSD.ORG [204.216.27.18]) with SMTP; 22 Jul 1999 08:01:50 UT Received: (private information removed) Message-ID: <91DA20EC3C3DD211833400A0245A4EA9BA1087@erlangen01.axis.de> From: Alexander Maret To: 'David Coder' Cc: "'freebsd-questions@freebsd.org'" Subject: RE: Is it possible to clone a hard disk? Date: Thu, 22 Jul 1999 10:01:43 +0200 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2232.9) Content-Type: text/plain; charset="iso-8859-1" Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi, is it possible to clone only a slice and not the whole drive? I have a 3.2-R System with vinum-mirrored disks. Both drives are configured the same way. The only problem is that vinum doesn't mirror root slices. So I would like to clone only the root slice from time to time to keep the second drive up-to-date. Should I do this with dd or can I do a "cp /dev/da0a /dev/da1a" Both partitions have the same size and the same position on both drives. Alex > -----Original Message----- > From: David Coder [mailto:dacoder@dcoder.com] > > Before doing the disk copy, make sure to substitute "da1" for > all occurrences of > "da0" in /etc/fstab. Also, check /boot/defaults/loader.conf > to make sure it > refers to the right disks. Then, after the copy, change > these files back. > > On Wed, 14 Jul 1999, Jake Ott wrote: > > > Even easier...a device copy. > > > > cp /dev/da0 /dev/da1 > > > > Makes an exact copy of the drive. Very cool, however this > assumes that > > you are useing two of the same drives. Exact same drives. > It does a bit > > for bit copy of the entire drive. So this copies any boot, > diag, or other > > kinda weird sectors. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message