TOKYO - An earthquake with a magnitude of 5.4 struck Ibaraki and Fukushima prefectures as well as other parts of Japan on Tuesday morning, but no damage has been reported so far, the government said.