the two greatest ice ages were more than two billion years ago and over six-hundred million years ago when most or all the entire surface of earth may have been covered in ice , by ice sheets more than a mile thick .