A mounting assembly includes a chassis having a wall, a fastener pivotally attached to the wall, and a cover detachably attached to the chassis. The wall forms a support portion for supporting a slot cover of an expansion card thereon. The fastener includes a pressing portion for pressing the slot cover against the support portion when the fastener is pivoted to a locked position. The cover is engagable with the fastener to secure the fastener in the locked position.