A storm that dumped more than 20 inches of snow in parts of Virginia and West Virginia moved up the coast Thursday, bringing flooding to several Jersey shore towns devastated by Superstorm Sandy in October.

The storm also was setting its sights on New York and New England, bringing wind-driven snow inland and high winds, rain and flooding to coastal areas.

Along the Sandy-battered Jersey shore, surf broke through a temporary dune and flooded Route 35 in shore town of Mantoloking. Crews plugged the dune and swept sand from the closed highway, and officials generally said the flooding could have been worse.

"It wasn't a huge mess," Police Chief Mark Wright said.

In Ocean City, N.J., resident Wayne Dull told The Press of Atlantic City that Thursday's flooding was typical, but frustrating.

"We're sick of it. We're done," he told the Press. "We're moving some place offshore, far away from water."

In New England, up to 10 inches of snow was forecast for parts of central Massachusetts, the National Weather Service said. Boston could get up to 6 inches and New York was awaiting 2-4 inches, most likely in the form of a wintry mix.

"The worst part of this will be the heavy, wet, wind-driven snow," said Andrew Orrison, a meteorologist with the weather service's Weather Prediction Center in College Park, Md. "When tree branches come down, power lines can come down."

A coastal flood warning is in effect through Friday morning, and the National Weather Service predicted up to a 3-foot surge at high tide in some areas.

The storm is actually a combination of two storms. One began in Montana on Sunday and blasted through the Midwest all week, bringing 10 inches of snow to Chicago on Tuesday.

The other storm formed off Virginia's coast later in the week and joined forces with remnants of the Midwest storm to dump more than a foot of snow on Virginia and West Virginia on Wednesday.

That storm had been forecast to blast the nation's capital with 5 to 10 inches of snow. But warm temperatures essentially limited precipitation in Washington to heavy rain.

Contributing: Asbury Park Press; Associated Press