Use IDE1 for the Hard drive, set to Master (where operating system is installed) as gumshoe mentioned, and you can set the jumpers to Slave for a CD-ROM or DVD-rom. Then you can set a CDRW to IDE2 Slave
Also, check in your bios to see what is booting first, and change the order if needed.