Tyysker

Q: Bootcamp disk0s4 gone after Yosemite update

Hey everybody. Got a question for Loner_T.

 

I'm in the same boat, changed my BootCamp partition size and ended up not being able to boot it anymore since upgrading to Yosemite.

 

I'd like to know if I should go with the testdisk, GDT fdisk, gdisk solution or not. I'm stuck at actually identifying the correct start/end of my BC partition and I'm really looking to redo the whole partition and reinstall Windows 7. Btw, if I recover the partition, will I not have the same problem when I upgrade from Yosemite to the next OS X iteration?

 

Here's what I have so far:

 

MacBook-Pro-de-Michel:~ MB$ diskutil list

/dev/disk0

   #:                       TYPE NAME                    SIZE       IDENTIFIER

   0:      GUID_partition_scheme                        *256.1 GB   disk0

   1:                        EFI EFI                     209.7 MB   disk0s1

   2:          Apple_CoreStorage                         150.5 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:      GUID_partition_scheme                        *500.1 GB   disk1

   1:                        EFI EFI                     209.7 MB   disk1s1

   2:                  Apple_HFS Macintosh HD            499.2 GB   disk1s2

/dev/disk2

   #:                       TYPE NAME                    SIZE       IDENTIFIER

   0:                 Apple_HFSX Intel SSD              *150.2 GB   disk2

                                 Logical Volume on disk0s2

                                 61D35AC9-DB5E-4E37-8540-F570E91DD3E2

                                 Unencrypted

MacBook-Pro-de-Michel:~ MB$ diskutil cs list

CoreStorage logical volume groups (1 found)

|

+-- Logical Volume Group C666E211-D5E4-4B60-9D48-1C40DC8F333D

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

    Name:         Intel SSD

    Status:       Online

    Size:         150549417984 B (150.5 GB)

    Free Space:   18993152 B (19.0 MB)

    |

    +-< Physical Volume E7EF901D-7E54-49D8-8E26-334A69FF9FFC

    |   ----------------------------------------------------

    |   Index:    0

    |   Disk:     disk0s2

    |   Status:   Online

    |   Size:     150549417984 B (150.5 GB)

    |

    +-> Logical Volume Family 179EF81A-41F0-47D9-A480-256644BBEE18

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

        Encryption Status:       Unlocked

        Encryption Type:         None

        Conversion Status:       NoConversion

        Conversion Direction:    -none-

        Has Encrypted Extents:   No

        Fully Secure:            No

        Passphrase Required:     No

        |

        +-> Logical Volume 61D35AC9-DB5E-4E37-8540-F570E91DD3E2

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

            Disk:                  disk2

            Status:                Online

            Size (Total):          150178103296 B (150.2 GB)

            Conversion Progress:   -none-

            Revertible:            Yes (no decryption required)

            LV Name:               Intel SSD

            Volume Name:           Intel SSD

            Content Hint:          Apple_HFSX

MacBook-Pro-de-Michel:~ MB$ sudo fdisk /dev/devdisk0

Password:

fdisk: /dev/devdisk0: No such file or directory

MacBook-Pro-de-Michel:~ MB$ sudo fdisk /dev/disk0

