如何修复GPT中的“虚假地图”错误?


1

我有一台带有OS X Yosemite ver的MacBook Pro Retina。10.10.5一个物理驱动器256GB。这个驱动器有3个分区:1 - Mac,2 - Mac恢复,3 - Win 7 64位。由于Win 7驱动器上的磁盘空间不足,我启动了OS X并将Macintosh HD分区缩小了25 GB。然后我创建了一个25 GB的第4个分区,我计划与Win 7分区合并。执行此操作后,再也无法启动到Win 7。重新启动MacBook后,我只有两个启动选项而不是三个:MAC和MAC恢复。

diskutil列表:

Vladimirs-MBP:~ VK$ diskutil list  
/dev/disk0  
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        *251.0 GB   disk0  
   1:                  Apple_HFS Macintosh HD            125.0 GB   disk0s1  
   2:                 Apple_Boot Recovery HD             650.0 MB   disk0s2  
   3:                  Apple_HFS Macintosh HD 2          24.9 GB    disk0s3  
   4:       Microsoft Basic Data Windows                 100.1 GB   disk0s4    

sudo fdisk / dev / disk0

sudo fdisk /dev/disk0
Disk: /dev/disk0    geometry: 30515/255/63 [490234752 sectors]  
Signature: 0xAA55  
         Starting       Ending  
 #: id  cyl  hd sec -  cyl  hd sec [     start -       size]  
------------------------------------------------------------------------  
 1: EE 1023 254  63 - 1023 254  63 [         1 -  490234751] <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  

为了将分区2,3,4添加到MBR,我需要知道“开始”和“大小”值,为了做到这一点,我需要使用GPT。但是在使用GPT时,我收到以下错误:

GPT

Vladimirs-MBP:~ VK$ sudo gpt -r show /dev/disk0  
gpt show: /dev/disk0: Suspicious MBR at sector 0  
gpt show: error: bogus map  
gpt show: unable to open device '/dev/disk0': Undefined error: 0  

试试sudo fdisk /dev/disk0
大卫安德森

这些命令将转储GPT。我将尝试直接从此输出中读取值。sudo xxd -seek 512 -len 1024 -p /dev/disk0sudo xxd -seek 251000176128 -len 512 -p /dev/disk0sudo xxd -seek 251000192512 -len 512 -p /dev/disk0
大卫安德森
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.