A mineral is generally found in rock