Sorry to say but that second hand system you bought should have been scrapped. That disc drive in it sounds as if it is just about ready to kick the bucket for good.
If you do indeed have some warranty on that by all means take it back and get it exchanged. If possible, check the unit out in the store before taking it home.