Imran Farhat was on seven while Taufiq Umer was on two as Pakistan began the repair job after a dramatic collapse earlier in the day.
The hosts, who resumed at the overnight 364 for six in reply to India's 675 for five declared, lost their last four wickets for 43 runs to be bowled out for 407 after the first hour on Wednesday.
The total was boosted by a last-wicket stand of 36 between Mohammad Sami (15) and Shabbir Ahmed (19 not out).
Left-arm seamer Irfan Pathan finished with a career-best 4-100 in only his third Test after removing danger man Abdul Razzaq with the first delivery of the morning. Razzaq, who was on 47 overnight, gloved a rising ball to wicketkeeper Parthiv Patel.
In his next over, Pathan forced Saqlain Mushtaq to top-edge a skier to mid-off. The 19-year-old Pathan's previous best figures were 2-80 against Australia at Sydney earlier this year.
Sachin Tendulkar, entrusted with bowling spin ahead of specialist Anil Kumble, took a return catch of Shoaib Akhtar as Pakistan slipped to 371 for nine.
Sami and Shabbir defied the Indians for an hour before Kumble terminated the defiant stand by bowling Sami. Tendulkar followed his unbeaten 194 in the first innings with two wickets for 36 runs. Kumble had 2-100.