I have an old mountain bike (21 speed) and I'm not sure what kind of rear derailleur i have. So far the performance is still okay but I was planning to replace it with my spare RD (SunRun Index) but according to the mechanic it's not compatible. Is there a way that I could still use my spare RD on my bike? if not then, what rear derailleur should i look for? (preferably shimano)
I think you will need a claw hanger adapter. The old derailleur has one that appears to be non-removable, and the new one has a 10mm bolt that expects to find a matching hole in the frame, which yours won't have.
You probably want something that looks like this:
There is a sunrace branded one, but it looks the same in the critical dimensions as a generic pictured above.
Your derailleur looks deceptively similar to Shimano RD-TY20-GS and Shimano RD-TY15, but after taking a closer look at the embossed letters on the side, it turns out that it was manufactured by Lingxiang. It's probably model LXA-01
In case of Shimano derailleurs, the actual model name is stamped on the back [example]. Perhaps it's also true for this one.