Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 28 Feb 1999 09:38:57 -0500
From:      "James E. Housley" <housley@frenchknot.ne.mediaone.net>
To:        hackers@freebsd.org
Subject:   Slice duplication quiestion
Message-ID:  <36D95501.57F7A4B7@frenchknot.ne.mediaone.net>

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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?36D95501.57F7A4B7>