SUMMARY: copy partition table with dd?

From: Broun, Bevan <brounb_at_adi-limited.com>
Date: Wed Oct 24 2001 - 18:36:36 EDT
on Wed, Oct 24, 2001 at 04:36:58PM +1000, Broun, Bevan <brounb@adi-limited.com> wrote:
> I have two identical scsi disks in an E420, I want to copy the partition
> table of one to the other with dd, how many bytes do I need to do and is
> there any problems with this?

Thanks for the many answers. The majority say "dont use dd" do:

prtvtoc /dev/rdsk/c0t0d0s2 | fmthard -s - /dev/rdsk/c0t1d0s2

And it was done.

A few pointed out that this can be done within
the format command:

># format 
>select original disk number
>partition
>print partion (To confirm it's the correct partition table)
>name partition
>(Then type a name, use quotes when it contains spaces or weird characters)
>quit
>disk
>(Select then new disk number)
>partition
>print partition (Confirm it's not correct etc. ;^)
>select partition
>(Then select the number of the previously named partition from the list)
>label
>quit
>quit


Thanks to:

oscar.goosens@d                           
Mr Rene Occelli 
Hendrik Visage  
Rasal RKU23 Kum 
David Mancheste 
Gnanagurusamy   
Noel Hunt       
Steve Mickeler  
Matthew Keen    
Torsten Johr    
Carsten B. Knud 
Paul Richards   
Eric van de Mee                                                                                                        
Matthew Stier   
Tim Chipman     
eshafto@mac.com 
Neill, Mark (MB 
Adrian Terranov 
Michael Sulliva 
Gabel Martin    
Mike Ekholm     
Dietsch, Nathan 
Jay Lessert     
Graeme Burke    
David Foster    

BB
Received on Wed Oct 24 23:36:36 2001

This archive was generated by hypermail 2.1.8 : Wed Mar 23 2016 - 16:32:34 EDT