An electronic device is provided which includes a housing including a through-hole positioned in a side face, a socket disposed within the housing, and having an entrance aligned with the through-hole, a biasing member mounted on the housing, and disposed between the through-hole and the entrance of the socket, and a tray in which at least one storage medium is seated. The tray is inserted into / extracted from the housing through the through-hole, and inserted into the socket from the inside of the housing through the entrance. During the insertion or extraction of the tray, the biasing member may limit a movement range of the storage medium in the tray.