摘要 |
A method for dismounting a storage device includes the steps of: inspecting operation of a USB communication protocol between an electronic apparatus and a computer to determine whether a handshaking process therebetween has been completed; when it is determined that the handshaking process has been completed, terminating programs, storing data in a storage device of the electronic apparatus, and determining whether storing of the data has been completed; dismounting the storage device from the electronic apparatus and notifying the computer to mount the storage device when storing of the data has been completed; and restarting the USB communication protocol and repeating determination as to whether the handshaking process has been completed when it is determined with reference to a timer of the electronic apparatus that storing of the data has not been completed after a preset time limit has lapsed.
|