Tokyo-area commuters faced packed trains on Friday as services were still disrupted on some lines after many people were stranded overnight following a magnitude 5.9 earthquake that jolted the metropolitan area late the night before.

The quake, the strongest to hit the capital in 10 years, affected about 368,000 passengers in total, left over 40 people injured and temporarily cut water supplies and power in some areas, although services were quickly restored.

One of the capital's biggest commuter train stations, Shinagawa, briefly lost power as well, forcing people into long lines for cabs as they tried to get home on Thursday night.