我设法使用 Winclone 在辅助硬盘的一个分区上安装了 Windows,但无法启动它。现在,当我选择 Windows 作为启动设备时,我收到“无可启动设备 --- 插入启动盘并按任意键”错误。
我和 eFit、rEFind、gptsync 以及其它一些软件玩了很多次,但还是没能修复它。
我找到了类似的线程,但没有找到有关修复两个驱动器的 MBR 的任何信息。(https://discussions.apple.com/thread/4144252?start=600&tstart=0)
这是我尝试的最后一个代码;最后我胆怯了……
Last login: Sat May 11 09:02:53 on console
Jolin-M:~ JolinM$ sudo gdisk /dev/disk0
GPT fdisk (gdisk) version 0.8.6
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/disk0: 125045424 sectors, 59.6 GiB
Logical sector size: 512 bytes
Disk identifier (GUID): 5AB6E84E-2E88-4DE1-9931-03182B67EABE
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 125045390
Partitions will be aligned on 8-sector boundaries
Total free space is 13 sectors (6.5 KiB)
Number Start (sector) End (sector) Size Code Name
1 40 409639 200.0 MiB EF00 EFI System Partition
2 409640 123775847 58.8 GiB AF00 SSD
3 123775848 125045383 619.9 MiB AB00 Recovery HD
Command (? for help): q
Jolin-M:~ JolinM$ sudo gdisk /dev/disk1
GPT fdisk (gdisk) version 0.8.6
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/disk1: 488397168 sectors, 232.9 GiB
Logical sector size: 512 bytes
Disk identifier (GUID): 0E0A8E5C-5CA7-4C12-AAA9-C454E9E6ABF1
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 488397134
Partitions will be aligned on 8-sector boundaries
Total free space is 1271309 sectors (620.8 MiB)
Number Start (sector) End (sector) Size Code Name
1 40 409639 200.0 MiB EF00 EFI System Partition
2 409640 438299463 208.8 GiB AF00 Untitled
3 439570432 488396799 23.3 GiB 0700 BOOTCAMP
Command (? for help): w
Warning! Mismatched GPT and MBR partition! MBR partition 4, of type 0x07,
has no corresponding GPT partition! You may continue, but this condition
might cause data loss in the future!
Final checks complete. About to write GPT data. THIS WILL OVERWRITE EXISTING
PARTITIONS!!
Do you want to proceed? (Y/N): n
Aborting write of new partition table.
Command (? for help): q
这是尝试修复不匹配失败后的新代码。
Jolin-M:~ JolinM$ sudo gdisk /dev/disk1
GPT fdisk (gdisk) version 0.8.6
Partition table scan:
MBR: MBR only
BSD: not present
APM: not present
GPT: not present
***************************************************************
Found invalid GPT and valid MBR; converting MBR to GPT format.
THIS OPERATION IS POTENTIALLY DESTRUCTIVE! Exit by typing 'q' if
you don't want to convert your MBR partitions to GPT format!
***************************************************************
Command (? for help): p
Disk /dev/disk1: 488397168 sectors, 232.9 GiB
Logical sector size: 512 bytes
Disk identifier (GUID): C9DD6E4E-F901-43E8-BFE6-56E0FD8A3E47
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 488397134
Partitions will be aligned on 8-sector boundaries
Total free space is 1271309 sectors (620.8 MiB)
Number Start (sector) End (sector) Size Code Name
1 40 409639 200.0 MiB EF00 EFI System
2 409640 438299463 208.8 GiB AF00 Apple HFS/HFS+
3 439570432 488396799 23.3 GiB 0700 Microsoft basic data
Command (? for help): r
Recovery/transformation command (? for help): o
Disk size is 488397168 sectors (232.9 GiB)
MBR disk identifier: 0x00000000
MBR partitions:
Number Boot Start Sector End Sector Status Code
1 1 488397167 primary 0xEE
Recovery/transformation command (? for help):
答案1
第一的,注意gdisk
有关 GPT 和 MBR 分区表不匹配的警告!!!!此警告的常见原因是您使用不支持 GPT 的工具修改了 MBR 分区表。如果您使用 Windows 工具对磁盘进行重新分区,则可能会发生这种情况。问题是 GPT 是真实的分区表,迟早,不匹配会导致问题,因为混合 MBR 将被覆盖(这可能会阻止访问它现在包含的不匹配分区),或者不匹配的分区会导致 Windows 写入它不应该访问的 GPT 分区。您可能希望找到不匹配的 MBR 分区的起点和终点,并创建一个具有相同起点和终点的新 GPT 分区(假设这是可能的;也可能不是)。然后您需要重新创建混合 MBR。另一方面,MBR 分区可能是假的,而 GPT 中的内容是正确的。(这种模糊性是我称混合 MBR 既丑陋又危险的原因之一。)不过,在执行此操作之前,请备份您的分区表,阅读足够多的资料以了解您正在做的事情,然后当心!你可能会把事情搞得一团糟。我的“修复 GPT 磁盘”本页面提供了一些指导,帮助您开始进行此类修复,但它不是一本“菜谱”指南——您必须参与解决问题以解决这个问题。自动化工具或分步指南可能会解决问题,但让事情变得更糟的风险太大了。
其次,“无可启动设备”错误无法通过gdisk
大多数其他分区工具解决。该错误告诉您,相关磁盘设备上没有 BIOS 模式引导加载程序。您需要使用 Windows 恢复工具来重写引导加载程序。不幸的是,我不太熟悉所需的工具,所以我无法为您提供分步说明。您可能需要从 Windows 应急光盘执行此操作。请确保只在后您处理不匹配的 MBR/GPT 问题!