Test your skills
Some times we need setup our pc. Cannot boot from CD? What is the solution?
Generally speaking, Error code 5 means the software is unable to identify the CD key number you've entered.
This could be due to the CD key number being bogus, or it could be something as simple as you typing the wrong letter or number, Please buy the original CD so you get the original key number... for example, the number zero and the letter O can look the same even though they are different.
If you are unable to boot from cd-rom and your hard disk is not working at all then you must use a source like USB or floppy. USB's can also boot nowadays with a little bit of modification in files structure.
If you still looking for setting up your pc and could not manage to boot from both described mediums then you should try to boot atleast from an external cd-rom or a dvd-rom to get yourself at dos prompt. After getting yourself at dos prompt you can easily go into the hard disk partitioned drives to change the files and to run setup files.
If still you could not manage to do these things then you should put someone else's hard disk into your computer to boot your computer and after attaching your hardisk at secondary you should format at low level and make your hard disk a bootable one.
If you cannot boot on to CD, it is most likely that you are getting an Error code 5. But you did not elaborate your question and you did not include your OS type. If you cannot boot from CD, please check the following if you’re:
1. CD/DVD is not bootable.
2. The CMOS is not properly set up.
3. Bad CD/DVD disk.
4. Cables or other drive are not properly connected.
If you did not find any issues with the following, insert your CD/DVD in the drive and then try to restart your computer and press Del or F2 upon bootup to enter the BIOS setup then on the boot setup, change the CDROM as your first boot device then press F10 to save and exit. Check if your computer will boot from your CD. If not, try to use another bootable CD or run into safe mode.