here is the DD command I used
First I booted to single usermode from CD rom
here is the dd command:
dd if=dev/dsk/c0t0d0s2 of=/dev/dsk/c0t1d0s2 bs=256k
here is more info after the cloning, when I stil had the original as master and the clone as slave:
*****************
Partion of the master drive
# prtvtoc /dev/dsk/c0t0d0s2
- /dev/dsk/c0t0d0s2 partition map
*
- Dimensions:
-
512 bytes/sector
-
63 sectors/track
-
16 tracks/cylinder
- 1008 sectors/cylinder
- 17662 cylinders
- 17660 accessible cylinders
*
- Flags:
- 1: unmountable
- 10: read-only
*
- Unallocated space:
-
First Sector Last
-
Sector Count Sector
- 17800272 1008 17801279
*
-
First Sector Last
- Partition Tag Flags Sector Count Sector Mount Directory
0 2 00 0 2048256 2048255 /
1 3 01 2048256 2048256 4096511
2 5 00 0 17801280 17801279
5 4 00 4096512 2048256 6144767 /usr
6 0 00 6144768 11655504 17800271 /opt
#
#
Partition of the cloned slave drive
# prtvtoc /dev/dsk/c0t1d0s2
- /dev/dsk/c0t1d0s2 partition map
*
- Dimensions:
-
512 bytes/sector
-
63 sectors/track
-
16 tracks/cylinder
- 1008 sectors/cylinder
- 17662 cylinders
- 17660 accessible cylinders
*
- Flags:
- 1: unmountable
- 10: read-only
*
- Unallocated space:
-
First Sector Last
-
Sector Count Sector
- 17800272 1008 17801279
*
-
First Sector Last
- Partition Tag Flags Sector Count Sector Mount Directory
0 2 00 0 2048256 2048255 /usr/local
1 3 01 2048256 2048256 4096511
2 5 00 0 17801280 17801279
5 4 00 4096512 2048256 6144767
6 0 00 6144768 11655504 17800271
#
#
# format
Searching for disks...done
AVAILABLE DISK SELECTIONS:
0. c0t0d0 <ST39140A cyl 17660 alt 2 hd 16 sec 63>
/pci@1f,0/pci@1,1/ide@3/dad@0,0
1. c0t1d0 <ST39140A cyl 17660 alt 2 hd 16 sec 63>
/pci@1f,0/pci@1,1/ide@3/dad@1,0
Specify disk (enter its number): 0
selecting c0t0d0
No defect list found
[disk formatted, no defect list found]
Warning: Current Disk has mounted partitions.
FORMAT MENU:
disk - select a disk
type - select (define) a disk type
partition - select (define) a partition table
current - describe the current disk
format - format and analyze the disk
repair - repair a defective sector
show - translate a disk address
label - write label to the disk
analyze - surface analysis
defect - defect list management
backup - search for backup labels
verify - read and display labels
save - save new disk/partition definitions
volname - set 8-character volume name
!<cmd> - execute <cmd>, then return
quit
format> partition
PARTITION MENU:
0 - change `0' partition
1 - change `1' partition
2 - change `2' partition
3 - change `3' partition
4 - change `4' partition
5 - change `5' partition
6 - change `6' partition
7 - change `7' partition
select - select a predefined table
modify - modify a predefined partition table
name - name the current table
print - display the current table
label - write partition map and label to the disk
!<cmd> - execute <cmd>, then return
quit
partition> print
Current partition table (original):
Total disk cylinders available: 17660 + 2 (reserved cylinders)
Part Tag Flag Cylinders Size Blocks
0 root wm 0 - 2031 1000.12MB (2032/0/0) 2048256
1 swap wu 2032 - 4063 1000.12MB (2032/0/0) 2048256
2 backup wm 0 - 17659 8.49GB (17660/0/0) 17801280
3 unassigned wm 0 0 (0/0/0) 0
4 unassigned wm 0 0 (0/0/0) 0
5 usr wm 4064 - 6095 1000.12MB (2032/0/0) 2048256
6 unassigned wm 6096 - 17658 5.56GB (11563/0/0) 11655504
7 unassigned wm 0 0 (0/0/0) 0
partition> qu
FORMAT MENU:
disk - select a disk
type - select (define) a disk type
partition - select (define) a partition table
current - describe the current disk
format - format and analyze the disk
repair - repair a defective sector
show - translate a disk address
label - write label to the disk
analyze - surface analysis
defect - defect list management
backup - search for backup labels
verify - read and display labels
save - save new disk/partition definitions
volname - set 8-character volume name
!<cmd> - execute <cmd>, then return
quit
format> qu
# format
Searching for disks...done
AVAILABLE DISK SELECTIONS:
0. c0t0d0 <ST39140A cyl 17660 alt 2 hd 16 sec 63>
/pci@1f,0/pci@1,1/ide@3/dad@0,0
1. c0t1d0 <ST39140A cyl 17660 alt 2 hd 16 sec 63>
/pci@1f,0/pci@1,1/ide@3/dad@1,0
Specify disk (enter its number): 1
selecting c0t1d0
No defect list found
[disk formatted, no defect list found]
Warning: Current Disk has mounted partitions.
FORMAT MENU:
disk - select a disk
type - select (define) a disk type
partition - select (define) a partition table
current - describe the current disk
format - format and analyze the disk
repair - repair a defective sector
show - translate a disk address
label - write label to the disk
analyze - surface analysis
defect - defect list management
backup - search for backup labels
verify - read and display labels
save - save new disk/partition definitions
volname - set 8-character volume name
!<cmd> - execute <cmd>, then return
quit
format> parti
PARTITION MENU:
0 - change `0' partition
1 - change `1' partition
2 - change `2' partition
3 - change `3' partition
4 - change `4' partition
5 - change `5' partition
6 - change `6' partition
7 - change `7' partition
select - select a predefined table
modify - modify a predefined partition table
name - name the current table
print - display the current table
label - write partition map and label to the disk
!<cmd> - execute <cmd>, then return
quit
partition> pri
Current partition table (original):
Total disk cylinders available: 17660 + 2 (reserved cylinders)
Part Tag Flag Cylinders Size Blocks
0 root wm 0 - 2031 1000.12MB (2032/0/0) 2048256
1 swap wu 2032 - 4063 1000.12MB (2032/0/0) 2048256
2 backup wm 0 - 17659 8.49GB (17660/0/0) 17801280
3 unassigned wm 0 0 (0/0/0) 0
4 unassigned wm 0 0 (0/0/0) 0
5 usr wm 4064 - 6095 1000.12MB (2032/0/0) 2048256
6 unassigned wm 6096 - 17658 5.56GB (11563/0/0) 11655504
7 unassigned wm 0 0 (0/0/0) 0