Search This Blog

Saturday, February 18, 2012

Unix HELL: How to copy mksysb to tape drive ?

Unix HELL: How to copy mksysb to tape drive ?

Friday, February 17, 2012

How to copy mksysb to tape drive ?

# cd /      --> go to root dir
# mkszfile
# vi the bosinst.data file and make sure PROMPT = yes



# echo 512 NONE >/tapeblksz
# mkinsttape /tmp/2nd.image

This will place all the system files required on the 2nd image of the
mksysb tape to a file.


# chdev -l rmt0 -a block_size=512
# echo "Dummy Install Image" |dd of=/dev/rmt0 bs=512 conv=sync
# tctl rewind
# tctl -f /dev/rmt0.1 fsf 1
# dd if=/tmp/2nd.image of=/dev/rmt0 bs=512
# tctl rewind
# tctl -f /dev/rmt0.1 fsf 2
# echo "Dummy Install Image" |dd of=/dev/rmt0 bs=512 conv=sync
# tctl rewind
# tctl -f /dev/rmt0.1 fsf 3
# dd if=/<MKSYSB DIR>/<MKSYSB FILE> of=/dev/rmt0 bs=512
# tctl rewind