Patent ID: 7606972

Claim:
A storage unit which is detachable from an information processing apparatus having an ejecting unit configured to eject the storage unit, the storage unit having a storage medium for storing data from the information processing apparatus, comprising: a controller for controlling storage of data into the storage medium; a receiving unit configured to receive an eject instruction to eject the storage unit from the information processing apparatus; an invalidation unit configured to invalidate a connection with the information processing apparatus when said receiving unit receives the eject instruction; a waiting unit configured to wait until an operation which should be complete in the storage unit before the storage unit is elected is complete, after said invalidation unit starts to invalidate the connection; and an output unit configured to output an eject permission signal, as a response to the eject instruction, to the information processing apparatus for ejecting the storage unit by said ejecting unit after completion of the wait of said waiting unit, wherein said invalidation unit, said waiting unit and said output unit are arranged inside the storage unit which is ejected from the information processing apparatus by operation of said ejecting unit that ejects the storage unit in response to the eject permission signal.