No bootable device, I can’t boot windows 7

Please I need urgent help with my MacBook Pro Retina 13 2012. I have BootCamp working smoothly on window 7 ultimate. So I decided to add Ubuntu 16.04 to my BootCamp partition, and I successfully install it both the Mac, Window and Ubuntu was working fine. When I reboot holding the option key I can select which operating system I will love to use.


Unfortunately I decided to delete Ubuntu so I can install kali Linux. I login into my Mac OS and deleted Ubuntu from the BootCamp partition then I try to go back to window 7 so I can download kali Linux but the windows 7 was stuck saying No Bootable Device, insert CD and press any key. This is the problem I have been finding a solution, I don’t have the window 7 CD iso file or a flash. 


I trying to repair the BootCamp partition or first aid it but the icons for those features is dim which means I can’t repair or first aid it. 


When I reboot my MacBook hold the option key I don’t see the windows 7, only Mac OS and EFI boot. If I click on the EFI boot the screen will stuck on a blue background. I can only access the Mac OS, when I check my disk Utility the BootCamp partition is still there. Please guys help me I don’t want to loss my data’s on the windows 7.

Posted on Jun 6, 2019 8:29 AM

Reply
Question marked as Top-ranking reply

Posted on Jun 6, 2019 12:47 PM

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. Please see thesample Q&A as an example. These steps can be repeated if you make a mistake before you get to Step 12, otherwise start from Step 1 for these steps. Step 6 has numbers which are typed with a space between the numbers. Please see the sample Q&A before you execute these steps.



  1. Sudo gdisk /dev/rdisk0
  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
  7. Y (Good for GRUB question)
  8. N (part 2 boot flag)
  9. Y (part 3 boot flag make NTFS bootable partition)
  10. O (print current Hybrid MBR)
  11. W (Write the new MBR)
  12. Y (Yes! write the new MBR)
  13. 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 07): Press Enter/Return
Set the bootable flag? (Y/N): Y



Similar questions

38 replies
Question marked as Top-ranking reply

Jun 6, 2019 12:47 PM in response to zara229

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. Please see thesample Q&A as an example. These steps can be repeated if you make a mistake before you get to Step 12, otherwise start from Step 1 for these steps. Step 6 has numbers which are typed with a space between the numbers. Please see the sample Q&A before you execute these steps.



  1. Sudo gdisk /dev/rdisk0
  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
  7. Y (Good for GRUB question)
  8. N (part 2 boot flag)
  9. Y (part 3 boot flag make NTFS bootable partition)
  10. O (print current Hybrid MBR)
  11. W (Write the new MBR)
  12. Y (Yes! write the new MBR)
  13. 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 07): Press Enter/Return
Set the bootable flag? (Y/N): Y



Jun 6, 2019 1:20 PM in response to Loner T

Last login: Thu Jun  6 23:10:02 on ttys000


mavens-mbp:~ mavenkings$ sudo gdisk /dev/rdisk0


Password:


GPT fdisk (gdisk) version 1.0.4




Warning: Devices opened with shared lock will not have their


partition table automatically reloaded!


Partition table scan:


  MBR: protective


  BSD: not present


  APM: not present


  GPT: present




Found valid GPT with protective MBR; using GPT.




Command (? for help): P


Disk /dev/rdisk0: 976773168 sectors, 465.8 GiB


Sector size (logical): 512 bytes


Disk identifier (GUID): 39E32EFF-ABBA-47D6-9D3B-9909EDB1110B


Partition table holds up to 128 entries


Main partition table begins at sector 2 and ends at sector 33


First usable sector is 34, last usable sector is 976773134


Partitions will be aligned on 8-sector boundaries


Total free space is 21 sectors (10.5 KiB)




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


   1              40          409639   200.0 MiB   EF00  EFI System Partition


   2          409640       584196095   278.4 GiB   AF0A  Macintosh HD


   3       584196096       976773119   187.2 GiB   0700  




Command (? for help): R




Recovery/transformation command (? for help): O




Disk size is 976773168 sectors (465.8 GiB)


MBR disk identifier: 0x8C6AE1B6


MBR partitions:




