Date: Mon, 01 Oct 2001 08:32:51 +0200 (CEST) From: Micke Josefsson <mj@isy.liu.se> To: Mario Doria <madd@tecdigital.net> Cc: FreeBSD Questions <questions@FreeBSD.ORG> Subject: RE: Copy a disk using dd Message-ID: <XFMail.20011001083251.mj@isy.liu.se> In-Reply-To: <002f01c14947$ac9a8d00$0a00a8c0@midgar>
next in thread | previous in thread | raw e-mail | index | archive | help
It works if you are absolutely certain that the disks are EXACTLY identical. I.e. the disk you are copying to only have bad sectors in common with the source drive. Are you willing to take that risc? Probably not. Format the second disk then use tar or cpio to get the info over. Off the top of my head: cd /wherefrom find . -depth -print | cpio -pudm /whereto or according to man tar(1): To move file hierarchies, use a command line like this: tar -cf - -C srcdir . | tar xpf - -C destdir /Micke On 30-Sep-2001 Mario Doria wrote: > Hi, > > On some machine with 2 identical disks, I want to copy everything on the > first drive to the second drive (mirror copy). The disks are da0 and da1. > I'm thinking of using: > > dd if=/dev/da0 of=/dev/da1 bs=8192 > > Is this OK? > > The purpose of this is to later remove the second hard disk, and use it on > another machine (like installing using Norton's Ghost). Both machines are > identical, I just don't want to do two separate installations. > > Thanks, > > > Mario Doria > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message ---------------------------------- Michael Josefsson, MSEE mj@isy.liu.se This message was sent by XFMail running on FreeBSD 4.4-STABLE ---------------------------------- 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?XFMail.20011001083251.mj>