After dd if=/dev/ad7s2 of=/dev/ad4s4 bs=16M
and edited /etc/fstab booting and working with ad4s4 looks fine,
but comparing bsdlabel of ad4s4 to original shows this:
root@~: bsdlabel ad7s2
# /dev/ad7s2:
8 partitions:
# size offset fstype [fsize bsize bps/cpg]
a: 4194304 33554432 4.2BSD 0 0 0
c: 157196025 0 unused 0 0 # "raw" part, don't edit
d: 16777216 0 4.2BSD 0 0 0
e: 16777216 16777216 4.2BSD 0 0 0
f: 41943040 37748736 4.2BSD 0 0 0
g: 41943040 79691776 4.2BSD 0 0 0
h: 35561209 121634816 4.2BSD 0 0 0
root@~: bsdlabel ad4s4
# /dev/ad4s4:
8 partitions:
# size offset fstype [fsize bsize bps/cpg]
a: 4194304 50342357 4.2BSD 0 0 0
c: 157196025 16787925 unused 0 0 # "raw" part, don't edit
d: 16777216 16787925 4.2BSD 0 0 0
e: 16777216 33565141 4.2BSD 0 0 0
f: 41943040 54536661 4.2BSD 0 0 0
g: 41943040 96479701 4.2BSD 0 0 0
h: 35561209 138422741 4.2BSD 0 0 0
partition c: partition extends past end of unit
bsdlabel: partition c doesn't start at 0!
bsdlabel: An incorrect partition c may cause problems for standard system utilities
partition h: partition extends past end of unit
root@~:
Now I like to know, why this happens. Sizes of partitions are same but offsets are different.
Having read bsdlabel(8) I wanted to save configuration of ad7s2 to a file and apply this to ad4s4. But I don't get it how to do this.
I didn't find where the bsdlabel data are stored on the disk.
After all I question, if I did dd the right way (I want dd not dump etc.)?
and edited /etc/fstab booting and working with ad4s4 looks fine,
but comparing bsdlabel of ad4s4 to original shows this:
root@~: bsdlabel ad7s2
# /dev/ad7s2:
8 partitions:
# size offset fstype [fsize bsize bps/cpg]
a: 4194304 33554432 4.2BSD 0 0 0
c: 157196025 0 unused 0 0 # "raw" part, don't edit
d: 16777216 0 4.2BSD 0 0 0
e: 16777216 16777216 4.2BSD 0 0 0
f: 41943040 37748736 4.2BSD 0 0 0
g: 41943040 79691776 4.2BSD 0 0 0
h: 35561209 121634816 4.2BSD 0 0 0
root@~: bsdlabel ad4s4
# /dev/ad4s4:
8 partitions:
# size offset fstype [fsize bsize bps/cpg]
a: 4194304 50342357 4.2BSD 0 0 0
c: 157196025 16787925 unused 0 0 # "raw" part, don't edit
d: 16777216 16787925 4.2BSD 0 0 0
e: 16777216 33565141 4.2BSD 0 0 0
f: 41943040 54536661 4.2BSD 0 0 0
g: 41943040 96479701 4.2BSD 0 0 0
h: 35561209 138422741 4.2BSD 0 0 0
partition c: partition extends past end of unit
bsdlabel: partition c doesn't start at 0!
bsdlabel: An incorrect partition c may cause problems for standard system utilities
partition h: partition extends past end of unit
root@~:
Now I like to know, why this happens. Sizes of partitions are same but offsets are different.
Having read bsdlabel(8) I wanted to save configuration of ad7s2 to a file and apply this to ad4s4. But I don't get it how to do this.
I didn't find where the bsdlabel data are stored on the disk.
After all I question, if I did dd the right way (I want dd not dump etc.)?