Installation guide
Identify the device special files for the source and target disks
(dev/disk/dskNx). Use dsfmgr or hwmgr to identify and check disk
characteristics.
2. Before exiting diskconfig, note the physical location (bust, target,
and lun) of the source and target disks.
3. The /etc/sysconfigtab file lists the swap partitions that you will
need to recreate on the target disk. Use the swapon command to check
the swap partitions.
4. Create a /newdisk mount point and mount each partition of the
target in turn, beginning with the apartition. For example:
# /mount /dev/disk/disk6a /newdisk
5. Dump each partition in turn using the following command syntax:
# dump -0u -f - /dev/disk/disk0a | (cd /newdisk ; restore -r -f -)
6. Verify file ownerships and protection and ensure that all required
filesystem branches were dumped. You can do this by using the diff
command on the directory listings for the source and target disks.
Tru64 UNIX protects the first block of a disk with a valid disk label because
this is where the disk label is stored. As a result, if you clone a partition to
a partition on a target disk that contains a valid disk label, you must
decide whether you want to keep the existing disk label on that target disk.
If you want to maintain the disk label on the target disk, use the dd
command with the skip and seek options to move past the protected disk
label area on the target disk. Note that the target disk must be the same
size as or larger than the original disk.
To determine if the target disk has a label, use the following disklabel
command syntax:
disklabel -r target_device
You must specify the target device directory name (/dev) followed by the
raw device name, drive number, and partition c. If the disk does not
contain a label, the following message is displayed:
Bad pack magic number (label is damaged, or pack is unlabeled)
The following example shows a disk that already contains a label:
# disklabel -r /dev/rrz1c
type: SCSI
disk: rz26
label:
flags:
bytes/sector: 512
sectors/track: 57
7–30 Administering the UNIX File System