if u try to attach any device(hard disk or optical drive)as slave just remove the jumper from behind the drive and leave it as it is.Once connected it will automatically detect as slave.
Also disable the primary slave at the BIOS since u have not connected anything on that channel.