SATA does not have master or slave
The BIOS will look for the operating systems on the drives in order of the port number they are attached to i.e. Drive zero is connected to port one etc.
it will boot from the first op system on the first drive if a Boot menu is not set up.
Boot menus must be on the first drive.