If the noise goes when you put the clutch down, its getting harder to get into gear, and it's only making the noise in 2nd and 3rd then it's 100% the gearbox!
Release/Thrust bearing will whine when you press the clutch down and be silent with your foot off it!