修复 GPT 表损坏的 USB 闪存驱动器

修复 GPT 表损坏的 USB 闪存驱动器

我在使用TransMac失败后,USB闪存驱动器(32GB)出现问题。现在闪存驱动器包含两个无法删除的分区和一个空白空间。

磁盘管理:

root@user-virtual-machine:/home/user# gdisk /dev/sdb
GPT fdisk (gdisk) version 1.0.8

Caution: invalid backup GPT header, but valid main header; regenerating
backup header from main header.

Warning! Main and backup partition tables differ! Use the 'c' and 'e' options
on the recovery & transformation menu to examine the two tables.

Warning! One or more CRCs don't match. You should repair the disk!
Main header: OK
Backup header: ERROR
Main partition table: OK
Backup partition table: ERROR

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.
****************************************************************************

Command (? for help): p
Disk /dev/sdb: 62656641 sectors, 29.9 GiB
Model: Flash Drive FIT 
Sector size (logical/physical): 512/512 bytes
Disk identifier (GUID): 44FBDEB4-5E34-46A6-8849-4B3894C93E5D
Partition table holds up to 128 entries
Main partition table begins at sector 2 and ends at sector 33
First usable sector is 34, last usable sector is 18256190
Partitions will be aligned on 8-sector boundaries
Total free space is 262157 sectors (128.0 MiB)

Number  Start (sector)    End (sector)  Size       Code  Name
   1              40          409639   200.0 MiB   EF00  EFI System Partition
   2          409640        17994039   8.4 GiB     AF00  disk image

fdisk:

root@user-virtual-machine:/home/user# fdisk /dev/sdb -l
GPT PMBR size mismatch (18256223 != 62656640) will be corrected by write.
The backup GPT table is corrupt, but the primary appears OK, so that will be used.
The backup GPT table is not on the end of the device.
Disk /dev/sdb: 29,88 GiB, 32080200192 bytes, 62656641 sectors
Disk model: Flash Drive FIT 
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 44FBDEB4-5E34-46A6-8849-4B3894C93E5D

Device      Start      End  Sectors  Size Type
/dev/sdb1      40   409639   409600  200M EFI System
/dev/sdb2  409640 17994039 17584400  8,4G Apple HFS/HFS+

GParted:

在此处输入图片描述 在此处输入图片描述 在此处输入图片描述

相关内容