From owner-freebsd-questions Wed May 9 13:54:57 2001 Delivered-To: freebsd-questions@freebsd.org Received: from mtiwmhc26.worldnet.att.net (mtiwmhc26.worldnet.att.net [204.127.131.51]) by hub.freebsd.org (Postfix) with ESMTP id CC51E37B422 for ; Wed, 9 May 2001 13:54:54 -0700 (PDT) (envelope-from pc-doc@worldnet.att.com) Received: from blaze ([12.72.26.188]) by mtiwmhc26.worldnet.att.net (InterMail vM.4.01.03.16 201-229-121-116-20010115) with SMTP id <20010509205453.OWV1648.mtiwmhc26.worldnet.att.net@blaze> for ; Wed, 9 May 2001 20:54:53 +0000 Message-ID: <001001c0d8ca$3e500980$0864a8c0@mlg.org> From: "PC Doc" To: Subject: Use DD to make image copy of dual boot drive? Date: Wed, 9 May 2001 13:54:12 -0700 MIME-Version: 1.0 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi, I have what's probably a dumb question, so please forgive my ignorance. I have a FreeBSD system (2.2.8, yes, I know it's old, it's getting rebuilt as soon as 4.3 seems to settle down) that is dual booted with Windows 98 on the first partition and FreeBSD 2.2.8 on the second. I have two seemly identical 6.4 GB drives. One is WD and the other is a Quantum. Both show exactly the same number of cylinders, heads, SPT, and total number of sectors. I'd like to make a complete image copy (roughly) of the primary drive (wd0) to the second drive (wd1), which would include both the 98 and the FreeBSD partition. Can I do this using DD? Assuming I could boot into an "emergency" shell, is that a "memory" file system for root? Meaning both of the two file systems / and /usr would be synced and closed. I've tried Drivecopy 4, disabling the smart sector copy so it should copy everything, but it gets an error part of the way into the FreeBSD partition, and I've had the system reboot when I get to a certain point in a tape backup. Something's probably wrong either with the disk or the file system, but I see any errors in the log (that I can recognize as errors) Is copying the whole disk, sector by sector doable with DD? What would the command be? I think the 'c' partition refers to the whole disk so I would guess something like: dd if=/dev/rwd0c of=/dev/rw1c bs=??? I'm not sure about the devices and what would be a good block size. Do I need to use 512 bytes? The disks say: 32-bit mult-block-16 so that that mean an "efficient" block size would be 16x512? Or would a track (63x512) be better? Any clues for the clueless would be greatly appreciated. I'll get the hang of this yet! Thanks, Mark To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message