
讓我感到羞恥的是,我使用 Linux 已經 10 多年了,而所有關於 EFI 和 GPT 的事情都是一場噩夢:(
我有一台 Dell Inspiron 14z Ultrabook,但無法安裝 Ubuntu;當我啟動安裝程式時,它沒有看到任何分割區。這是以下的輸出gdisk
:
root@ubuntu:/home/ubuntu# gdisk -l /dev/sda
GPT fdisk (gdisk) version 0.8.8
Caution: invalid backup GPT header, but valid main header; regenerating
backup header from main header.
Partition table scan:
MBR: protective
BSD: not present
APM: not present
GPT: damaged
****************************************************************************
Caution: Found protective or hybrid MBR and corrupt GPT. Using GPT, but disk
verification and recovery are STRONGLY recommended.
****************************************************************************
Disk /dev/sda: 976773168 sectors, 465.8 GiB
Logical sector size: 512 bytes
Disk identifier (GUID): 4F89526A-5F1B-4BF9-8CD8-2ABAD827386D
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 976768613
Partitions will be aligned on 2048-sector boundaries
Total free space is 4029 sectors (2.0 MiB)
Number Start (sector) End (sector) Size Code Name
1 2048 1026047 500.0 MiB EF00 EFI system partition
2 1026048 1107967 40.0 MiB FFFF Basic data partition
3 1107968 1370111 128.0 MiB 0C01 Microsoft reserved part
4 1370112 2373631 490.0 MiB 2700 Basic data partition
5 2373632 956454911 454.9 GiB 0700 Basic data partition
6 956454912 976766598 9.7 GiB 2700 Microsoft recovery part
GPT fdisk (gdisk) version 0.8.8
Caution: invalid backup GPT header, but valid main header; regenerating
backup header from main header.
Partition table scan:
MBR: protective
BSD: not present
APM: not present
GPT: damaged
****************************************************************************
Caution: Found protective or hybrid MBR and corrupt GPT. Using GPT, but disk
verification and recovery are STRONGLY recommended.
****************************************************************************
Disk /dev/sdb: 62533296 sectors, 29.8 GiB
Logical sector size: 512 bytes
Disk identifier (GUID): E570001D-72F5-4B82-9140-55C7BE414621
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 16777182
Partitions will be aligned on 2048-sector boundaries
Total free space is 4029 sectors (2.0 MiB)
Number Start (sector) End (sector) Size Code Name
1 2048 16775167 8.0 GiB 8400 Basic data partition
當我嘗試在 BIOS 中將 SATA 從 ISRT 變更為 AHCI 時,出現了此訊息,但無論如何,Windows 啟動正常(我甚至停用了快速啟動功能)。
在此之前,Ubuntu 安裝程式從未見過現有分割區。
請問你能幫我安裝Linux嗎?
答案1
您的問題是 GPT 資料損壞。不過,這很可能是其他問題的症狀 - 最有可能的是,您的磁碟已配置為基於主機板的軟體 RAID(又名“假 RAID”)。這可能會導致磁碟大小不匹配,從而導致最終磁區在某些環境中看起來遺失。此類問題可能很難解決。它可能涉及挖掘您的韌體設定並使用 Linuxdmraid
甚至dd
實用程式來清除錯誤的 RAID 資料。
OTOH,可能是其他原因損壞了 GPT 備份資料。如果您安裝了任何第三方 Windows 磁碟公用程式(加密工具、開機載入程式等),則它們很可疑並且可能損壞了磁碟。我建議卸載它們然後修復 GPT 損壞。
答案2
我透過在 Ubuntu 14.04 LiveCD 上使用 gparted 成功修復了損壞。它提示我修復 sda (HDD) 和 sdb (SSD) 上的錯誤。