The hardness of ice is only due to the hydrogen bonds between water molecules, but it is incomparable to diamond. The hardness of NaCl is due only to ionic bonds, but is incomparable to that of a diamond. Also, many metals (e.g. Os, W) are quite hard, and their hardness is mainly due to the metallic bonds.