In the process of mining, a large area of hard roof will be exposed above a goaf and may suddenly break. This can easily induce rock burst and has a significant impact on production safety. In this study, based on the engineering background of the hard roof of the 2102 working face in the Balasu coal mine, the spatial and temporal characteristics of the strain energy of the roof during the initial mining process were explored in depth. Based on a theoretical calculation, it is proposed that hydraulic fracturing should be carried out in the medium-grained sandstone layer that is 4.8–22.43 m above the roof, and that the effective fracturing section in the horizontal direction should be within 30.8 m of the cutting hole of the working face. The elastic strain energy fish model was established in FLAC3D to analyze the strain energy accumulation of the roof during the initial mining process. The simulation and elastic strain energy results show that, as the working face advances to 70–80 m, the hard roof undergoes significant bending deformation. The energy gradient increases with the rapid accumulation of strain energy to a peak value of 140.54 kJ/m3. If the first weighting occurs at this moment in time, the sudden fracture of the roof will be accompanied by the release of elastic energy, which will induce rock burst. Therefore, it is necessary to implement roof cutting and pressure relief before reaching the critical step of 77 m. To this end, the comprehensive hydraulic fracturing technology of ‘conventional short drilling + directional long drilling’ is proposed. A field test shows that the hydraulic fracturing technology effectively weakens the integrity of the rock layer. The first weighting interval is 55 m, and it continues until the end of the pressure at the 70 m position. The roof collapses well, and the mining safety is improved. This study provides an important reference for hard roof control.