From owner-freebsd-hackers Sun Feb 28 6:39:18 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from chmls06.mediaone.net (chmls06.mediaone.net [24.128.1.71]) by hub.freebsd.org (Postfix) with ESMTP id B023214EB5 for ; Sun, 28 Feb 1999 06:39:16 -0800 (PST) (envelope-from housley@frenchknot.ne.mediaone.net) Received: from frenchknot.ne.mediaone.net (frenchknot.ne.mediaone.net [24.128.74.10]) by chmls06.mediaone.net (8.8.7/8.8.7) with ESMTP id JAA17402 for ; Sun, 28 Feb 1999 09:38:59 -0500 (EST) Received: from frenchknot.ne.mediaone.net (localhost [127.0.0.1]) by frenchknot.ne.mediaone.net (8.9.2/8.9.1) with ESMTP id JAA34093 for ; Sun, 28 Feb 1999 09:38:58 -0500 (EST) (envelope-from housley@frenchknot.ne.mediaone.net) Message-ID: <36D95501.57F7A4B7@frenchknot.ne.mediaone.net> Date: Sun, 28 Feb 1999 09:38:57 -0500 From: "James E. Housley" X-Mailer: Mozilla 4.5 [en] (X11; U; FreeBSD 3.1-STABLE i386) X-Accept-Language: en MIME-Version: 1.0 To: hackers@freebsd.org Subject: Slice duplication quiestion Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I have to 6G IDE drives. I have mirrored the e and f slices with ccd. I want to copy the a slice so that under failure I can recover. I have tried dd if=/dev/rwd0s1a of=/dev/rwd2s1a This say the rwd2s1a is a read-only file-system. What am I doing wrong? Here are the disklabes. # /dev/rwd0c: type: ESDI disk: wd0s1 label: flags: bytes/sector: 512 sectors/track: 63 tracks/cylinder: 255 sectors/cylinder: 16065 cylinders: 783 sectors/unit: 12594897 rpm: 3600 interleave: 1 trackskew: 0 cylinderskew: 0 headswitch: 0 # milliseconds track-to-track seek: 0 # milliseconds drivedata: 0 8 partitions: # size offset fstype [fsize bsize bps/cpg] a: 196608 0 4.2BSD 1024 8192 16 # (Cyl. 0 - 12*) b: 155648 196608 swap # (Cyl. 12*- 21*) c: 12594897 0 unused 0 0 # (Cyl. 0 - 783*) e: 9437184 352256 4.2BSD 1024 8192 16 # (Cyl. 21*- 609*) f: 2805457 9789440 4.2BSD 1024 8192 16 # (Cyl. 609*- 783*) -- # /dev/rwd2c: type: ESDI disk: wd0s1 label: flags: bytes/sector: 512 sectors/track: 63 tracks/cylinder: 255 sectors/cylinder: 16065 cylinders: 783 sectors/unit: 12594897 rpm: 3600 interleave: 1 trackskew: 0 cylinderskew: 0 headswitch: 0 # milliseconds track-to-track seek: 0 # milliseconds drivedata: 0 8 partitions: # size offset fstype [fsize bsize bps/cpg] a: 196608 0 4.2BSD 1024 8192 16 # (Cyl. 0 - 12*) b: 155648 196608 swap # (Cyl. 12*- 21*) c: 12594897 0 unused 0 0 # (Cyl. 0 - 783*) e: 9437184 352256 4.2BSD 1024 8192 16 # (Cyl. 21*- 609*) f: 2805457 9789440 4.2BSD 1024 8192 16 # (Cyl. 609*- 783*) I know I still need to do disklabel -B ...... to make it bootable. But if this were a copy the diskfix floppy would be enought to recover. Jim James E. Housley PGP: 1024/03983B4D System Supply, Inc. 2C 3F 3A 0D A8 D8 C3 13 Pager: pagejim@notepage.com 7C F0 B5 BF 27 8B 92 FE To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message