Cataiday

Q: Windows 7 Partition gone after Yosemite upgrade

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:06 PM

Close

Q: Windows 7 Partition gone after Yosemite upgrade

  • All replies
  • Helpful answers

Previous Page 2
  • by ioarvan,

    ioarvan ioarvan Nov 25, 2014 4:27 AM in response to ioarvan
    Level 1 (0 points)
    Nov 25, 2014 4:27 AM in response to ioarvan

    So, I searched some threads before asking you, but now I found one answer you gave to someone.

     

    Typically the recovery is done, using

     

    1. Windows Installation Media is connected to the Mac, USB or Optical Drive/DVD.

    2. In OSX System Preferences -> Startup Disk -> Bootcamp -> Restart (do not select the Installation Media)

    3. The BIOS layer will ask to press any key to boot from the media, which should bring up the Recovery Environment.

     

    Here is a set of screen shots from W7 recovery - http://imgur.com/a/1DaOE#0

     

    As far as I understand the problem is on windows boot and not in the boot camp.

    In any case I will try a Windows Repair but if you have something else in mind please share it with us.

     

    Thank you.

  • by Loner T,

    Loner T Loner T Nov 25, 2014 4:44 AM in response to ioarvan
    Level 7 (24,601 points)
    Safari
    Nov 25, 2014 4:44 AM in response to ioarvan

    Based on you previous observations, the issue seems to be related to Windows Bootmanager/loader. Please post the output of the following two commands and the GPT and MBR can be verified.

     

    sudo gpt -vv -r show /dev/disk0

    sudo fdisk /dev/disk0

     

    Please enter your password when prompted.

  • by ioarvan,

    ioarvan ioarvan Nov 25, 2014 4:55 AM in response to Loner T
    Level 1 (0 points)
    Nov 25, 2014 4:55 AM in response to Loner T

    Thanks for your immediate response.

     

    This is the output of both commands:

    commands.png

     

    What do you think?

  • by Loner T,

    Loner T Loner T Nov 25, 2014 5:05 AM in response to ioarvan
    Level 7 (24,601 points)
    Safari
    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).

  • by ioarvan,

    ioarvan ioarvan Nov 25, 2014 5:11 AM in response to Loner T
    Level 1 (0 points)
    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?).

    Screen Shot 2014-11-25 at 14.04.46.png

     

    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?

  • by Loner T,

    Loner T Loner T Nov 25, 2014 6:17 AM in response to ioarvan
    Level 7 (24,601 points)
    Safari
    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?

  • by ioarvan,

    ioarvan ioarvan Nov 25, 2014 10:02 AM in response to Loner T
    Level 1 (0 points)
    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:

    disk0s4_ntfs.png

     

    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.

  • by Loner T,

    Loner T Loner T Nov 25, 2014 10:35 AM in response to ioarvan
    Level 7 (24,601 points)
    Safari
    Nov 25, 2014 10:35 AM in response to ioarvan

    Your GPT and MBR match, the OSX side can access the, the MBR has one problem. The following steps should fix it. Please ignore teh i386 boot error message. It is normal.

     

    sudo fdisk -e /dev/disk0

    setpid 4

    07

    flag 4

    p

    w

    y

     

    Reboot and Test.

  • by ioarvan,

    ioarvan ioarvan Nov 25, 2014 10:59 AM in response to Loner T
    Level 1 (0 points)
    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...

  • by Loner T,

    Loner T Loner T Nov 25, 2014 11:38 AM in response to ioarvan
    Level 7 (24,601 points)
    Safari
    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.

  • by ioarvan,

    ioarvan ioarvan Nov 25, 2014 12:07 PM in response to Loner T
    Level 1 (0 points)
    Nov 25, 2014 12:07 PM in response to Loner T

    Nice. Thank you for the info.

    No worries, I will find the thread in MacRumours when I'll have time.

    Cya

  • by AndyT0106,

    AndyT0106 AndyT0106 May 8, 2015 10:42 PM in response to Loner T
    Level 1 (0 points)
    May 8, 2015 10:42 PM in response to Loner T

    Hello Loner T, can you take a look at my screen shots and help me out?

    I just updated the OS X and the Windows 7 partition which I usually use has disappeared...Screen Shot 2015-05-09 at 2.36.26 AM.png Screen Shot 2015-05-09 at 2.37.24 AM.pngScreen Shot 2015-05-09 at 2.39.17 AM.png

  • by Loner T,

    Loner T Loner T May 9, 2015 6:30 AM in response to AndyT0106
    Level 7 (24,601 points)
    Safari
    May 9, 2015 6:30 AM in response to AndyT0106

    Can I suggest a new discussion with this screen shots? it is much easier to track individual issues.

  • by AndyT0106,

    AndyT0106 AndyT0106 May 9, 2015 6:33 AM in response to Loner T
    Level 1 (0 points)
    May 9, 2015 6:33 AM in response to Loner T

    Hello Loner T, thanks for the quick response. I have already created a new thread, please take a look: https://discussions.apple.com/thread/7033729

  • by FatMac>MacPro,

    FatMac>MacPro FatMac>MacPro May 9, 2015 8:15 AM in response to Cataiday
    Level 5 (4,866 points)
    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.

Previous Page 2