Number  Boot  Start Sector   End Sector   Status      Code


   1                     1    976773167   primary     0xEE




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


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


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




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


Enter an MBR hex code (default 07): 


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




Unused partition space(s) found. Use one to protect more partitions? (Y/N): N




Recovery/transformation command (? for help): O




Disk size is 976773168 sectors (465.8 GiB)


MBR disk identifier: 0x8C6AE1B6


MBR partitions:




Number  Boot  Start Sector   End Sector   Status      Code


   1                     1       409639   primary     0xEE


   2                409640    584196095   primary     0xAF


   3      *      584196096    976773119   primary     0x07




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


This is the final stage, how I'm correct should process with Y and reboot


Jun 6, 2019 1:02 PM in response to Loner T

Last login: Thu Jun  6 22:27:37 on ttys000


mavens-mbp:~ mavenkings$ Sudo gdisk /dev/rdisk0


Password:


GPT fdisk (gdisk) version 1.0.4




Warning: Devices opened with shared lock will not have their


partition table automatically reloaded!


Partition table scan:


  MBR: protective


  BSD: not present


  APM: not present


  GPT: present




Found valid GPT with protective MBR; using GPT.




Command (? for help): P


Disk /dev/rdisk0: 976773168 sectors, 465.8 GiB


Sector size (logical): 512 bytes


Disk identifier (GUID): 39E32EFF-ABBA-47D6-9D3B-9909EDB1110B


Partition table holds up to 128 entries


Main partition table begins at sector 2 and ends at sector 33


First usable sector is 34, last usable sector is 976773134


Partitions will be aligned on 8-sector boundaries


Total free space is 21 sectors (10.5 KiB)




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


   1              40          409639   200.0 MiB   EF00  EFI System Partition


   2          409640       584196095   278.4 GiB   AF0A  Macintosh HD


   3       584196096       976773119   187.2 GiB   0700  




Command (? for help): R




Recovery/transformation command (? for help): O




Disk size is 976773168 sectors (465.8 GiB)


MBR disk identifier: 0x8C6AE1B6


MBR partitions:




Number  Boot  Start Sector   End Sector   Status      Code


   1                     1    976773167   primary     0xEE




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


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


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




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


Enter an MBR hex code (default 07): 


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




Unused partition space(s) found. Use one to protect more partitions? (Y/N): Y


Note: Default is 0xEE, but this may confuse Mac OS X.


Enter an MBR hex code (default EE): 


I got to step ten and here I'm confuse

Jun 6, 2019 12:30 PM in response to Loner T

Last login: Thu Jun  6 22:27:24 on console


mavens-mbp:~ mavenkings$ sudo gpt -vv -r show /dev/disk0


Password:


gpt show: /dev/disk0: mediasize=500107862016; sectorsize=512; blocks=976773168


gpt show: /dev/disk0: PMBR 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         PMBR


          1          1         Pri GPT header


          2         32         Pri GPT table


         34          6         


         40     409600      1  GPT part - C12A7328-F81F-11D2-BA4B-00A0C93EC93B


     409640  583786456      2  GPT part - 7C3457EF-0000-11AA-AA11-00306543ECAC


  584196096  392577024      3  GPT part - EBD0A0A2-B9E5-4433-87C0-68B6B72699C7


  976773120         15         


  976773135         32         Sec GPT table


  976773167          1         Sec GPT header


mavens-mbp:~ mavenkings$ sudo 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 -  976773167] <Unknown ID>


 2: 00    0   0   0 -    0   0   0 [         0 -          0] unused      


 3: 00    0   0   0 -    0   0   0 [         0 -          0] unused      


 4: 00    0   0   0 -    0   0   0 [         0 -          0] unused      


mavens-mbp:~ mavenkings$ 

Jun 6, 2019 1:05 PM in response to zara229

zara229 wrote:


Unused partition space(s) found. Use one to protect more partitions? (Y/N): Y

This should be 'N', otherwise you are asked the following questions. Use Ctrl+C to abort and start over again.

Note: Default is 0xEE, but this may confuse Mac OS X.

Enter an MBR hex code (default EE): 

I got to step ten and here I'm confuse

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

No bootable device, I can’t boot windows 7

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