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

Windows HD not available after Yosemite update

Previous Discussion Post:

So I think I may have stumbled into this issue as well. You seem to be the expert on this issue and I was hoping you could help me. I found this thread, https://discussions.apple.com/thread/6883274which seems to be a similar issue, but I can't really follow exactly what is happening. I'm not very experienced with bootcamp.

Essentially I just did the most recent Yosemite update last night and now the "disk0s4" is showing up. I've previously use MiniTool Partition Wizard to expand my Windows hard drive. I took the Windows HD from 75 GB -> 350 GB but now disk0s4 only shows 75 GB. Any help you can offer would be greatly appreciated. I also don't have a Windows 7 install disk, or the serial number available, and really don't want to have to spend $80 on a new one.

Thanks


LonerT Requested I enter this into Terminal:

diskutil list

diskutil cs list

sudo gpt -vv -r show /dev/disk0

sudo fdisk /dev/disk0

Got this response:

Traces-MacBook:~ traceborchardt$ diskutil list

/dev/disk0

#: TYPE NAME SIZE IDENTIFIER

0: GUID_partition_scheme *1.0 TB disk0

1: EFI EFI 209.7 MB disk0s1

2: Apple_HFS Macintosh HD 649.7 GB disk0s2

3: Apple_Boot Recovery HD 650.0 MB disk0s3

4: Microsoft Basic Data 75.0 GB disk0s4

/dev/disk1

#: TYPE NAME SIZE IDENTIFIER

0: Apple_partition_scheme *13.6 MB disk1

1: Apple_partition_map 32.3 KB disk1s1

2: Apple_HFS League of Legends NA 13.6 MB disk1s2

Traces-MacBook:~ traceborchardt$ diskutil cs list

No CoreStorage logical volume groups found

Traces-MacBook:~ traceborchardt$ sudo gpt -vv -r show /dev/disk0


WARNING: Improper use of the sudo command could lead to data loss

or the deletion of important system files. Please double-check your

typing when using sudo. Type "man sudo" for more information.


To proceed, enter your password, or type Ctrl-C to abort.


Password:

Sorry, try again.

Password:

gpt show: /dev/disk0: mediasize=1000204886016; sectorsize=512; blocks=1953525168

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

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

1270665216 536377344

1807042560 146481152 4 GPT part - EBD0A0A2-B9E5-4433-87C0-68B6B72699C7

1953523712 1423

1953525135 32 Sec GPT table

1953525167 1 Sec GPT header

Posted on May 27, 2015 3:36 PM

Reply
11 replies

May 27, 2015 3:39 PM in response to tborchardt2

Please download the following two utilities which can help diagnose and fix partitioning issues.


Testdisk is available at http://www.cgsecurity.org/wiki/TestDisk_Step_By_Step.

GPT Fdisk is available at http://sourceforge.net/projects/gptfdisk/.


Start Terminal from Applications -> Utilities -> Terminal and run Testdisk from the directory where it is downloaded. For example, I have it in the Downloads directory,


ls ~/Downloads/testdisk-7.0-WIP/testdisk

/Users/MyName/Downloads/testdisk-7.0-WIP/testdisk


and I run it as

sudo ~/Downloads/testdisk-7.0-WIP/testdisk /dev/rdisk0


You should see a UI similar to https://imgur.com/a/PjmnK . You want to run a Quick Search first.

May 27, 2015 4:04 PM in response to Loner T

Disk /dev/rdisk0 - 1000 GB / 931 GiB - 1953525168 sectors (RO)


The harddisk (1000 GB / 931 GiB) seems too small! (< 1075 GB / 1001 GiB)

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


The following partitions can't be recovered:

Partition Start End Size in sectors

> MS Data 1953523711 2100004862 146481152

Mac HFS 1953525124 1954794659 1269536

After I select MS Data, I get this screen:

Disk /dev/rdisk0 - 1000 GB / 931 GiB - 1953525168 sectors (RO)

Partition Start End Size in sectors

>P EFI System 40 409639 409600 [EFI]

D Mac HFS 409640 1269395679 1268986040

D MS Data 587806728 1270665216 682858489

D Mac HFS 1269395680 1270665215 1269536

D MS Data 1270665216 1953523704 682858489

D MS Data 1807042560 1953523711 146481152

D Mac HFS 1952255592 1953525127 1269536

Now I'm not sure of what to do.

Seriously, thank you so much for your help.

May 27, 2015 4:43 PM in response to tborchardt2

Here is a table that I use to verify the partition table.


