Lucas Harrell threw 6 2/3 strong innings, Jason Castro and Chris Carter homered, and the Astros won their third consecutive game, edging the White Sox 4-3 Saturday at Minute Maid Park before an announced crowd of 21,549.

The Astros (25-44) have claimed the initial two contests during a four-game series against the White Sox (28-37).

Harrell allowed seven hits and three runs, striking out seven and walking one.

White Sox starter John Danks gave up five hits and four runs in six innings.

Chicago took a 1-0 first-inning lead after Paul Konerko’s line-drive single to center field scored Alexei Ramirez.

But Harrell soon settled in, striking out seven before the sixth inning was complete and using his sinker to erase Chicago’s few early threats.

The Astros tied the contest at one in the second inning. Carlos Pena was hit by Danks on a 2-2 count with two outs. Ronny Cedeno then belted a double to left-center field, pushing Pena across home plate.

Castro’s ninth home run of the season and Carter’s 14th followed in the fourth inning. Carter’s towering shot nearly hooked foul but caught the top of the left-field pole, giving the Astros a 3-1 lead.

Brandon Barnes’ one-out RBI double to right field made it 4-1 Astros in the fifth.