Disk: /dev/disk0 geometry: 31130/255/63 [500118192 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: AC 1023 254  63 - 1023 254  63 [    409640 -  294041832] <Unknown ID>

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

*4: 07 1023 254  63 - 1023 254  63 [ 353634304 -  146483200] HPFS/QNX/AUX

MacBook-Pro-de-Michel:~ MB$ sudo gpt -vv -r show /dev/disk0

gpt show: /dev/disk0: mediasize=256060514304; sectorsize=512; blocks=500118192

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 500118191

      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  294041832      2  GPT part - 53746F72-6167-11AA-AA11-00306543ECAC

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

  295721008   57913296        

  353634304  146483200      4  GPT part - EBD0A0A2-B9E5-4433-87C0-68B6B72699C7

  500117504        655        

  500118159         32         Sec GPT table

  500118191          1         Sec GPT header

MacBook-Pro-de-Michel:~ MB$ sudo dd if=/dev/rdisk0s4 count=1 2>/dev/null | hexdump -C

00000000  a0 b5 69 e9 6b e0 af 8f  71 55 59 c9 e2 4f ab 1b  |..i.k...qUY..O..|

00000010  3e cc 0c f9 66 6b cc ca  ca 9a 99 2f 17 15 35 8b  |>...fk...../..5.|

00000020  fe cd 9f 0e f4 e1 a5 85  90 59 8a f8 59 a3 55 2b  |.........Y..Y.U+|

00000030  27 ff bb 2d 83 85 55 8a  8b e4 a2 13 52 85 f1 e2  |'..-..U.....R...|

00000040  5e d0 de 47 73 12 94 94  b0 cd a5 ba a3 6e 22 88  |^..Gs........n".|

00000050  1f 80 86 7c d5 ca 45 22  67 ff 0f c2 5b e3 ed ea  |...|..E"g...[...|

00000060  cc 3b 3a b0 42 85 30 a6  fb ed 49 c6 2b 60 ef 70  |.;:.B.0...I.+`.p|

00000070  ee f5 8f c3 49 09 7b 9a  6a 0b 7f ac 02 ed 4b d0  |....I.{.j.....K.|

00000080  15 b0 4c d8 dd 64 d9 f6  26 11 c4 17 10 a3 5c 33  |..L..d..&.....\3|

00000090  69 fc 8b 79 af cf 1c 72  04 f4 88 85 4a 54 2a 0c  |i..y...r....JT*.|

000000a0  bc f6 cf eb 6b ea 89 76  44 ff d5 75 ab 64 f1 d6  |....k..vD..u.d..|

000000b0  01 89 37 4c 2e 02 fb 87  52 7b 8d a5 44 60 db d2  |..7L....R{..D`..|

000000c0  6e 72 f7 18 93 e8 9f 91  b2 42 4c 1a 37 b7 b5 e4  |nr.......BL.7...|

000000d0  db a1 3d 20 3e 40 2c 3b  ca 5d 1a af 09 fc 23 b3  |..= >@,;.]....#.|

000000e0  a8 1a e4 af 90 a1 1f c5  7c 8b a5 67 3f 4e 97 02  |........|..g?N..|

000000f0  fa 3b 3a 94 24 71 dc be  87 1c 5f 8e 02 d8 17 7c  |.;:.$q...._....||

