2012 MacBook Pro OS X El Capitan wont boot into windows 8.1 after a HD partition change I had windows 8.1 installed with bootcamp and it was running fine but I ran out of space on the partition I originally created. I had read online that I could free up space from OSX by creating a new partition on the HD and re-claiming it on the windows side. I partitioned about 60 gb from my HD with disk utility and now I can't even boot to Windows. This is what my disk utility shows. 

You can see that bootcamp shows up here and says it is mounted. It also shows up when selecting the startup disk.

However, I believe it showed as a drive previously instead of a folder. When I try to boot Windows from this menu my MacBook restarts and goes to a screen saying there is no bootable drive. After trying many things I thought I would just erase the bootcamp partition and start over but when I start the bootcamp assistant it says "The startup disk must be formatted as a single Mac OS Extended (Journaled) volume or already partitioned by Boot Camp Assistant for installing Windows." 

Any ideas of how I can recover my Windows partition or even just get rid of it and do a fresh windows install would be greatly appreciated!
Try this:

sudo fdisk -e /dev/disk0
p
setpid 4
07
flag 4
p
write
y


This is assuming that your Boot Camp partition is still active, just not bootable. Reboot, and hold the option key as usual, and see if the bootable partition is available. This will likely fix your issue. 

Just in case it doesn't, this article outlines some steps you can try.