我用 2 TB 硬盘替换了一个 1 TB 硬盘(它包含一个 EXT4 分区,其中有很多硬链接到该分区内的备份文件/目录。它还有一堆常规文件/目录),现在我正在尝试将前者的数据从外部硬盘读取器复制回新磁盘。不幸的是,旧磁盘似乎不喜欢被拖回家,现在它拒绝安装唯一的分区。
gdisk /dev/sdf1
显示:
GPT fdisk (gdisk) version 1.0.6
Warning: Partition table header claims that the size of partition table
entries is 0 bytes, but this program supports only 128-byte entries.
Adjusting accordingly, but partition table may be garbage.
Warning: Partition table header claims that the size of partition table
entries is 0 bytes, but this program supports only 128-byte entries.
Adjusting accordingly, but partition table may be garbage.
Partition table scan:
MBR: MBR only
BSD: not present
APM: not present
GPT: not present
Found invalid GPT and valid MBR; converting MBR to GPT format
in memory.
Warning! Secondary partition table overlaps the last partition by
1709333071 blocks!
You will need to delete this partition or resize it in another utility.
Disk /dev/sdf: 244190646 sectors, 931.5 GiB
Model: 003-1SB102
Sector size (logical/physical): 4096/4096 bytes
Disk identifier (GUID): 0B823749-13F7-4A4E-A8C4-F4F507A94A79
Partition table holds up to 128 entries
Main partition table begins at sector 2 and ends at sector 5
First usable sector is 6, last usable sector is 244190640
Partitions will be aligned on 256-sector boundaries
Total free space is 2042 sectors (8.0 MiB)
Number Start (sector) End (sector) Size Code Name
1 2048 1953523711 7.3 TiB 8300 Linux filesystem
让我感到困惑的是报告末尾声称的奇怪的二级分区表和虚幻的7.3 TiB。磁盘在取出之前运行良好,即使是现在,通过外部方式连接,smartmontools显示其运行状况也没有问题。
更多信息:
我猜这个问题与swapspace
磁盘运行时在该分区上启用服务有关。testdisk
实用程序检测到几个交换分区,我猜它们是swapspace
为保存交换数据而创建的交换文件。也许这些虚假的“分区”让 gdisk 误以为有 7 TB 的磁盘空间......
有什么想法/指导吗?
安东尼奥