Patent attributes
A method for indexing a tape for unmounting from a tape drive is discussed. The method can determine that an update has been made to the tape since it was last mounted. The method can identify a tape head position with respect to the tape, the tape including a data partition and an index partition. The method can identify first position and a second position on the tape. The method can determine first distance, a length of tape between first position and tape head position. The method can determine second distance, a length of tape between first position and second position. The method can determine that first distance is less than second distance. The method can reposition the tape to a primary section and write the metadata index. The method can reposition tape to the second position write a data index beginning at the second position of the data partition.