Gparted 显示 HDD 为未分配

Gparted 显示 HDD 为未分配

我有视窗8.1&我打算安装卡利Linux用它。

但是,安装时gparted显示整个硬盘未分配并出现警告。

警告如下:

/dev/sda 包含 GPT 签名,表明它有一个 GPT 表。然而,它没有一个有效的假 msdos 分区表,而它应该有。也许它已损坏 - 可能是由不理解 GPT 分区表的程序损坏的。或者您可能删除了 GPT 表,并且现在使用 msdos 分区表。这是GPT分区表吗?

gdisk可以从 读取我的分区,mbr但不能从gpt.

这是显示的内容:

root@kali:~# sudo gdisk -l /dev/sda 
GPT fdisk (gdisk) version 0.8.5

Partition table scan:
  MBR: MBR only
  BSD: not present
  APM: not present
  GPT: present

Found valid MBR and GPT. Which do you want to use?
 1 - MBR
 2 - GPT
 3 - Create blank GPT

Your answer: 1
Disk /dev/sda: 1953525168 sectors, 931.5 GiB
Logical sector size: 512 bytes
Disk identifier (GUID): ED648B30-B2CA-4C17-875F-3BB5BE8015E5
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 1953525134
Partitions will be aligned on 2048-sector boundaries
Total free space is 205600109 sectors (98.0 GiB)

Number  Start (sector)    End (sector)  Size       Code  Name
   1            2048         2050047   1000.0 MiB  0700  Microsoft basic data
   2         2582528         4630527   1000.0 MiB  0700  Microsoft basic data
   5         4892672       982384639   466.1 GiB   0700  Microsoft basic data
   6       982386688      1748723711   365.4 GiB   0700  Microsoft basic data

root@kali:~# sudo gdisk -l /dev/sda 
GPT fdisk (gdisk) version 0.8.5

Partition table scan:
  MBR: MBR only
  BSD: not present
  APM: not present
  GPT: present

Found valid MBR and GPT. Which do you want to use?
 1 - MBR
 2 - GPT
 3 - Create blank GPT

Your answer: 2
Using GPT and creating fresh protective MBR.
Disk /dev/sda: 1953525168 sectors, 931.5 GiB
Logical sector size: 512 bytes
Disk identifier (GUID): F2A030D1-94C2-4592-9DFA-D227C1615693
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 1953525134
Partitions will be aligned on 2048-sector boundaries
Total free space is 1953525101 sectors (931.5 GiB)

Number  Start (sector)    End (sector)  Size       Code  Name

聚苯乙烯:我尝试使用f -"load MBR and build fresh GPT"recovery/transformation options”中的 gdisk 选项。

然而,它没有用,因为gparted显示了同样的事情。

答案1

您是否使用最新版本的 GParted(当前最新版本是 0.23.0)?

GParted 使用parted 项目中的libparted 库来检测和操作分区。在您的情况下,MSDOS 和 GUID 分区表似乎都存在。您可以尝试直接从命令行运行parted:

sudo parted /dev/sda

并指示parted仅使用带有保护性MBR的GPT。

相关内容