Disk to disk copies

Larry Autry larry at sgistl.SGI.COM
Thu May 5 21:31:36 AEST 1988


In article <3149 at saturn.ucsc.edu>, haynes at ucscc.UCSC.EDU (99700000) writes:
-> BTW, if you copy disk-to-disk on the 'a' partition on something
-> like a Sun that uses disk labels, be aware that you also copy
-> the label.
-> 
-> haynes at ucscc.ucsc.edu
-> haynes at ucscc.bitnet
-> ..ucbvax!ucscc!haynes

Here is a label.  There is only one on the disk.

	fs     base          size
	       sectors(cylinders)
	a:    320(   1),  18880(  59) Root   <- no label here
	b:  19200(  60),  32000( 100) Swap     
	c:  51200( 160),  64000( 200)           
	d: 115200( 360), 142720( 446)       
	f:  51200( 160), 206720( 646)
	g:    320(   1), 257600( 805)
	h:      0(   0), 257920( 806)        <- label is here

Partition 'h' includes the label.  You need to 'dd' copy a partition 
that does not include cylinder (or track) 0.  Cylinder 0 is
normally the location of bad block information as well.  From my
experience, it is ok to copy partition 'c' on a disk to partition 'c' on
another.  You are well advised not to copy partition 'h' if 'h' on your 
system is the definition of the entire disk including the label.  Unless I
am mistaken, all hard disks used with Un*x need to have labels.  
If Sun's disk starts at '0' then that may be problem in this case.  

-- 
					Larry Autry
larry at sgistl.sgi.com
       or
{ucbvax,sun,ames,pyramid,decwrl}!sgi!sgistl!larry



More information about the Comp.unix.wizards mailing list