A hard‐disk system in a narrow box. I. Thermodynamic properties