Thank you for your advice.
I changed the IDE connection but the problem still remains. Now the DVD is hdc and HD is hda.