Hi kartor and welcome to Vista Forums
What is the make and model number of your laptop?
Most, if not all, laptops have a hidden partition which can be used to restore the system to factory condition. This is invoked by pressing the appropriate key during boot up - typically, this will be either
F11 or
F12, but check your manual for specific details and instructions. Hopefully, if this partition hasn't become corrupt due to you compressing the drive, this should restore your system to its original condition and might also get your optical drive working.
If your optical drive still doesn't work, or you can't follow this advice because there is no recovery partition or it has become corrupt, then you will need to replace your optical drive. These can be obtained, but are not as readily available as conventional units. However, follow the instructions in the manual and remove and replace the drive. The problem may be caused by a poor electrical connection, and the act of removing and replacing the drive is often enough to clean the connectors, thus ensuring a good connection once again.