Hi, welcome to TSF.
If your computer looks like most computers, the CD burner is placed at the top.
Therefore it's most convenient to make that master and connect it at the end of the ribbon cable - the HDD being slave at the middle of the cable.
Change the jumpers at the back of the drives - nothing else needed.
The slowest interface (CD) will determine the speed and slow the HDD down.