Restoring a file from the second image or tape

Follow these steps to restore a file from the second image.

  1. Be sure the tape block size is 512 by entering the following command: # lsattr -E -l rmt0.

    If the block size is not correct, use the following command to set it to 512: # chdev -l rmt0 -a block_size=512.

  2. Make sure the tape is rewound. If the tape is not rewound, enter the following command: # tctl -f /dev/rmt0 rewind
  3. Extract the necessary files by entering: # restore -xvq -s2 -f /dev/rmt0.1.filename
    Note: The filename should be the full path, and always preceded with a  .  (dot character), such as ./tapeblksz.
  4. Rewind the tape by entering: # tctl -f /dev/rmt0 rewind
  5. Change the block size back to its original value, if necessary.