00000100  1c 42 85 e2 b8 e8 37 64  eb 67 41 3a 7b 80 85 96  |.B....7d.gA:{...|

00000110  65 62 fe 6c 45 96 65 fd  76 60 df 60 bf 10 1f 12  |eb.lE.e.v`.`....|

00000120  71 9b 16 2e 71 bc 15 d4  4f d0 8b 7f ec ac 17 f1  |q...q...O.......|

00000130  bb 0f fe 3c ed b3 cc 88  f5 cd 3c f6 95 76 a2 88  |...<......<..v..|

00000140  bf f8 c8 e2 00 c3 13 df  cd bf 4c 59 81 dd bc 21  |..........LY...!|

00000150  fc 3f ff ff 2f 4c 99 2c  2e 0e 8d f2 45 e6 92 6e  |.?../L.,....E..n|

00000160  6e 01 fa 7f b1 18 2b 13  c4 d8 7b d6 64 fe 7e 08  |n.....+...{.d.~.|

00000170  e8 cf cb 2a d4 1d 71 9c  a4 60 b2 46 e9 ae d3 ef  |...*..q..`.F....|

00000180  63 45 97 f8 d2 8b 7f 28  fc 6e a4 de 25 f2 97 03  |cE.....(.n..%...|

00000190  7f fb 04 cd ca a5 7a a4  4a 80 6f 16 76 60 32 41  |......z.J.o.v`2A|

000001a0  c5 a4 bf cd 7d 34 77 11  2a a5 10 cd ba 99 28 88  |....}4w.*.....(.|

000001b0  75 6f 88 fa f9 0b 28 3f  54 a4 8a 92 c4 5e 5e e0  |uo....(?T....^^.|

000001c0  92 cf a3 00 ff fc 72 dc  63 40 c6 65 3d 12 bd 96  |......r.c@.e=...|

000001d0  ce ad 06 f6 06 aa ee 9f  62 34 f3 e9 57 2a 53 d4  |........b4..W*S.|

000001e0  46 a4 0b b1 ee 6e 31 8a  67 a0 39 55 57 41 f9 ab  |F....n1.g.9UWA..|

000001f0  65 15 65 42 fe 91 9b 9c  4e 64 c5 3d a2 7e ad b6  |e.eB....Nd.=.~..|

00000200

 

The highlighted partition is the one where my Windows 7 files are:

Terminal.jpg

Now, I've read some threads that you posted on, but I'm still unsure what I should input in GDT fdisk and gdisk.

 

Thanks.

MacBook Pro (15-inch Mid 2012), OS X Yosemite (10.10.1)

Posted on Dec 16, 2014 10:59 AM

Close

Q: Bootcamp disk0s4 gone after Yosemite update

  • All replies
  • Helpful answers

Page 1 of 3 last Next
  • by Loner T,Solvedanswer

    Loner T Loner T Dec 16, 2014 11:55 AM in response to Tyysker
    Level 7 (24,312 points)
    Safari
    Dec 16, 2014 11:55 AM in response to Tyysker

    1. Use Testdisk to locate the 'lost' NTFS header in the gap between GPT3 and GPT4.

    2. Once located, GPT4 is deleted/recreated using GPT Fdisk (aka gdisk).

    3. The gap between GPT3 and GPT4 seems to indicate a resized Windows partition using either a third-party tool, or Disk Utility and GPT/MBR manipulation.

    4. The Gap + GPT4 are 204396496 sectors (roughly 102+GB).

    5. Windows resizing is not recommended/supported by BCA when using the Hybrid MBR method (pure EFI/GPT are resizeable and are support on 2013+ Macs).

    6. Yosemite causes problems, because there is a deleted NTFS header prior to resizing, and a new one. It uses the older version and causes a gap and causes problems. If you do not resize Windows, once it is fixed now, future versions will respect the current configuration since GPT and MBR will be in sync. It is difficult to predict what Apple BC engineers will do next in BC. There is enough feedback from myself alone on the subject.

  • by Tyysker,

    Tyysker Tyysker Dec 16, 2014 12:55 PM in response to Loner T
    Level 1 (0 points)
    Dec 16, 2014 12:55 PM in response to Loner T

    I'm reading Bootcamp missing after expanding partition, and I need to identify first and last sectors to change the partition information with gdisk.

     

    1. Isn't the NTFS header at 295721008 ? and the end at 500118158?

     

    According to testdisk, the partition begins at 295723008 and gpt indicates that it begins at 295721008.

     

    Next step is to use gdisk to change NTFS header to which sector?

     

    I'm definitely out of my comfort zone and will need some guidances....

  • by Loner T,

    Loner T Loner T Dec 16, 2014 1:37 PM in response to Tyysker
    Level 7 (24,312 points)
    Safari
    Dec 16, 2014 1:37 PM in response to Tyysker

    Can you check what files are shown when you use 'P' to list files? Do not use left/right arrow/cursor keys in Testdisk anywhere, because it changes partitions and can cause grief.

  • by Tyysker,

    Tyysker Tyysker Dec 16, 2014 2:01 PM in response to Loner T
    Level 1 (0 points)
    Dec 16, 2014 2:01 PM in response to Loner T

    Here it is:

     

    TestDisk 7.0-WIP, Data Recovery Utility, October 2014

    Christophe GRENIER <grenier@cgsecurity.org>

    http://www.cgsecurity.org

        MS Data                295723008  500117496  204394489

    Directory /

     

    >dr-xr-xr-x    0    0        0 17-Sep-2014 11:29 .

    dr-xr-xr-x    0    0        0 17-Sep-2014 11:29 ..

    dr-xr-xr-x    0    0        0 19-Nov-2013 01:55 $Recycle.Bin

    dr-xr-xr-x    0    0        0 19-Nov-2013 04:44 Boot

    dr-xr-xr-x    0    0        0 19-Nov-2013 02:03 Intel

    dr-xr-xr-x    0    0        0 21-Nov-2013 12:06 NVIDIA

    dr-xr-xr-x    0    0        0 13-Jul-2009 23:20 PerfLogs

    dr-xr-xr-x    0    0        0 17-Aug-2014 09:11 Program Files

    dr-xr-xr-x    0    0        0 17-Sep-2014 11:29 Program Files (x86)

    dr-xr-xr-x    0    0        0 17-Sep-2014 11:29 ProgramData

    dr-xr-xr-x    0    0        0 19-Nov-2013 01:50 Recovery

    dr-xr-xr-x    0    0        0 17-Sep-2014 11:29 System Volume Information

    dr-xr-xr-x    0    0        0  2-Dec-2013 18:30 Users

    dr-xr-xr-x    0    0        0 29-Aug-2014 20:19 Windows

    dr-xr-xr-x    0    0        0 19-Nov-2013 02:00 temp

    -r--r--r--    0    0      8192 19-Nov-2013 04:44 BOOTSECT.BAK

    -r--r--r--    0    0      2066 19-Nov-2013 02:02 RHDSetup.log

    -r--r--r--    0    0    383562 13-Jul-2009 21:38 bootmgr

    -r--r--r--    0    0    171136  2-Aug-2009 04:59 grldr

    -r--r--r--    0    0 17115586560 17-Sep-2014 15:15 pagefile.sys

  • by Loner T,Helpful

    Loner T Loner T Dec 16, 2014 2:16 PM in response to Tyysker
    Level 7 (24,312 points)
    Safari
    Dec 16, 2014 2:16 PM in response to Tyysker
    GPT 3 StartGPT 3 SizeGPT 3 EndNTFS StartSector OffsetNTFS SizeNTFS End
    29445147212695362957210082957230082000204394489500117496

     

    The 'Sector Offset' being positive is good. A negative value means you lose GPT#3. The NTFS size is roughly 102GB which is good.

     

    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.

     

    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. 295723008 - Start offset in bytes  (start point for Bootcamp part)
    8. +204394489 (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).

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

     

    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

     

    If you see a hanging underline cursor at the top left on a black screen, and it does not proceed further, you may need Windows Startup Repair or a tool called EasyBCD.

  • by Tyysker,

    Tyysker Tyysker Dec 16, 2014 3:12 PM in response to Loner T
    Level 1 (0 points)
    Dec 16, 2014 3:12 PM in response to Loner T

    Before proceeding, for gdisk to know where the NTSF part ends you need to specify the part size with the + sign. So it will calculate from start point, add the size to specify where the part ends.

     

    As you wrote in the first gdisk, I need to input exactly those numbers, right?

     

    I know what the numbers are referencing to, just need to double check. Upon confirmation, I'll proceed and post the results.

  • by Tyysker,

    Tyysker Tyysker Dec 17, 2014 12:27 PM in response to Tyysker
    Level 1 (0 points)
    Dec 17, 2014 12:27 PM in response to Tyysker

    Loner, can you confirm my last post?

     

    Thx.

  • by Loner T,

    Loner T Loner T Dec 17, 2014 12:30 PM in response to Tyysker
    Level 7 (24,312 points)
    Safari
    Dec 17, 2014 12:30 PM in response to Tyysker

    Tyysker wrote:

     

    As you wrote in the first gdisk, I need to input exactly those numbers, right?

    Yes, Testdisk outputs start/end/size from which I have extracted the start and size in steps 7 and 8. They are correct.

  • by Tyysker,

    Tyysker Tyysker Dec 17, 2014 12:45 PM in response to Loner T
    Level 1 (0 points)
    Dec 17, 2014 12:45 PM in response to Loner T

    Just got a question, why should I set my second partition as not bootable? OS X is installed on the Intel SSD partition after all.

     

    Last login: Wed Dec 17 15:32:50 on ttys001

    MacBook-Pro-de-Michel:~ MB$ sudo gdisk /dev/disk0

    GPT fdisk (gdisk) version 0.8.10

     

    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: 500118192 sectors, 238.5 GiB

    Logical sector size: 512 bytes

    Disk identifier (GUID): 336F890F-1005-4D63-8C79-22402F354952

    Partition table holds up to 128 entries

    First usable sector is 34, last usable sector is 500118158

    Partitions will be aligned on 8-sector boundaries

    Total free space is 2668 sectors (1.3 MiB)

     

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

      1              40          409639     200.0 MiB  EF00  EFI System Partition

      2          409640      294451471      140.2 GiB  AF05  Intel SSD

      3      294451472      295721007       619.9 MiB  AB00  Recovery HD

      4      295723008      500117496       97.5 GiB   0700  Microsoft basic data

  • by Loner T,

    Loner T Loner T Dec 17, 2014 12:52 PM in response to Tyysker
    Level 7 (24,312 points)
    Safari
    Dec 17, 2014 12:52 PM in response to Tyysker

    Bootability of an EFI partition is based on the corresponding GPT entry, the MBR entries are placeholders for such partitions and BCA creates the MBR to be in sync with the GPT.

     

    You can verify it by running sudo bless --verbose --info.

  • by Tyysker,

    Tyysker Tyysker Dec 17, 2014 12:57 PM in response to Loner T
    Level 1 (0 points)
    Dec 17, 2014 12:57 PM in response to Loner T

    Here is the result:

     

    MacBook-Pro-de-Michel:~ MB$ sudo bless --verbose --info

    Password:

    EFI found at IODeviceTree:/efi

    Current EFI boot device string is: '<array><dict><key>IOMatch</key><dict><key>IOProviderClass</key><string>IOMedia </string><key>IOPropertyMatch</key><dict><key>UUID</key><string>704A48D1-3220-4B 19-B786-49EBAAA11176</string></dict></dict><key>BLLastBSDName</key><string>disk0 s3</string></dict></array>'

    Boot option is 8BE4DF61-93CA-11D2-AA0D-00E098032B8C:Boot0080

    Processing boot option 'Mac OS X'

    Boot option matches XML representation

    Found device: disk0s3

    Disk boot device detected

    Checking IOService:/AppleACPIPlatformExpert/PCI0@0/AppleACPIPCI/SATA@1F,2/AppleIntelPchS eriesAHCI/PRT0@0/IOAHCIDevice@0/AppleAHCIDiskDriver/IOAHCIBlockStorageDevice/IOB lockStorageDriver/M4-CT256M4SSD2 Media

    Checking IOService:/AppleACPIPlatformExpert/PCI0@0/AppleACPIPCI/SATA@1F,2/AppleIntelPchS eriesAHCI/PRT1@1/IOAHCIDevice@0/AppleAHCIDiskDriver/IOAHCIBlockStorageDevice/IOB lockStorageDriver/TOSHIBA MK5065GSXF Media

    Checking IOService:/AppleACPIPlatformExpert/PCI0@0/AppleACPIPCI/SATA@1F,2/AppleIntelPchS eriesAHCI/PRT0@0/IOAHCIDevice@0/AppleAHCIDiskDriver/IOAHCIBlockStorageDevice/IOB lockStorageDriver/M4-CT256M4SSD2 Media/IOGUIDPartitionScheme/EFI System Partition@1

    Checking IOService:/AppleACPIPlatformExpert/PCI0@0/AppleACPIPCI/SATA@1F,2/AppleIntelPchS eriesAHCI/PRT0@0/IOAHCIDevice@0/AppleAHCIDiskDriver/IOAHCIBlockStorageDevice/IOB lockStorageDriver/M4-CT256M4SSD2 Media/IOGUIDPartitionScheme/Intel SSD@2

    Checking IOService:/AppleACPIPlatformExpert/PCI0@0/AppleACPIPCI/SATA@1F,2/AppleIntelPchS eriesAHCI/PRT1@1/IOAHCIDevice@0/AppleAHCIDiskDriver/IOAHCIBlockStorageDevice/IOB lockStorageDriver/TOSHIBA MK5065GSXF Media/IOGUIDPartitionScheme/EFI System Partition@1

    Checking IOService:/AppleACPIPlatformExpert/PCI0@0/AppleACPIPCI/SATA@1F,2/AppleIntelPchS eriesAHCI/PRT0@0/IOAHCIDevice@0/AppleAHCIDiskDriver/IOAHCIBlockStorageDevice/IOB lockStorageDriver/M4-CT256M4SSD2 Media/IOGUIDPartitionScheme/Recovery HD@3

    Checking IOService:/AppleACPIPlatformExpert/PCI0@0/AppleACPIPCI/SATA@1F,2/AppleIntelPchS eriesAHCI/PRT1@1/IOAHCIDevice@0/AppleAHCIDiskDriver/IOAHCIBlockStorageDevice/IOB lockStorageDriver/TOSHIBA MK5065GSXF Media/IOGUIDPartitionScheme/Customer@2

    Checking IOService:/AppleACPIPlatformExpert/PCI0@0/AppleACPIPCI/SATA@1F,2/AppleIntelPchS eriesAHCI/PRT0@0/IOAHCIDevice@0/AppleAHCIDiskDriver/IOAHCIBlockStorageDevice/IOB lockStorageDriver/M4-CT256M4SSD2 Media/IOGUIDPartitionScheme/Intel SSD@2/CoreStoragePhysical/Intel SSD/Intel SSD

    Comparing member to IODeviceTree:/PCI0@0/SATA@1F,2/PRT0@0/PMP@0/@0:2 EQUAL

    Found Boot!=Root aggregate media disk2

    mount: /

    Mount point for / is /

    Aggregate boot path is IODeviceTree:/PCI0@0/SATA@1F,2/PRT0@0/PMP@0/@0:2

    GPT detected

    Booter partition required at index 3

    System partition found

    Booter partition found

    Preferred system partition found: disk0s1

    Preferred system partition found: disk1s1

    Returning booter information dictionary:

    <CFBasicHash 0x7fe5324125a0 [0x7fff7ba99cf0]>{type = mutable dict, count = 3,

    entries =>

      0 : <CFString 0x1006d8970 [0x7fff7ba99cf0]>{contents = "System Partitions"} = (

        disk0s1,

        disk1s1

    )

      1 : <CFString 0x1006d9150 [0x7fff7ba99cf0]>{contents = "Data Partitions"} = (

        disk0s2

    )

      2 : <CFString 0x1006d9170 [0x7fff7ba99cf0]>{contents = "Auxiliary Partitions"} = (

        disk0s3

    )

    }

     

    finderinfo[0]: 15729022 => Blessed System Folder is /System/Library/CoreServices

    finderinfo[1]: 16132917 => Blessed System File is /System/Library/CoreServices/boot.efi

    finderinfo[2]:      0 => Open-folder linked list empty

    finderinfo[3]:      0 => No alternate OS blessed file/folder

    finderinfo[4]:      0 => Unused field unset

    finderinfo[5]: 15729022 => OS X blessed folder is /System/Library/CoreServices

    64-bit VSDB volume id:  0xAC8E6660305EECCD

  • by Loner T,

    Loner T Loner T Dec 17, 2014 1:18 PM in response to Tyysker
    Level 7 (24,312 points)
    Safari
    Dec 17, 2014 1:18 PM in response to Tyysker

    Tyysker wrote:

     

    Here is the result:

     

    MacBook-Pro-de-Michel:~ MB$ sudo bless --verbose --info

    Password:

    EFI found at IODeviceTree:/efi

    mount: /

    Mount point for / is /

    Aggregate boot path is IODeviceTree:/PCI0@0/SATA@1F,2/PRT0@0/PMP@0/@0:2

    GPT detected

    Booter partition required at index 3

    System partition found

    Booter partition found

    Preferred system partition found: disk0s1

    Preferred system partition found: disk1s1

     

    finderinfo[0]: 15729022 => Blessed System Folder is /System/Library/CoreServices

    finderinfo[1]: 16132917 => Blessed System File is /System/Library/CoreServices/boot.efi

    finderinfo[2]:      0 => Open-folder linked list empty

    finderinfo[3]:      0 => No alternate OS blessed file/folder

    finderinfo[4]:      0 => Unused field unset

    finderinfo[5]: 15729022 => OS X blessed folder is /System/Library/CoreServices

    64-bit VSDB volume id:  0xAC8E6660305EECCD

    If you notice the EFI boot is based on GPT entry. The MBR entry does not require teh corresponding MBR to be bootable using the --legacy --legacydrivehint method as mentioned in man bless.

  • by Tyysker,

    Tyysker Tyysker Dec 17, 2014 1:51 PM in response to Loner T
    Level 1 (0 points)
    Dec 17, 2014 1:51 PM in response to Loner T

    Here are the results:

     

    GPT rebuild:

     

    MacBook-Pro-de-Michel:~ MB$ sudo gdisk /dev/rdisk0

    Password:

    GPT fdisk (gdisk) version 0.8.10

     

    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: 500118192 sectors, 238.5 GiB

    Logical sector size: 512 bytes

    Disk identifier (GUID): 336F890F-1005-4D63-8C79-22402F354952

    Partition table holds up to 128 entries

    First usable sector is 34, last usable sector is 500118158

    Partitions will be aligned on 8-sector boundaries

    Total free space is 57913957 sectors (27.6 GiB)

     

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

       1   40                409639        200.0 MiB  EF00  EFI System Partition

       2   409640            294451471     140.2 GiB  AF05  Intel SSD

       3   294451472         295721007     619.9 MiB  AB00  Recovery HD

       4   353634304         500117503     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-500118158, default = 295721008) or {+-}size{KMGTP}: 295723008

    Last sector (295723008-500118158, default = 500118158) or {+-}size{KMGTP}: +204394489

    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: 500118192 sectors, 238.5 GiB

    Logical sector size: 512 bytes

    Disk identifier (GUID): 336F890F-1005-4D63-8C79-22402F354952

    Partition table holds up to 128 entries

    First usable sector is 34, last usable sector is 500118158

    Partitions will be aligned on 8-sector boundaries

    Total free space is 2668 sectors (1.3 MiB)

     

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

       1    40                409639        200.0 MiB  EF00  EFI System Partition

       2    409640            294451471     140.2 GiB  AF05  Intel SSD

       3    294451472         295721007     619.9 MiB  AB00  Recovery HD

       4    295723008         500117496     97.5 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.

     

    And the MBR rebuid:

     

    MacBook-Pro-de-Michel:~ MB$ sudo gdisk /dev/disk0

    GPT fdisk (gdisk) version 0.8.10

     

    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: 500118192 sectors, 238.5 GiB

    Logical sector size: 512 bytes

    Disk identifier (GUID): 336F890F-1005-4D63-8C79-22402F354952

    Partition table holds up to 128 entries

    First usable sector is 34, last usable sector is 500118158

    Partitions will be aligned on 8-sector boundaries

    Total free space is 2668 sectors (1.3 MiB)

     

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

       1 40          409639   200.0 MiB EF00  EFI System Partition

       2 409640       294451471   140.2 GiB AF05  Intel SSD

       3 294451472       295721007   619.9 MiB AB00  Recovery HD

       4 295723008       500117496   97.5 GiB 0700  Microsoft basic data

     

    Command (? for help): r

     

    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): AF05

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

     

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

    Enter an MBR hex code (default AB): AB00

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

     

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

    Enter an MBR hex code (default 07): 0700

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

     

    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.

     

    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

     

    If you see a hanging underline cursor at the top left on a black screen, and it does not proceed further, you may need Windows Startup Repair or a tool called EasyBCD.

    Test 1 through 4 GTG. The only difference is that I used the option-key to boot in Windows 7.

     

    As expected, I get the black screen with blinking cursor.

     

    Next step is to execute the Startup repair. Any guidance to offer? Or software to use? My superdrive is being replaced with the original HDD in the bay. I could reinstall the superdrive to use a CD/DVD, but would rather use a USB stick if possible.

     

    Thx so far, I'm hopeful now!

  • by Loner T,

    Loner T Loner T Dec 17, 2014 11:32 PM in response to Tyysker
    Level 7 (24,312 points)
    Safari
    Dec 17, 2014 11:32 PM in response to Tyysker

    Do you have a USB stick which originally contained Windows ISO and BC drivers? If yes, you can use it for Recovery as well.

Page 1 of 3 last Next