Plug in an SSD only --> install windows 8
Plug in next SSD only --> install ubuntu
Now plug all three set the first boot device as win8 SSD and boot into windows. --> go to disk management --> initialize and partition and format the HDD. and it'll be ready to use in both Win 8 and Ubuntu.
When you need to boot into Ubuntu, just set the first boot device as the SSD which has Ubuntu.