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

Windows 7 Partition gone after Yosemite upgrade

Loner T,

I can't run my Windows 7 after upgrading OS X Yosemite yesterday.

When I checked Disk Utility, there were a disk0s4 instead of the Wins partition.

I use Mac for personal purposes and Wins for work, I have to recover my all important data on Wins asap.

I didn't back up anything on Wins before upgrading Mac OS.

Your help would be highly appreciated.


This is what I got:

diskutil list

/dev/disk0

#: TYPE NAME SIZE IDENTIFIER

0: GUID_partition_scheme *250.1 GB disk0

1: EFI EFI 209.7 MB disk0s1

2: Apple_HFS Macintosh HD 56.5 GB disk0s2

3: Apple_Boot Recovery HD 650.0 MB disk0s3

4: Microsoft Basic Data 192.7 GB disk0s4

/dev/disk1

#: TYPE NAME SIZE IDENTIFIER

0: GUID_partition_scheme *524.3 MB disk1

1: Apple_HFS Java 8 Update 25 524.2 MB disk1s1


===============================

diskutil cs list

No CoreStorage logical volume groups found


===============================

sudo gpt -vv -r show /dev/disk0

gpt show: /dev/disk0: mediasize=250059350016; sectorsize=512; blocks=488397168

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 488397167

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

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

112001024 376395776 4 GPT part - EBD0A0A2-B9E5-4433-87C0-68B6B72699C7

488396800 335

488397135 32 Sec GPT table

488397167 1 Sec GPT header


===============================

sudo fdisk /dev/disk0

Disk: /dev/disk0 geometry: 30401/255/63 [488397168 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 - 110321848] HFS+

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

4: 0C 1023 254 63 - 1023 254 63 [ 112001024 - 376395776] Win95 FAT32L

Posted on Nov 3, 2014 9:05 PM

Reply
29 replies

Nov 25, 2014 5:05 AM in response to ioarvan

Usually, the disk has four parts in a OSX/Windows setup. EFI/ESP, OSX, Recovery HD and Windows.


GPT#3 is supposed to be Recovery HD. You have a non-standard configuration because the size is different (about 29GB). Was your recovery HD deleted?


You have two HFS+ partitions, which is also non- standard. Do you have two OSX installations, no Recovery HD for either and Windows?


Can you post the output of diskutil list?


The partition type of '0C' (FAT) for Windows is not correct, it should be 07 (NTFS).

Nov 25, 2014 5:11 AM in response to Loner T

I have a Macintoch HD (which i have formatted and installed Yosemite), I have a 30GB backup disk (Mac OS Extended (Journaled) - just for data), the BOOTCAMP partition (NTFS) which has all windows files and there was for sure a Recovery HD before the clean installation of Yosemite (probably EFI = 210 MB?).

User uploaded file


Before the installation of Yosemite I could see, with every startup and hold Option button, a Macintosh HD, a Recovery HD and a Bootcamp HD.


I am a beginner in Mac, so I cannot fully answer to your questions.


Should I try a Windows Repair?

Nov 25, 2014 6:17 AM in response to ioarvan

The current single disk layout is non-standard and is likely to break in the future. Does the BOOTCAMP volume appear in OSX Finder and can you see files in it?


Please post the output of the following command that dumps the NTFS header from the Bootcamp volume.

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

If the NTFS header is intact, there is a simple fix. If it is not, then a different tool, Testdisk is used to locate 'lost' NTFS headers. When was the last time, Windows worked on this Mac?

Nov 25, 2014 10:02 AM in response to Loner T

I will post again the answers to your questions:

1 Do you see a Bootcamp Volume in Finder?

Yes, I can see that.

2. Do you see files in the Bootcamp volume in Finder?

Yes, I can see all of them like it was before.

3. Can you select Bootcamp/Windows in System Preferences -> Startup Disk.

Yes, I can select it. When I do, MBA restarts and tries to boot in Windows 7 without success. The message I got is that the partition is not bootable. Then I restart with holding Option and choose Macintosh HD.

Also when I start MBA and hold Option button, the only option I have is Macintosh HD.



And that's the output of the last command you've asked me to type:

User uploaded file


The last time that Windows worked was right before the Yosemite installation (before 1 day). I wanted to move some NTFS USB flash's data to Bootcamp HD in order to make a Yosemite bootable USB.

So after the clean installation of Yosemite I was not able to boot to windows again.


What do you think?

I hope the solution will be the simple fix. 🙂

Nov 25, 2014 10:59 AM in response to Loner T

Yeap. It worked. 🙂

Thank you so much.


If I got it right, the problem was that MBR couldn't find the BOOTMGR file because disk0s4 was registered as a FAT in MBR instead of NTFS file system. Correct?


By the way, now I can also read (only) all Mac OD Extended (Journaled) drives in Windows. I couldn't do that before. Interesting...

Nov 25, 2014 11:38 AM in response to ioarvan

ioarvan wrote:


Yeap. It worked. 🙂

Thank you so much.


If I got it right, the problem was that MBR couldn't find the BOOTMGR file because disk0s4 was registered as a FAT in MBR instead of NTFS file system. Correct?

The '07' code marks the Windows partition as NTFS (not FATxx). The allows OSX to 'bless' it correctly and it boots correctly. Windows XP can be FATxx but it has the NTLDR. Your conclusion is correct.


By the way, now I can also read (only) all Mac OD Extended (Journaled) drives in Windows. I couldn't do that before. Interesting...

The BC Engineers have done some fancy stuff with their read-only NTFS and HFS drivers. They do not allow third-party drivers access. If you had Tuxera or Paragon, you can run into Startup issues on both sides, OSX-to-Windows (NTFS driver) and Windows-to-OSX (HFS Driver). There is a discussion on MacRumours about it, but I do not have a link for it.

May 9, 2015 8:15 AM in response to Cataiday

Cataiday wrote:


...Before I created this thread to ask for your support, there were 2 options to restart OS, including Mac and something with strange name.

After following your instruction above and reboot the system, there were 3 options including Mac, Windows and still something with strange name...

This is a long shot, but on the assumption that your goal is to get Windows 7 working again, rather than Win 7 in Boot Camp, you should be aware that VMware Fusion (and probably Parallels and Virtual Box) can take a Boot Camp installation and create a Virtual Machine from it (and once done, it doesn't care that newer versions of OS X are dropping support for older versions of Windows). I don't know if your Windows/Boot Camp installation is still functional enough for Fusion to convert it, but it might be worth a try.

Windows 7 Partition gone after Yosemite upgrade

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