SUMMARY: copy partition table with dd?
Broun, Bevan
brounb at adi-limited.com
Wed Oct 24 18:36:36 EDT 2001
on Wed, Oct 24, 2001 at 04:36:58PM +1000, Broun, Bevan <brounb at 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 at 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 at mac.com
Neill, Mark (MB
Adrian Terranov
Michael Sulliva
Gabel Martin
Mike Ekholm
Dietsch, Nathan
Jay Lessert
Graeme Burke
David Foster
BB
More information about the sunmanagers
mailing list