Windows partition disappeared after resizing it.
My windows partition disappeared after resizing it. Found a post with a walkthrough for how to fix it.
This post http://nerdr.com/bootcamp-partition-lost-repairing-mac-partitions/
Did everything and this is what I got in my terminal.
Enter an MBR hex code (default AF): 07
Set the bootable flag? (Y/N): y
Unused partition space(s) found. Use one to protect more partitions? (Y/N): n
Recovery/transformation command (? for help): o
Disk size is 490234752 sectors (233.8 GiB)
MBR disk identifier: 0x0566FE4C
MBR partitions:
Number Boot Start Sector End Sector Status Code
1 1 133448879 primary 0xEE
2 * 133448880 489972567 primary 0x07
Recovery/transformation command (? for help): w
Final checks complete. About to write GPT data. THIS WILL OVERWRITE EXISTING
PARTITIONS!!
Do you want to proceed? (Y/N): y
OK; writing new GUID partition table (GPT) to /dev/disk0.
Warning: Devices opened with shared lock will not have their
partition table automatically reloaded!
Unable to open device '/dev/disk0' for writing! Errno is 1! Aborting write!
Recovery/transformation command (? for help):
The problem is the second to last line, says the action was aborted because the disk cannot be opened. No idea how the **** this is a problem. Help please.
MacBook Pro, iOS 10.3.1, Windows 10 is the partition