A hard disk drive holding device includes a holder and at least a sliding trench. A hard disk drive is installed into the device quickly and simply through a sliding trench with an opening on a surface of the holder and is constrained tightly due to an inclination of the lateral inner surface in the sliding trench. The sliding trench may also narrow such that the hard disk drive is also constrained in a different direction and is held firmer.