我们使用USB3.0驱动器caddy (Sabrent EC-DFFN)连接到我们的Ubuntu20.04服务器进行备份。我们每天使用几个make/model 6TB旋转驱动器(每天一个驱动器)。每个驱动器都在服务器(通过USB3.0caddy)上使用fdisk进行分区。创建了一个GPT分区,然后创建了一个EXT4文件系统。服务器能够在没有问题的情况下安装和使用这些驱动器。
我被要求还原一个文件以供审阅,但不是将它还原到服务器上。因此,我尝试通过我的eSATA在我的Ubuntu20.04工作站上挂载驱动器,但是驱动器不会挂载。我得到了一个GPT PMBR尺寸错配。
在工作站上运行fdisk显示:
GPT PMBR size mismatch (1465130645 != 11721045167) will be corrected by write.
Disk /dev/sde: 5.47 TiB, 6001175126016 bytes, 11721045168 sectors
Disk model: ST6000NM0044
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: dos
Disk identifier: 0x00000000
Device Boot Start End Sectors Size Id Type
/dev/sde1 1 4294967295 4294967295 2T ee GPT
Partition 1 does not start on physical sector boundary.在工作站上运行parted显示:
Error: /dev/sde: unrecognised disk label
Model: ATA ST6000NM0044 (scsi)
Disk /dev/sde: 6001GB
Sector size (logical/physical): 512B/4096B
Partition Table: unknown
Disk Flags:在服务器上运行fdisk显示:
Disk /dev/sdb: 5.47 TiB, 6001175126016 bytes, 1465130646 sectors
Disk model:
Units: sectors of 1 * 4096 = 4096 bytes
Sector size (logical/physical): 4096 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 33550336 bytes
Disklabel type: gpt
Disk identifier: B910325B-5CFF-6C46-806A-E95EA72EBFC1
Device Start End Sectors Size Type
/dev/sdb1 8191 1465130640 1465122450 5.5T Linux filesystem在服务器上运行parted显示:
Model: SABRENT (scsi)
Disk /dev/sdb: 6001GB
Sector size (logical/physical): 4096B/4096B
Partition Table: gpt
Disk Flags:
Number Start End Size File system Name Flags
1 33.6MB 6001GB 6001GB ext4服务器上创建的每个驱动器在我的工作站上都报告了相同的GPT大小不匹配问题,但是服务器可以挂载、读取、写入,换句话说,使用这些驱动器没有问题。
我遗漏了什么?这是eSATA的限制吗?
编辑2021-04-22
Per@oldfred,我在工作站和服务器上都检查了fdisk版本,两者都在运行2.34版本。
在工作站上运行gdisk显示:
GPT fdisk (gdisk) version 1.0.5
Partition table scan:
MBR: protective
BSD: not present
APM: not present
GPT: not present
Creating new GPT entries in memory.
Disk /dev/sde: 11721045168 sectors, 5.5 TiB
Model: ST6000NM0044
Sector size (logical/physical): 512/4096 bytes
Disk identifier (GUID): FDBF8804-11D0-44B5-9957-03F5F2D68131
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 11721045134
Partitions will be aligned on 2048-sector boundaries
Total free space is 11721045101 sectors (5.5 TiB)
Number Start (sector) End (sector) Size Code Name在服务器上运行gdisk显示:
GPT fdisk (gdisk) version 1.0.5
Partition table scan:
MBR: protective
BSD: not present
APM: not present
GPT: present
Found valid GPT with protective MBR; using GPT.
Disk /dev/sdb: 1465130646 sectors, 5.5 TiB
Model:
Sector size (logical/physical): 4096/4096 bytes
Disk identifier (GUID): B910325B-5CFF-6C46-806A-E95EA72EBFC1
Partition table holds up to 128 entries
Main partition table begins at sector 2 and ends at sector 5
First usable sector is 8191, last usable sector is 1465130640
Partitions will be aligned on 8-sector boundaries
Total free space is 0 sectors (0 bytes)
Number Start (sector) End (sector) Size Code Name
1 8191 1465130640 5.5 TiB 8300 发布于 2021-04-24 14:14:00
我以前也有过类似的问题。解决方案是在它上运行fdisk并使用w保存现有的分区表,而不做任何更改。
GPT磁盘附带一个“保护性MBR”(PMBR),其中包含一个虚拟分区,尽可能覆盖整个磁盘,这可能导致您正在看到的大小不匹配问题。
这对存储在磁盘上的数据没有任何影响;它的存在只是为了防止只使用MBR的旧磁盘分区工具。
希望这能有所帮助
https://askubuntu.com/questions/1332961
复制相似问题