Boot device problem, need solution

I wanted to reformat my computer, but I have a problem with my boot devices. I tried to change the first boot priority into CD/DVD and the second boot into HDD. The problem is, the boot devices are not working, thus, it cannot reformat my computer.
What would be the other solution for this?
