There is provided an electronic apparatus that can solve the problem with
the prior art that a removable electronic device is removed while the
removable electronic device is in operation, leading to unfavorable
results. A disk unit is removably attached to the main body of the
electronic apparatus and receives at least one removable hard disk as a
removable electronic device removably attached thereto. A locking
mechanism locks together the disk unit and the main body. A CPU controls
the locking mechanism to inhibit the disk unit and the main body from
being locked together while the removable hard disk is in operation.