A hydraulic ram for use as an advance ram in mining operations has a plurality of permanent magnets embedded in its piston rod. At least one sensor is associated with a guide bush fixed to the piston rod end of the cylinder of the ram. The or each sensor is accommodated within a respective pocket formed in the guide bush. The pocket(s) can be closed off by a detachable closure member.