Seagate Technology has agreed to reimburse potentially millions of customers and pay up to $1.79 million in plaintiffs attorney fees to settle a lawsuit accusing the world’s largest maker of hard drives of overstating the data-storage capacity of those devices, court records show.

The Scotts Valley, Calif.-based company will refund 5 percent of the purchase price to people who bought Seagate hard drives in the United States between March 22, 2001, and Dec. 31, 2005, and submit a claim demanding repayment, according to the settlement agreement filed in San Francisco Superior Court and posted to the lawsuit’s Web site.