Patent ID: 6928557

Claim:
A storage unit detachably connected to host equipment in a computer system and for holding an ejectable storage medium, comprising: a connection detector for detecting whether the storage unit is connected to the host equipment; a storage medium detector for detecting the presence of the storage medium within the storage unit; an automatic medium ejection mechanism for automatically ejecting the storage medium upon receiving a medium discharge instruction; and a medium ejection instructor which sends a medium ejection instruction to said automatic medium ejection mechanism upon receiving information that indicates that the storage unit might be moved; wherein said information includes an indication that said connection detector detects that the storage unit is disconnected from the host equipment while said storage medium detector detects that the storage medium is located in the storage unit; wherein the ejection of the storage medium from the storage unit prevents possible damage caused by the storage medium colliding with internal components of the storage unit while the storage unit is being moved.