Notes on doing a ufsrestore on a new disk for bigdog & guidedog. It is VERY helpful to find a sun with at scsi port, you can prep this disk on this sun. Note: hilodog SCSI A port is c0 (same as internal SCSI connector). Hilodog's boot disk is: /dev/dsk/c0t0d0s0 SCSI Port B is /dev/rdsk/c1 Guidedog is setup to boot using target 0. Bigdog is setup to boot using target 3. 1. Attach you disk to another workstation. + reboot using 'reboot -- -r ' to reconfigure. run 'format' - you should see your disk in the AVAILABLE DISK list. - select the new disk. - setup partitions: Desc Min_size Sugg Size s0 is /root ( 100 MB) 200 MB s1 is swap ( 192 MB ) 256 MB s6 is /usr ( 500 MB) 500 MB s7 is /aux ( 500 MB) 1000 MB s4 is /aux1 ( 7 GB ) >7 GB Hints: print afer defining each parition to know the starting cyclinder. ? for help (for s4 to know the amount of cylinders available). Here is an example partition using a 15GB disk: Part Tag Flag Cylinders Size Blocks 0 root wm 0 - 357 200.33MB (358/0/0) 410268 1 swap wu 358 - 815 256.28MB (458/0/0) 524868 2 backup wu 0 - 31274 17.09GB (31275/0/0) 35841150 3 unassigned wm 0 0 (0/0/0) 0 4 unassigned wm 3540 - 31274 15.16GB (27735/0/0) 31784310 5 unassigned wm 0 0 (0/0/0) 0 6 usr wm 816 - 1709 500.26MB (894/0/0) 1024524 7 unassigned wm 1710 - 3539 1.00GB (1830/0/0) 2097180 2. create a new filesystem on your parititions. For example, if your are restoring to device c2t0d0 showing command for newfs on all slices (except swap): newfs /dev/rdsk/c2t0d0s0 newfs /dev/rdsk/c2t0d0s6 newfs /dev/rdsk/c2t0d0s7 newfs /dev/rdsk/c2t0d0s4 3. restore Again using c2t0d0 as the example device: 1. Mount the partition to be restored: mount /dev/dsk/c2t0d0s0 /mnt/r mount /dev/dsk/c2t0d0s6 /mnt/u mount /dev/dsk/c2t0d0s7 /mnt/aux mount /dev/dsk/c2t0d0s4 /mnt/aux1 2. restore each partition: Note the zcat to uncompress, as we may create dumps the compress them: cd /mnt/r zcat /irtf.backup/bigdog/060213.root.dump.Z | ufsrestore xf - cd /mnt/u zcat /irtf.backup/bigdog/060213.usr.dump.Z | ufsrestore xf - cd /mnt/aux zcat /irtf.backup/bigdog/060213.aux.dump.Z | ufsrestore xf - We don't dump aux1 as it is just local data storage. Just create a user data direcotry: cd /mnt/aux1 mkdir -m 777 data 3. Create the boot blocks on the root partition The USBIIi is a sun4u: SUNW,UltraSPARC-IIi-Engine -> sun4u/ bigdog> uname -i SUNW,UltraSPARC-IIi-cEngine The 5/65 is a sun4m: guidedog>uname -i sun4m For the Bigdog ufsretore, do: # installboot /mnt/u/platform/SUNW,UltraSPARC-IIi-cEngine/lib/fs/ufs/bootblk /dev/rdsk/c2t0d0s0 For the GuideDog ufsretore, do: # installboot /mnt/u/platform/sun4m/lib/fs/ufs/bootblk /dev/rdsk/c2t0d0s0 4. Check this: edit the /mnt/r/etc/vfstab to insure you will mount the correct target: 5. Put the disk on the target computer & boot. Reconfiguration boot: In OS: reboot -- -r To reconfigure the OS network stuff: sys-unconfig; reboot 4. Summary - Examples commands for Bigdog & Guidedog --------------------------- c1t0d0 - guidedog summary --------------------------- newfs /dev/rdsk/c1t0d0s0 newfs /dev/rdsk/c1t0d0s6 newfs /dev/rdsk/c1t0d0s7 newfs /dev/rdsk/c1t0d0s4 mount /dev/dsk/c1t0d0s0 /guidedog/r mount /dev/dsk/c1t0d0s6 /guidedog/u mount /dev/dsk/c1t0d0s7 /guidedog/aux mount /dev/dsk/c1t0d0s4 /guidedog/aux1 cd /guidedog/r zcat /irtf.backup/guidedog/060213.root.dump.Z | ufsrestore xf - cd /guidedog/u zcat /irtf.backup/guidedog/060213.usr.dump.Z | ufsrestore xf - cd /guidedog/aux zcat /irtf.backup/guidedog/060213.aux.dump.Z | ufsrestore xf - cd /guidedog/aux1; mkdir -m 777 data installboot /guidedog/u/platform/sun4m/lib/fs/ufs/bootblk /dev/rdsk/c1t0d0s0 --------------------------- c1t3d0 - bigdog summary --------------------------- newfs /dev/rdsk/c1t3d0s0 newfs /dev/rdsk/c1t3d0s6 newfs /dev/rdsk/c1t3d0s7 newfs /dev/rdsk/c1t3d0s4 mount /dev/dsk/c1t3d0s0 /bigdog/r mount /dev/dsk/c1t3d0s6 /bigdog/u mount /dev/dsk/c1t3d0s7 /bigdog/aux mount /dev/dsk/c1t3d0s4 /bigdog/aux1 cd /bigdog/r zcat /irtf.backup/bigdog/060706.root.dump.Z | ufsrestore xf - cd /bigdog/u zcat /irtf.backup/bigdog/060706.usr.dump.Z | ufsrestore xf - cd /bigdog/aux zcat /irtf.backup/bigdog/060706.aux.dump.Z | ufsrestore xf - cd /bigdog/aux1; mkdir -m 777 data installboot /bigdog/u/platform/sun4u/lib/fs/ufs/bootblk /dev/rdsk/c1t3d0s0