Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Tried to partition hard drive and lost Windows

Hi everybody,


I tried to change my partition size to allow more space for Windows without realizing that it would ruin my Windows half. Now when I try to boot into Windows, I get "Missing Operating System"


HELP!


Thanks, Harry

MacBook Pro, OS X Yosemite (10.10.3)

Posted on Aug 4, 2015 4:17 PM

Reply
43 replies

Aug 4, 2015 7:08 PM in response to xHarry777

Apologies. Just saw this. Please post the output of the following for the record from a new Terminal window. Leave the Testdisk running as is.


diskutil list

diskutil cs list

sudo gpt -vv -r show /dev/disk0

sudo fdisk /dev/disk0


The "sudo" commands will prompt for your password, and it will not be echoed back. You may also see a warning about improper use of "sudo" and potential data loss due to "abuse" of the command.

Aug 4, 2015 7:22 PM in response to Loner T

No worries, thanks so much for the help!


Here's what they show:

Last login: Tue Aug 4 19:33:54 on ttys000

???$ diskutil list

/dev/disk0

#: TYPE NAME SIZE IDENTIFIER

0: GUID_partition_scheme *500.1 GB disk0

1: EFI EFI 209.7 MB disk0s1

2: Apple_HFS Macintosh HD 250.0 GB disk0s2

3: Apple_Boot Recovery HD 650.0 MB disk0s3

4: Microsoft Basic Data 84.2 GB disk0s4

/dev/disk1

#: TYPE NAME SIZE IDENTIFIER

0: Apple_partition_scheme *16.8 MB disk1

1: Apple_partition_map 32.3 KB disk1s1

2: Apple_HFS Flash Player 16.8 MB disk1s2

??? diskutil cs list

No CoreStorage logical volume groups found

??? sudo gpt -vv -r show /dev/disk0

Password:

gpt show: /dev/disk0: mediasize=500107862016; sectorsize=512; blocks=976773168

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 976773167

start size index contents

0 1 MBR

1 1 Pri GPT header

2 32 Pri GPT table

34 6

40 409600 1 GPT part -

409640 488281248 2 GPT part -

488690888 1269536 3 GPT part -

489960424 322266136

812226560 164546560 4 GPT part -

976773120 15

976773135 32 Sec GPT table

976773167 1 Sec GPT header

??? sudo fdisk /dev/disk0

Disk: /dev/disk0 geometry: 60801/255/63 [976773168 sectors]

Signature: 0xAA55

Starting Ending

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

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

1: EE 1023 254 63 - 1023 254 63 [ 1 - 409639] <Unknown ID>

2: AF 1023 254 63 - 1023 254 63 [ 409640 - 488281248] HFS+

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

*4: 07 1023 254 63 - 1023 254 63 [ 812226560 - 164546560] HPFS/QNX/AUX

???

Aug 4, 2015 7:44 PM in response to Loner T

It's only 500GB, but when I was reading the initial quick scan partition, it gave an error that said the hard drive seems too small? Should I stop the deeper scan now?


This is what the scan shows so far:


Disk /dev/disk0 - 500 GB / 465 GiB - 976773168 sectors (RO)

Analyse sector 279904256/976773167: 00%




Mac HFS 146896025 148165560 1269536


Mac HFS 145626493 146896028 1269536


Mac HFS 148163540 149433075 1269536


Mac HFS 146894008 148163543 1269536


Mac HFS 169685822 172569407 2883586


Mac HFS 166802240 169685825 2883586


Mac HFS 210797718 213681303 2883586


Mac HFS 207914136 210797721 2883586


Mac HFS 217449611 220333196 2883586


Mac HFS 214566029 217449614 2883586


Mac HFS 235870954 238754539 2883586


Mac HFS 232987372 235870957 2883586


Mac HFS 262815782 265699367 2883586


Mac HFS 259932200 262815785 2883586

Tried to partition hard drive and lost Windows

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