A data drive for detecting loading/unloading positions and media type is
provided. The drive includes: a drive base; a receiver for receiving a
storage media device, the receiver being movably coupled to the drive
base and translatable from an unloaded position to a loaded position; a
media flag, for detecting a media type of the storage media device,
movably coupled to the receiver and translatable from a first position to
a second position when the storage media device is inserted into the
receiver; a media flag sensor fixedly coupled to the drive base for
detecting movement of the media flag; a receiver flag, for detecting
position of the storage media device, fixedly coupled to the receiver;
and a receiver flag sensor fixedly coupled to the drive base for
detecting movement of the receiver flag.