There isn't a lot of information to go on in your question. Did you save the catalog? Do you still have the images in the same folder structure they were in previously? If the answer to both of those questions is yes, then reinstall Lightroom and Photoshop. Make sure that your images are on a drive with the same letter designation as before. Then all you should have to do is open your catalog that you were using and continue your work.