首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >无法写入GPT表的gdisk

无法写入GPT表的gdisk
EN

Ask Ubuntu用户
提问于 2015-12-31 11:43:58
回答 1查看 15.1K关注 0票数 0

我正在试图恢复一个磁盘,它似乎具有保护MBR的损坏ID。

昨天,我备份了GPT和保护性MBR,并将其倒入档案。

当时fdisk报告MBR类型ID为83,其中应该是保护性MBR的EE。

多亏了http://www.rodsbooks.com/gdisk/gdisk.html的一套很好的页面,我决定最好的做法是:

  1. 调用gdisk并选择GPT选项(它显示的是MBR,但不是在保护模式下)。我知道选择GPT创造了一个全新的保护MBR。
  2. 将表写入磁盘,恢复保护性MBR。

因此,我今天尝试了一下,但是一夜之间发生了一些变化,现在gdisk显示:

代码语言:javascript
复制
GPT fdisk (gdisk) version 0.8.8

Type device filename, or press <Enter> to exit: /dev/sdc
Warning! Read error 5; strange behavior now likely!
Warning! Read error 5; strange behavior now likely!
Partition table scan:
  MBR: not present
  BSD: not present
  APM: not present
  GPT: not present

Creating new GPT entries.

(一夜之间,我确实在运行photorec,今天我决定杀了它--我不认为它有侵扰性,但不知道这是否与gdisk报告的状态变化有关。如果没有,那么磁盘很可能真的坏了。)

总之,我加载了备份的GPT,分区看起来很好:

代码语言:javascript
复制
Recovery/transformation command (? for help): l
Enter backup filename to load: sdb_gpt.txt

Recovery/transformation command (? for help): p
Disk /dev/sdc: 5860533168 sectors, 2.7 TiB
Logical sector size: 512 bytes
Disk identifier (GUID): 503CCEC8-87B4-4A12-B19B-1B1D224C216E
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 5860533134
Partitions will be aligned on 2048-sector boundaries
Total free space is 2925 sectors (1.4 MiB)

Number  Start (sector)    End (sector)  Size       Code  Name
   1            2048         3905535   1.9 GiB     EF02  
   2         3905536        11718655   3.7 GiB     8200  
   3        11718656      5761718271   2.7 TiB     0700  
   4      5761718272      5860532223   47.1 GiB    8300  

Recovery/transformation command (? for help): o

Disk size is 5860533168 sectors (2.7 TiB)
MBR disk identifier: 0x00000000
MBR partitions:

Number  Boot  Start Sector   End Sector   Status      Code
   1                     1   4294967295   primary     0xEE

但是..。我不能把它写出来

代码语言:javascript
复制
Recovery/transformation command (? for help): w

Final checks complete. About to write GPT data. THIS WILL OVERWRITE EXISTING
PARTITIONS!!

Do you want to proceed? (Y/N): Y
OK; writing new GUID partition table (GPT) to /dev/sdc.
Unable to save backup partition table! Perhaps the 'e' option on the experts'
menu will resolve this problem.
Warning! An error was reported when writing the partition table! This error
MIGHT be harmless, or the disk might be damaged! Checking it is advisable.

我觉得我快修好了。为什么gdisk会写不出来?我能做些什么来修复较低级别的磁盘吗?

我能/应该在磁盘开始时擦除MBR和分区表,然后重试写吗?

EN

回答 1

Ask Ubuntu用户

发布于 2016-01-05 13:59:11

Linux的错误#5是I/O错误。这几乎总是意味着硬件故障,这也与您的其他症状一致。我建议您检查磁盘的智能状态看看它是否失败。如果SMART表示磁盘正常,您可以尝试更换它的电缆或将其移动到不同的SATA端口(如果计算机是桌面的话),因为坏的电缆和连接器有时会导致问题。如果智能结果看起来很糟糕,或者电缆交换没有帮助,您可能需要更换磁盘。

票数 1
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/715358

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档