C drive turned into D drive, computer won't boot anymore

My windows 7/ubuntu duel boot computer's C drive changed to the letter D, while another uninportant drive changed it's letter to C, and because of this, my computer isn't booting. How can I switch them back without booting into windows (I have a ubuntu partition that boots though)
Last edited: