The U.S. Geological Survey said the quake struck at 2:41 a.m. PT. It was centered 2 miles northeast of Fremont, an Alameda County city of more than 220,000 people 30 miles southeast of San Francisco. A magnitude-2.7 aftershock follwed 15 minutes after the quake, then several smaller aftershocks rolled through the area.