在尝试安装Kali Linux之后,我再也无法访问macOS了


4

我尝试使用macOS安装Kali Linux作为双启动。为此目的,我在250 GB的侧面划分了20 GB,但安装没有按计划进行。所以我决定重新启动macOS并删除分区。

当我去磁盘工具,我没有找到任何地方的20 GB分区,所以基于谷歌我已经使用终端删除它们,但我最终在230 GB分区上将FFFFFFF作为分区类型。

Apple技术告诉我重新启动设备,它无法启动(显然)。我发现 这里的帖子 有人有同样的问题,但最后一步没有用。

我被困在重新添加分区2和3

diskutil umountDisk /dev/disk1
sudo gpt add -b 928144008 -i 3 -s 262144 -t 426F6F74-0000-11AA-AA11-00306543ECAC /dev/disk1
diskutil umountDisk /dev/disk1
sudo gpt add -b 409640 -i 2 -s 927734368 -t 53746F72-6167-11AA-AA11-00306543ECAC /dev/disk1

在恢复模式中,我已经 diskutil list

-bash-3.2# diskutil list
/dev/disk0 (internal, physical):
#:                       TYPE NAME                    SIZE        IDENTIFIER
0:      GUID_partition_scheme                        *251.0 GB   disk0
1:                        EFI EFI                     209.7 MB   disk0s1
/dev/disk1 (disk image):
#:                       TYPE NAME                    SIZE       IDENTIFIER
0:      GUID_partition_scheme                        +2.1 GB     disk1
1:                  Apple_HFS OS X Base System        2.0 GB     disk1s1
/dev/disk2 (disk image):
#:                       TYPE NAME                    SIZE       IDENTIFIER
0:                            untitled               +5.2 MB     disk2
/dev/disk3 (disk image):
#:                       TYPE NAME                    SIZE       IDENTIFIER
0:                            untitled               +524.3 KB   disk3
/dev/disk4 (disk image):
#:                       TYPE NAME                    SIZE       IDENTIFIER
0:                            untitled               +524.3 KB   disk4
/dev/disk5 (disk image):
#:                       TYPE NAME                    SIZE       IDENTIFIER
0:                            untitled               +524.3 KB   disk5
/dev/disk6 (disk image):
#:                       TYPE NAME                    SIZE       IDENTIFIER
0:                            untitled               +524.3 KB   disk6
/dev/disk7 (disk image):
#:                       TYPE NAME                    SIZE       IDENTIFIER
0:                            untitled               +524.3 KB   disk7
/dev/disk8 (disk image):
#:                       TYPE NAME                    SIZE       IDENTIFIER
0:                            untitled               +6.3 MB     disk8
/dev/disk9 (disk image):
#:                       TYPE NAME                    SIZE       IDENTIFIER
0:                            untitled               +2.1 MB     disk9
/dev/disk10 (disk image):
#:                       TYPE NAME                    SIZE       IDENTIFIER
0:                            untitled               +1.0 MB     disk10
/dev/disk11 (disk image):
#:                       TYPE NAME                    SIZE       IDENTIFIER
0:                            untitled               +524.3 KB   disk11
/dev/disk12 (disk image):
#:                       TYPE NAME                    SIZE       IDENTIFIER
0:                            untitled               +524.3 KB   disk12
/dev/disk13 (disk image):
#:                       TYPE NAME                    SIZE       IDENTIFIER
0:                            untitled               +1.0 MB     disk13
/dev/disk14 (disk image):
#:                       TYPE NAME                    SIZE       IDENTIFIER
0:                            untitled               +6.3 MB     disk14

我跑的时候 fdisk /dev/disk0

-bash-3.2# 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    0   0   1 - 1023 254  63 [         1 -     409639] <Unknown ID>
*2: DA 1023 254  63 - 1023 254  63 [    409640 -  449218744] <Unknown ID>
3: 83 1023 254  63 - 1023 254  63 [ 449630208 -   24027136] Linux files*
4: 82 1023 254  63 - 1023 254  63 [ 473657344 -   16576512] Linux swap

我跑的时候 gpt -r show /dev/disk0

-bash-3.2# gpt -r show /dev/disk0
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  449218744      2  MBR part 218
  449628384       1824        
  449630208   24027136      3  MBR part 131
  473657344   16576512      4  MBR part 130
  490233856        863        
  490234719         32         Sec GPT table
  490234751          1         Sec GPT header

我该怎么做才能恢复我的macOS分区?



是的......
Talaq

你能帮我解决一下吗?
Talaq

我在这里添加了另一个问题的内容(并删除了第一个),因此我们将所有内容放在一个地方。知道可能会有所帮助 怎么样 解决方案的最后一步 apple.stackexchange.com/questions/239759/... 失败。
nohillside

那里的答案不再适用,因为MBR似乎受到了High Sierra(及更高版本)中SIP的保护,与旧的sys版本相反。您可能必须禁用SIP( csrutil disable ),重新启动到Internet恢复模式并再次尝试。另外我会把MBR归零( sudo dd if=/dev/zero of=/dev/disk0 bs=512 count=1
klanomath
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.