An electronic apparatus includes an optical drive and a second housing. In this case, the optical drive has a first housing, a circuit board, a first button, and a second button. The circuit board is disposed in the first housing. The first button is disposed on the first housing and the first button electrically connects with the circuit board. The optical drive is disposed in the second housing. The second button electrically connects with the circuit board with a wire. The second button, which controls the optical drive, is disposed on the second housing.