I have a 2011 iMac that I had used Bootcamp utility to install Windows 7 on. I got overzealous and tried to triple boot Windows, Mac and Linux on the iMac. I no longer need Linux on this iMac but the process corrupted my boot table and now I can't boot into Windows. If I press and hold 'alt/option' key after it reboots it doesn't show me the Windows bootcamp boot entry -- just Mac and Recovery drive.
However, in the file system, I still see all the files for Windows intact. So the file structure is still there, just the boot table entry is messed up somehow. I tried to 'repair' it but Bootcamp utility no longer gives me the optin of making a bootable Windows thumb drive using the Windows ISO that I have. It just asks to download some support software for Windows and that's it.
If this was Linux, I'd use something like 'boot repair' ISO or 'update-grub' to update the boot table but how do I repair the boot entry in Mac?
I have the Windows ISO available and I'm comfortable with command-line.
UPDATE: Details about the system
users-iMac:~ user$ diskutil list
/dev/disk0 (internal, physical):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *1.0 TB disk0
1: EFI EFI 209.7 MB disk0s1
2: Apple_HFS Macintosh HD 598.5 GB disk0s2
3: Apple_Boot Recovery HD 650.0 MB disk0s3
4: Microsoft Basic Data BOOTCAMP 400.8 GB disk0s4
/dev/disk1 (external, physical):
#: TYPE NAME SIZE IDENTIFIER
0: FDisk_partition_scheme *16.0 GB disk1
1: DOS_FAT_32 FAT32 16.0 GB disk1s1
/dev/disk2 (internal, physical):
#: TYPE NAME SIZE IDENTIFIER
0: CD_partition_scheme Audio CD *410.5 MB disk2
GPT:
users-iMac:~ user$ sudo gpt -r show /dev/disk0
Password:
gpt show: /dev/disk0: Suspicious MBR at sector 0
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 1168862256 2 GPT part - 48465300-0000-11AA-AA11-00306543ECAC
1169271896 1269536 3 GPT part - 426F6F74-0000-11AA-AA11-00306543ECAC
1170541432 782721552 4 GPT part - EBD0A0A2-B9E5-4433-87C0-68B6B72699C7
1953262984 262151
1953525135 32 Sec GPT table
1953525167 1 Sec GPT header
Fdisk:
users-iMac:~ user$ sudo fdisk /dev/disk0
Disk: /dev/disk0 geometry: 121601/255/63 [1953525168 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 - 1168862256] HFS+
3: AB 1023 254 63 - 1023 254 63 [1169271896 - 1269536] Darwin Boot
4: 0B 1023 254 63 - 1023 254 63 [1170541432 - 782721552] Win95 FAT-32
The optical drive on my system works. I was wondering if I could create a bootable thumb drive though. Bootcamp does not give me this option in the 2011 iMac but I was hoping to the edit the 'info.plist' in Bootcamp's contents folder to add my iMac model in there so that Bootcamp gives me the option of booting from thumb drive. This "patch" is described here: Bootcamp - No ISO Option
But is there any other simpler way to create a bootable thumb drive to install Windows on a Mac?
diskutil list
,sudo gpt -r show /dev/disk0
andsudo fdisk /dev/disk0
. These commands will not change your computer. BTW, does your optical (DVD) drive work? I do not think you can boot the Windows installer from a thumb drive on a 2011 iMac.