"Missing Operating System"

I upgraded to High Sierra the other day and noticed my Windows Partition (Win 10) was missing when I held down Alt while starting my MacBook Pro up. I had this problem long ago and created a hybrid MBR to resolve the issue then. Instinctively, I tried again and sure enough, Windows appeared as an option when I turn on the MacBook and hold Alt, but now it says "Missing Operating System." I can boot into Mac OS and Recovery just fine.


I can't see the Bootcamp any longer in Finder, and Disk Utility has it listed as "disk0s4" and it is grayed out. It cannot be mounted or repaired, and it is not an option in Startup Disk.


For convenience sake, attached below is a few commands (diskutil, fdisk, gdisk) from Terminal that are usually requested. I have scoured over the topics on here but I can't seem to crack this.


I'm trying to recover some files that are on the Windows partition, otherwise I would wipe the whole thing and start anew.


Let me know if there's anything to be done - any advice is greatly appreciated.



diskutil list

/dev/disk0 (internal, physical):

#: TYPE NAME SIZE IDENTIFIER

0: GUID_partition_scheme *750.2 GB disk0

1: EFI EFI 209.7 MB disk0s1

2: Apple_HFS Macintosh HD 549.3 GB disk0s2

3: Apple_Boot Recovery HD 650.0 MB disk0s3

4: Microsoft Basic Data 200.0 GB disk0s4


fdisk: 1> p

Disk: /dev/disk0 geometry: 91201/255/63 [1465149168 sectors]

Offset: 0 Signature: 0xAA55

Starting Ending

#: id cyl hd sec - cyl hd sec [ start - size]

------------------------------------------------------------------------

1: EE 0 0 2 - 25 127 14 [ 1 - 409639] <Unknown ID>

2: AF 25 127 15 - 1023 254 63 [ 409640 - 1072844984] HFS+

3: AB 1023 254 63 - 1023 254 63 [1073254624 - 1269536] Darwin Boot

*4: 07 1023 254 63 - 1023 254 63 [1074524160 - 390623232] HPFS/QNX/AUX



sudo gdisk /dev/disk0

Disk /dev/disk0: 1465149168 sectors, 698.6 GiB

Sector size (logical): 512 bytes

Disk identifier (GUID): E3631DF3-C36F-48BA-9F75-769D070772A1

Partition table holds up to 128 entries

Main partition table begins at sector 2 and ends at sector 33

First usable sector is 34, last usable sector is 1465149134

Partitions will be aligned on 8-sector boundaries

Total free space is 1749 sectors (874.5 KiB)


Number Start (sector) End (sector) Size Code Name

1 40 409639 200.0 MiB EF00 EFI System Partition

2 409640 1073254623 511.6 GiB AF00 Customer

3 1073254624 1074524159 619.9 MiB AB00

4 1074524160 1465147391 186.3 GiB 0700 BOOTCAMP

Posted on Feb 17, 2018 5:36 PM

Reply

Similar questions

58 replies

Feb 18, 2018 12:00 PM in response to Loner T

Thanks for checking in - I scrolled to the partition listed MS Data [BOOTCAMP], and hit 'p' to list all files.


User uploaded file


I navigated through the Users folder and found all of my files (hopefully this is a good sign) in here.


here were other partitions to select labelled MS Data, but this is the one with the [BOOTCAMP] tag.


Before going any further with GPT Fdisk, I wanted to check in with you and make sure what I've looked at so far makes sense.


Let me know whenever you have a moment - thanks so much!

Feb 19, 2018 7:29 PM in response to Loner T

I just successfully booted into High Sierra on the internal HD. Should I try VMWare Fusion? I have never used it but am willing to learn. I have downloaded the trial - do I just need to install the .iso I have for Windows 10? It couldn't find Boot Camp partition (understandable given it's currently hidden/unmounted):


User uploaded file


Is VMWare Fusion still an option to install the Windows 10 .iso I have to? If so, could you walk me through how we can get the chkdsk running for the missing Boot Camp partition?


Thank you so much!

Feb 17, 2018 5:48 PM in response to Loner T

Thanks for your quick response! Your guide a few years back bailed me out of a similar situation.


Below are both outputs:



sudo got -vv -r show /dev/disk0

gpt show: /dev/disk0: mediasize=750156374016; sectorsize=512; blocks=1465149168

gpt show: /dev/disk0: Suspicious MBR at sector 0

gpt show: /dev/disk0: Pri GPT at sector 1

gpt show: /dev/disk0: Sec GPT at sector 1465149167

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 1072844984 2 GPT part - 48465300-0000-11AA-AA11-00306543ECAC

