The R5 astromech that Owen Lars initally bought (Luke calls it an R2 unit but later sources classify the droid as an R5 model) with the faulty motivator- was it ever repaired and/or sold to another party? Was it still in the possession of the jawas when the stormtroopers tracked them down?
There is no Canon record of what happened to him. However, he has further adventures in the Legends Canon.
After failing to make a sale, the Squib trader Macemillian-winduarté stole R5-D4 from the Jawas, saving the droid from destruction at the hands of stormtroopers. R5-D4 then changed hands once again in Mos Eisley, being sold to Voren Na'al, Rebel Alliance historian and spy. While communicating with the droid through a datapad, Na'al learned a great deal about the sale of R2-D2 and C-3PO to Owen Lars. Na'al then refurbished the maltreated droid and installed an intelligence gathering software package. Decades of low self-confidence and jealousy were reversed: R5-D4 had a purpose. R5-D4 was placed as an intelligence gathering source in the office of the Imperial Prefect's administrative assistant in Mos Eisley. He continued to serve in that capacity, providing important and valuable data to the Alliance, until the Battle of Endor.