The scaled particle theory (SPT) is applied to describe thermodynamic properties of a hard sphere (HS) fluid in random porous media. To this purpose, we extended the SPT2 approach, which has been developed previously. The analytical expressions for the chemical potential of an HS fluid in HS and overlapping hard sphere (OPH) matrices, sponge matrix, and hard convex body (HCB) matrix are obtaine...