Path: utzoo!mnetor!uunet!wucs1!wuibc!sgistl!larry
From: larry@sgistl.SGI.COM (Larry Autry)
Newsgroups: comp.unix.wizards
Subject: Re: Disk to disk copies
Message-ID: <5601@sgistl.SGI.COM>
Date: 5 May 88 11:31:36 GMT
References: <13119@brl-adm.ARPA> <77@tarkus.UUCP> <346@cloud9.UUCP> <3149@saturn.ucsc.edu>
Organization: Silicon Graphics, Inc., Mt.View, CA., St.Louis Ofc.
Lines: 35
Summary: Partitions and labels.

In article <3149@saturn.ucsc.edu>, haynes@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@ucscc.ucsc.edu
-> haynes@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@sgistl.sgi.com
       or
{ucbvax,sun,ames,pyramid,decwrl}!sgi!sgistl!larry