A mounting apparatus for mounting a data storage device that defines a
locking hole in a sidewall thereof, includes a bracket for holding the
data storage device, a first locking member, and a second locking member.
The bracket includes a side wall. The side wall defines a through-hole
therein. The first locking member is pivotably mounted to the side wall
of the bracket. A locking portion protrudes from the first locking member
for being inserted through the through-hole of the bracket to engage in
the locking hole of the data storage device. The second locking member is
pivotably mounted to the side wall of the bracket, and releasably mounted
to the first locking member.