Bootacmp disk is unbootable after creating new partition
I made a bootable falsh drive (finally) and booted from it, i couldn't boot into local recovery because on the flash was Mac Os Lion, an i already have Sierra. I knew that there's no csrutil on older versions of mac os, so i've wrote all the commands (
sudo fdisk -e /dev/disk0
p
setpid 4
07
flag 4
p
write
y
)
and rebooted. I was surprised, it worked. I could load to Untitled (mac), flash drive and bootcamp (windows). Well, i believed that everything is alright and booted to windows. But everything i could see - black screen and flashing "_" on the top left corner. Before i used commands, i tried to force-load bootcamp partition, and it wrote "Insert a bootable..." and something else. But now there's just nothing.
Diskutil list:
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *1.0 TB disk0
1: EFI EFI 209.7 MB disk0s1
2: Apple_HFS Untitled 909.4 GB disk0s2
3: Apple_Boot Recovery HD 650.0 MB disk0s3
4: Apple_HFS Bootcamp[2] 19.8 GB disk0s4
5: Microsoft Basic Data BOOTCAMP 70.0 GB disk0s5
/dev/disk1 (external, physical):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *750.2 GB disk1
1: EFI EFI 209.7 MB disk1s1
2: Microsoft Basic Data WD1T 749.8 GB disk1s2
Diskutil cs list: No CoreStorage logical volume groups found
sudo gpt -vv -r show /dev/disk0
gpt show: /dev/disk0: mediasize=1000204886016; sectorsize=512; blocks=1953525168
gpt show: /dev/disk0: Suspicious MBR at sector 0
gpt show: /dev/disk0: Malformed MBR at sector 0
gpt show: /dev/disk0: Pri GPT at sector 1
gpt show: /dev/disk0: Sec GPT at sector 1953525167
start size index contents
0 1 MBR
1 1 Pri GPT header
2 32 Pri GPT table
34 6
40 409600 1 GPT part - C12A7328-F81F-11D2-BA4B-00A0C93EC93B
409640 1776259000 2 GPT part - 48465300-0000-11AA-AA11-00306543ECAC
1776668640 1269536 3 GPT part - 426F6F74-0000-11AA-AA11-00306543ECAC
1777938176 38607104 4 GPT part - 48465300-0000-11AA-AA11-00306543ECAC
1816545280 262144
1816807424 136716288 5 GPT part - EBD0A0A2-B9E5-4433-87C0-68B6B72699C7
1953523712 1423
1953525135 32 Sec GPT table
1953525167 1 Sec GPT header
sudo fdisk /dev/disk0
Disk: /dev/disk0 geometry: 121601/255/63 [1953525168 sectors]
Signature: 0xAA55
Starting Ending
#: id cyl hd sec - cyl hd sec [ start - size]
------------------------------------------------------------------------
1: EE 1023 254 63 - 1023 254 63 [ 1 - 1953525167] <Unknown ID>
2: 00 0 0 0 - 0 0 0 [ 0 - 0] unused
3: 00 0 0 0 - 0 0 0 [ 0 - 0] unused
*4: 07 0 0 0 - 0 0 0 [ 0 - 0] HPFS/QNX/AUX
What should i do?
iMac, macOS Sierra (10.12)