GPT 3 StartGPT 3 SizeGPT 3 EndNTFS StartSector OffsetNTFS SizeNTFS EndSector Offset (MB)
126939568012695361270665216127066521606828584891953523704 -


Can you scroll down to the the following entry

D MS Data 1270665216 1953523704 682858489

and use 'P' to list files?


Your screen should look similar to the following


User uploaded file

May 27, 2015 5:15 PM in response to tborchardt2

This seems to be the correct partition. Leave your Testdisk display and start a new Terminal Window. You need to use the following steps.


If you see any error messages during the following steps, please stop and post back here with the error message. The following steps have values from your Testdisk output (and you can verify) in Steps 7 and 8. Please notice the '+' sign in step 8.


Rebuild GPT4 using start/end offsets


  1. Sudo gdisk /dev/rdisk0
  2. P (print the full list of parts)
  3. D (delete)
  4. 4 (part 4)
  5. N (new part)
  6. 4 (part 4)
  7. 1270665216 - Start offset in bytes (start point for Bootcamp part)
  8. +682858489 - Size offset (as opposed to End offset)
  9. 0700 (Windows part type)
  10. P (print list of all parts just to see what changes will be made)
  11. W (Write the new GPT)
  12. Y (Yes! really write the new GPT)

This will delete and re-write the GPT partition info for /dev/disk0s4.

Rebuild MBR to match the new GPT information thus resetting the Hybrid MBR. Use defaults for other questions (like partition codes). The only values that need modifications are the Boot flags and step 10. Accept all other defaults that Gdisk offers.

  1. Sudo gdisk /dev/disk0
  2. P (Print list of parts)
  3. R (Recover)
  4. O (print current Hybrid MBR)
  5. H (chooses Hybrid)
  6. Partitions numbers to be hybridized: 2 3 4
  7. Y (Good for GRUB question)
  8. N (part 2 boot flag)
  9. N (part 3 boot flag)
  10. Y (part 4 boot flag make NTFS bootable partition)
  11. O (print current Hybrid MBR)
  12. W (Write the new MBR)
  13. Y (Yes! write the new MBR)
  14. Reboot


Here is sample Q&A for this section. Please notice the Press Enter/Return.


Place EFI GPT (0xEE) partition first in MBR (good for GRUB)? (Y/N): Y


Creating entry for GPT partition #2 (MBR partition #2)

Enter an MBR hex code (default AF): Press Enter/Return

Set the bootable flag? (Y/N): N


Creating entry for GPT partition #3 (MBR partition #3)

Enter an MBR hex code (default AB): Press Enter/Return

Set the bootable flag? (Y/N): N


Creating entry for GPT partition #4 (MBR partition #4)

Enter an MBR hex code (default 07): Press Enter/Return

Set the bootable flag? (Y/N): Y


Test 1 - Does Bootcamp Volume show up in Finder?

Test 2 - Can you see files in Bootcamp Volume?

Test 3 - Can you select Bootcamp in System Preferences -> Startup Disk?

Test 4 - If Test 3 is successful, select Bootcamp and Click Restart.

May 27, 2015 6:02 PM in response to Loner T

Hey, so I did all of that. I stupidly didn't read all the way down and when it said "Enter an MBR hex code (default AF):" I typed N and hit enter for #2 and #3. I don't think it did anything it wasn't supposed to do, but I'm about to reboot right now. This is what I ended up getting.

GPT fdisk (gdisk) version 1.0.0


Warning: Devices opened with shared lock will not have their

partition table automatically reloaded!

Partition table scan:

MBR: hybrid

BSD: not present

APM: not present

GPT: present


Found valid GPT with hybrid MBR; using GPT.


Command (? for help): p

Disk /dev/rdisk0: 1953525168 sectors, 931.5 GiB

Logical sector size: 512 bytes

Disk identifier (GUID): 00004FB7-66D0-0000-1D33-00001A5A0000

Partition table holds up to 128 entries

First usable sector is 34, last usable sector is 1953525134

Partitions will be aligned on 8-sector boundaries

Total free space is 536378773 sectors (255.8 GiB)


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

1 40 409639 200.0 MiB EF00 EFI system partition

2 409640 1269395679 605.1 GiB AF00 Customer

3 1269395680 1270665215 619.9 MiB AB00 Recovery HD

4 1807042560 1953523711 69.8 GiB 0700 BOOTCAMP


Command (? for help): D

Partition number (1-4): 4


Command (? for help): N

Partition number (4-128, default 4): 4

First sector (34-1953525134, default = 1270665216) or {+-}size{KMGTP}: 1270665216

Last sector (1270665216-1953525134, default = 1953525134) or {+-}size{KMGTP}: +682858489

