If you change the disk. The symbol of the disk will change also, therefore you have to check out what the disk symbol is. For example the master disk may be hdaX, the slave one could be hdcX.
Based on my experience, I will use linux rescure to enter the system and edit the grub configuration file.