Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 4 May 2000 12:49:06 +0930
From:      Greg Lehey <grog@lemis.com>
To:        Consultant <consult9@bellsouth.net>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: Cloning a hard drive
Message-ID:  <20000504124906.G22025@freebie.lemis.com>
In-Reply-To: <001a01bfb577$1a4f3f00$7ada4dd8@emerald>
References:  <001a01bfb577$1a4f3f00$7ada4dd8@emerald>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000504124906.G22025>