Current type is 'Apple HFS/HFS+'

Hex code or GUID (L to show codes, Enter = AF00): 0700

Changed type of partition to 'Microsoft basic data'


Command (? for help): P

Disk /dev/rdisk0: 1953525168 sectors, 931.5 GiB

Logical sector size: 512 bytes

Disk identifier (GUID): 00004FB7-66D0-0000-1D33-00001A5A0000

Partition table holds up to 128 entries

First usable sector is 34, last usable sector is 1953525134

Partitions will be aligned on 8-sector boundaries

Total free space is 1436 sectors (718.0 KiB)


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

1 40 409639 200.0 MiB EF00 EFI system partition

2 409640 1269395679 605.1 GiB AF00 Customer

3 1269395680 1270665215 619.9 MiB AB00 Recovery HD

4 1270665216 1953523704 325.6 GiB 0700 Microsoft basic data


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/rdisk0.

Warning: Devices opened with shared lock will not have their

partition table automatically reloaded!

Warning: The kernel may continue to use old or deleted partitions.

You should reboot or remove the drive.

The operation has completed successfully.

Traces-MacBook:~ traceborchardt$ Sudo gdisk /dev/disk0

GPT fdisk (gdisk) version 1.0.0


Warning: Devices opened with shared lock will not have their

partition table automatically reloaded!

Partition table scan:

MBR: hybrid

BSD: not present

APM: not present

GPT: present


Found valid GPT with hybrid MBR; using GPT.


Command (? for help): P

Disk /dev/disk0: 1953525168 sectors, 931.5 GiB

Logical sector size: 512 bytes

Disk identifier (GUID): 00004FB7-66D0-0000-1D33-00001A5A0000

Partition table holds up to 128 entries

First usable sector is 34, last usable sector is 1953525134

Partitions will be aligned on 8-sector boundaries

Total free space is 1436 sectors (718.0 KiB)


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

1 40 409639 200.0 MiB EF00 EFI system partition

2 409640 1269395679 605.1 GiB AF00 Customer

3 1269395680 1270665215 619.9 MiB AB00 Recovery HD

4 1270665216 1953523704 325.6 GiB 0700 Microsoft basic data


Command (? for help): R


Recovery/transformation command (? for help): O


Disk size is 1953525168 sectors (931.5 GiB)

MBR disk identifier: 0x124C35B8

MBR partitions:


Number Boot Start Sector End Sector Status Code

1 1 409639 primary 0xEE

2 409640 1269395679 primary 0xAF

3 1269395680 1270665215 primary 0xAB


Recovery/transformation command (? for help): H


WARNING! Hybrid MBRs are flaky and dangerous! If you decide not to use one,

just hit the Enter key at the below prompt and your MBR partition table will

be untouched.


Type from one to three GPT partition numbers, separated by spaces, to be

added to the hybrid MBR, in sequence: 2 3 4

Place EFI GPT (0xEE) partition first in MBR (good for GRUB)? (Y/N): Y


Creating entry for GPT partition #2 (MBR partition #2)

Enter an MBR hex code (default AF): N

Set the bootable flag? (Y/N): N


Creating entry for GPT partition #3 (MBR partition #3)

Enter an MBR hex code (default AB): N

Set the bootable flag? (Y/N): N


Creating entry for GPT partition #4 (MBR partition #4)

Enter an MBR hex code (default 07): Y

Set the bootable flag? (Y/N): Y


Recovery/transformation command (? for help): O


Disk size is 1953525168 sectors (931.5 GiB)

MBR disk identifier: 0x124C35B8

MBR partitions:


Number Boot Start Sector End Sector Status Code

1 1 409639 primary 0xEE

2 409640 1269395679 primary 0x03

3 1269395680 1270665215 primary 0x03

4 * 1270665216 1953523704 primary 0x03


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!

Warning: The kernel may continue to use old or deleted partitions.

You should reboot or remove the drive.

The operation has completed successfully.

Traces-MacBook:~ traceborchardt$

May 27, 2015 6:38 PM in response to tborchardt2

Glad to see it working. Please make a back up of OS X and Windows on two separate external disks as a baseline for future restores.

tborchardt2 wrote:


Do you have somewhere I can go to donate to you?


I do not accept any rewards, but be able to assist others. If you strongly feel about supporting the community, you can donate to the authors of


Testdisk - http://www.cgsecurity.org/wiki/Donation

GPT Fdisk - http://www.rodsbooks.com/gdisk/


(I am not affiliated with either).


Cheers!


Please post back if you run into any issues in the future.

Windows HD not available after Yosemite update

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