Hi all,
Have an issue here. I have 2 drives that are marketed as being the same size 32G. However, the source drive is slightly larger than the target drive for the dump.
Is there a way to make a change so that I can dump sd0 to sd1?
sd0 (system drive)
sd1 (target drive)
Process so far:
disklabel sd0 > /tmp/label.0
disklabel sd0 > /tmp/label.1
fdisk -i /dev/rsd1c
disklabel -Rr /dev/rsd1c /tmp/label.0 (ERROR - unknown option -r???)
removed -r from command
disklabel -R /dev/rsd1c /tmp/label.0 (ERROR - disklabel: partition k: partition extends past end of unit)
I took the c sector size from label.1 and replaced label.0 c sector size
disklabel -e sd0
Code:
/dev/rsd0c:
type: SCSI
disk: SCSI disk
label: Cruzer
duid: a32277e951b9534c
flags:
bytes/sector: 512
sectors/track: 32
tracks/cylinder: 255
sectors/cylinder: 8160
cylinders: 7663
total sectors: 62530624
boundstart: 32
boundend: 62530080
drivedata: 0
16 partitions:
# size offset fstype [fsize bsize cpg]
a: 4202368 32 4.2BSD 2048 16384 1 # /
b: 8608800 4202400 swap # none
c: 62530624 0 unused
d: 4202400 12811200 4.2BSD 2048 16384 1 # /tmp
e: 8396640 17013600 4.2BSD 2048 16384 1 # /var
f: 8396640 25410240 4.2BSD 2048 16384 1 # /usr
g: 2105280 33806880 4.2BSD 2048 16384 1 # /usr/X11R6
h: 6299520 35912160 4.2BSD 2048 16384 1 # /usr/local
i: 8396640 42211680 4.2BSD 2048 16384 1 # /usr/src
j: 6299520 50608320 4.2BSD 2048 16384 1 # /usr/obj
k: 5622240 56907840 4.2BSD 2048 16384 1 # /home
# Notes:
# Up to 16 partitions are valid, named from 'a' to 'p'. Partition 'a' is
# your root filesystem, 'b' is your swap, and 'c' should cover your whole
# disk. Any other partition is free for any use. 'size' and 'offset' are
# in 512-byte blocks. fstype should be '4.2BSD', 'swap', or 'none' or some
/tmp/EdDk.akDxsfJLpVV: unmodified: line 1
disklabel -e sd1
Code:
# /dev/rsd1c:
type: SCSI
disk: SCSI disk
label: Cruzer
duid: d8fd3d7968f58007
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 255
sectors/cylinder: 16065
cylinders: 3800
total sectors: 61056064
boundstart: 64
boundend: 61047000
drivedata: 0
16 partitions:
# size offset fstype [fsize bsize cpg]
c: 61056064 0 4.2BSD 2048 16384 1
# Notes:
# Up to 16 partitions are valid, named from 'a' to 'p'. Partition 'a' is
# your root filesystem, 'b' is your swap, and 'c' should cover your whole
# disk. Any other partition is free for any use. 'size' and 'offset' are
# in 512-byte blocks. fstype should be '4.2BSD', 'swap', or 'none' or some
# other values. fsize/bsize/cpg should typically be '2048 16384 16' for a
# 4.2BSD filesystem (or '512 4096 16' except on alpha, sun4, ...)
Any solutions where I can dump this on the new drive as a emergency clone. I'd like to have a fallback that i can pop in when this drive dies.
Thanks