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

Question:

Question: Bootcamp. Lost partition

Hello All,

I lost my BOOTCAMP volume after changing partition size for my HFS+ volume. Now it's grey unmountable disk0s4 instead of BOOTCAMP. Mac OS X 10.7.5 + Windows7. I reduced the size of my Mac volume to give more space for Windows. Is there any chance to repair? Hope for your help.


I. DiskUtil

diskutil list

/dev/disk0

#: TYPE NAME SIZE IDENTIFIER

0: GUID_partition_scheme *500.1 GB disk0

1: EFI 209.7 MB disk0s1

2: Apple_HFS Macintosh HD 370.0 GB disk0s2

3: Apple_Boot Recovery HD 650.0 MB disk0s3

4: Microsoft Basic Data 70.2 GB disk0s4


II. GPT

gpt -vv -r show /dev/disk0

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 - C12A7328-F81F-11D2-BA4B-00A0C93EC93B

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

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

724335424 115236032

839571456 137201664 4 GPT part - EBD0A0A2-B9E5-4433-87C0-68B6B72699C7

976773120 15

976773135 32 Sec GPT table

976773167 1 Sec GPT header


III. FDISK

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 - 722656248] HFS+

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

4: 0C 1023 254 63 - 1023 254 63 [ 839571456 - 137201664] Win95 FAT32L


IV. TestDisk

A. TestDisk Pre-QuickSearch

TestDisk 7.1-WIP, Data Recovery Utility, November 2017

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

Current partition structure:

Partition Start End Size in sectors


1 P EFI System 40 409639 409600 [EFI system partitio

2 P Mac HFS 409640 723065887 722656248 [Customer]

3 P Mac Boot 723065888 724335423 1269536 [Recovery HD]

No FAT, NTFS, ext2, JFS, Reiser, cramfs or XFS marker

4 P MS Data 839571456 976773119 137201664 [BOOTCAMP]

4 P MS Data 839571456 976773119 137201664 [BOOTCAMP]


B. Testdisk QuickSearch

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


The harddisk (500 GB / 465 GiB) seems too small! (< 570 GB / 531 GiB)

Check the harddisk size: HD jumper settings, BIOS detection...


The following partitions can't be recovered:

Partition Start End Size in sectors

> MS Data 976773119 1113974782 137201664

Mac HFS 976773124 978042659 1269536

[ Continue ]

NTFS, blocksize=4096, 70 GB / 65 GiB


iMac, Mac OS X (10.7.5)

Posted on

Reply
Question marked as Solved
Answer:
Answer:

Can you use Bootcamp Partition Missing after Resize as a reference, and use GParted to extend your NTFS partition to cover the Free Space?

Posted on

There’s more to the conversation

Read all replies

Dec 16, 2017 7:18 AM in response to Loner T In response to Loner T

I tried to fix the issue by following all steps from the previous thread: El Capitan has deleted my bootcamp windows partition

I was able to rebuild GPT with gdisk and TestDisk sector values, but I can't rebuild MBR. There is no partition 4 when I print current Hybrid MBR. Now my BOOTCAMP volume is mountable, I can select it in Startup Disk control panel, but I can't boot from Windows partition. It requires bootable media at startup.

Dec 16, 2017 7:18 AM

Reply Helpful
User profile for user: Samoylov

Question: Bootcamp. Lost partition