1073254624 1269536 3 GPT part - 426F6F74-0000-11AA-AA11-00306543ECAC

1074524160 390623232 4 GPT part - EBD0A0A2-B9E5-4433-87C0-68B6B72699C7

1465147392 1743

1465149135 32 Sec GPT table

1465149167 1 Sec GPT header


sudo dd if=/dev/rdisk0s4 count=1 2>/dev/null | hexdump -C

00000000 c5 4e ea dd 6a b4 21 92 1e 56 12 c5 d2 41 d6 f2 |.N..j.!..V...A..|

00000010 53 d1 88 92 51 4c ad da 65 b3 65 2c 1f 54 e5 d9 |S...QL..e.e,.T..|

00000020 30 98 74 a5 05 c5 16 76 5c ea f9 4f 1b ed d7 bf |0.t....v\..O....|

00000030 6d de bd a8 8e 96 c9 b2 09 e5 4b 25 bf 7d 6b 16 |m.........K%.}k.|

00000040 b8 f2 cc 56 3a 12 a9 77 96 46 de 5b 4a 8e 45 dc |...V:..w.F.[J.E.|

00000050 3d 92 6e 40 00 01 df ff f4 39 6b 2b 13 f7 9d 65 |=.n@.....9k+...e|

00000060 55 80 11 92 0d 95 3c c8 45 3d 1f 99 65 ed 4e 35 |U.....<.E=..e.N5|

00000070 2d 58 39 44 a2 1d 87 d9 3b 44 2f c2 8f 3c 4d 6c |-X9D....;D/..<Ml|

00000080 e0 14 e9 60 16 80 84 d6 23 46 88 08 82 6f 3f e5 |...`....#F...o?.|

00000090 36 df 0d c8 26 79 b5 e4 e8 78 d6 b3 14 e4 33 6c |6...&y...x....3l|

000000a0 d2 70 ce b9 a4 1a d6 b3 8b ce b1 13 92 a6 26 fa |.p............&.|

000000b0 a3 54 d4 69 62 7a 67 0e eb dd 18 d2 ac 66 cf 99 |.T.ibzg......f..|

000000c0 c4 6e 3a 68 e1 5d 70 7b b0 ac d4 4e 1c c1 84 41 |.n:h.]p{...N...A|

000000d0 ea 2c 14 67 6c b1 dc 43 03 14 19 a3 88 72 2b 6b |.,.gl..C.....r+k|

000000e0 29 ad dc 15 50 83 95 40 86 eb 94 50 80 00 00 00 |)...P..@...P....|

000000f0 0b fe da fa 50 4d e1 b9 9a 14 ef 4a 88 e9 84 8b |....PM.....J....|

00000100 55 2e 22 e1 cd 79 5c 29 2a 3c 3d 0e 52 b0 32 55 |U."..y\)*<=.R.2U|

00000110 f8 a5 6a 50 a5 05 dc 14 a0 d7 46 48 c7 67 88 52 |..jP......FH.g.R|

00000120 6f 9a 76 a8 b6 a2 0c db 96 30 56 3c 04 b5 02 43 |o.v......0V<...C|

00000130 c3 df 1c 2b f7 9b 8b 3d 83 64 bd bd 6d fa b3 96 |...+...=.d..m...|

00000140 8b ed f1 4f f7 95 2c 93 38 b8 f2 12 27 57 23 ff |...O..,.8...'W#.|

00000150 fb a0 64 32 04 45 17 67 cc eb 0c 1e 42 72 6a 19 |..d2.E.g....Brj.|

00000160 9d 30 23 c4 54 6d a3 2f 4c 30 d8 81 ae a5 65 e8 |.0#.Tm./L0....e.|

00000170 f1 0f 20 4a 98 44 85 86 21 2f 38 da fd 63 52 c6 |.. J.D..!/8..cR.|

00000180 b5 a3 d2 88 08 3c de bf 30 63 65 18 b4 72 44 9c |.....<..0ce..rD.|

00000190 0c c4 f6 19 8f 99 1a ec 62 d3 29 77 f6 3e 2a 54 |........b.)w.>*T|

000001a0 33 05 0a 94 27 43 f4 63 a2 31 1e c5 e6 73 b8 d9 |3...'C.c.1...s..|

000001b0 87 86 e7 00 00 00 00 05 bf f9 75 a6 c5 91 2e a8 |..........u.....|

000001c0 48 64 22 48 e5 65 c3 a8 58 2e 5f 00 b9 43 45 94 |Hd"H.e..X._..CE.|

000001d0 1b 89 61 e9 2c a4 37 20 3e 35 09 e5 e2 c2 cf b4 |..a.,.7 >5......|

000001e0 54 fb 65 8c 67 3a f3 bf d7 93 3f f0 2f 2d 13 22 |T.e.g:....?./-."|

000001f0 63 ab 74 2c 43 f5 84 d1 c3 aa 93 90 b5 c2 9d 6d |c.t,C..........m|

00000200


Feb 18, 2018 3:08 PM in response to Birdman688

The issue now is that your Windows installation starts at sector 879316992 and is 585830393, which is roughly 292GB. It is not the same as the current entry of 200GB. Was your partition resized? Also, your Apple partition ends at 1072844984 which overlaps the current NTFS partition, which means you will lose your local Recovery HD, if we make any changes.

Feb 18, 2018 3:41 PM in response to Loner T

Thanks again for taking a look! Not sure when the partition would have been resized (not ruling anything out as I've had the computer for a long time, it's a late 2011 model), as I know Apple does not support Boot Camp resizing (without removing the partition entirely and re-creating).


I would love to try and recover the files in this Boot Camp partition, so if losing the local Recovery HD is part of that, I am willing to make any changes you suggest.


Very grateful for your time and patience in getting to the bottom of this.

Feb 18, 2018 3:54 PM in response to Birdman688

Birdman688 wrote:



I would love to try and recover the files in this Boot Camp partition, so if losing the local Recovery HD is part of that, I am willing to make any changes you suggest.

Boot into Internet Recovery, and click on Utilities -> Terminal, and run


diskutil unmountDisk disk0

gpt remove -i 4 /dev/disk0

diskutil unmountDisk disk0

gpt remove -i 3 /dev/disk0

diskutil unmountDisk disk0

gpt remove -i 2 /dev/disk0

diskutil unmountDisk disk0

gpt add -i 2 -b 409640 -s 878907352 -t hfs /dev/disk0

diskutil unmountDisk disk0

gpt add -i 3 -b 879316992 -s 585830393 -t windows /dev/disk0

diskutil repairDisk disk0


Now try booting into macOS normally and check if Finder shows your NTFS file system and Windows files.

Feb 18, 2018 5:49 PM in response to Loner T

Okay, here's the output:


-bash-3.2# gpt -vv -r show /dev/disk0

gpt show: /dev/disk0: mediasize=750156374016; sectorsize=512; blocks=1465149168

gpt show: /dev/disk0: Suspicious MBR at sector 0

gpt show: /dev/disk0: Pri GPT at sector 1

gpt show: /dev/disk0: Sec GPT at sector 1465149167

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 1072844984 2 MBR part 175

1073254624 1269536 3 MBR part 171

1074524160 390623232 4 MBR part 7

1465147392 1743

1465149135 32 Sec GPT table

1465149167 1 Sec GPT header


Thanks!

Feb 18, 2018 6:12 PM in response to Birdman688

Did you get any errors in the remove commands?


Your current GPT now includes the MBR side

Birdman688 wrote:


409640 1072844984 2 MBR part 175

1073254624 1269536 3 MBR part 171

1074524160 390623232 4 MBR part 7

Your previous GPT is

409640 1072844984 2 GPT part - 48465300-0000-11AA-AA11-00306543ECAC

1073254624 1269536 3 GPT part - 426F6F74-0000-11AA-AA11-00306543ECAC

1074524160 390623232 4 GPT part - EBD0A0A2-B9E5-4433-87C0-68B6B72699C7


Can you post the output of


fdisk /dev/disk0

Feb 18, 2018 6:18 PM in response to Loner T

When doing any previous commands, I got a message about a suspicious MBR at sector 0, but no actual error messages, and it seemed to execute correctly.


Here is the output for fdisk /dev/disk0:


Disk: /dev/disk0geometry: 91201/255/63 [1465149168 sectors]

Signature: 0xAA55

Starting Ending

#: id cyl hd sec - cyl hd sec [ start - size]

------------------------------------------------------------------------

1: EE 0 0 2 - 25 127 14 [ 1 - 409639] <Unknown ID>

2: AF 25 127 15 - 1023 254 63 [ 409640 - 1072844984] HFS+

3: AB 1023 254 63 - 1023 254 63 [1073254624 - 1269536] Darwin Boot

*4: 07 1023 254 63 - 1023 254 63 [1074524160 - 390623232] HPFS/QNX/AUX

Feb 18, 2018 6:46 PM in response to Loner T

I do not. High Sierra automatically installed itself overnight a few days ago which seems to have led to this issue (it was booting fine before so I am assuming). I am willing to try anything to get the files from the Boot Camp partition, so let me know and I will try whatever you suggest.


Thanks again for spending so much time looking into this.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

"Missing Operating System"

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.