mick.crane composed on 2026-08-08 16:25 (UTC+0100):

> This is with only the 2.73TB and the 111GB disk connected.
> root@melon:~# fdisk -l
> Disk /dev/sdb: 111.79 GiB, 120034123776 bytes, 234441648 sectors
> Disk model: CT120BX500SSD1
> 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: D97B2271-48BB-4988-BEFA-5153C05D7C94
> 
> Device         Start       End   Sectors   Size Type
> /dev/sdb1       2048   2000895   1998848   976M EFI System
> /dev/sdb2    2000896 222339071 220338176 105.1G Linux filesystem
> /dev/sdb3  222339072 234440703  12101632   5.8G Linux swap
> The backup GPT table is corrupt, but the primary appears OK, so that 
> will be used.
> 
> ### (^^^^^^^ I always thought that this message was about the 111GB disk 
> but now I think it is the fdisk reading first the partition/GPT table of 
> the 2.73TB disk)

This is expected behavior from a true cloning, such as with dd or ddrescue, 
from a
GPT disk to a larger GPT disk, since the backup partition table is at the very 
end
of a GPT disk, and there isn't a valid one, or any at all, after such a clone.

Whether any tool(s) exist in standard repos that can build a valid new table
during its "cloning" process I have no idea. Given how long GPT has existed, if
there isn't/aren't, it/they is/are long overdue.

I've been using a formerly proprietary multi-platform partitioner, from
http://www.dfsee.com/dfsee/, for more than two decades, for my partitioning and
cloning. I don't remember if it has a menu option or script to build a new 
backup
table after such a clone, but whether it does or not, it is easy (IMO) to use it
to remove all partitions, thus eliminating the existing table, then create them
all anew at the same sizes and locations with no disruption of their content. It
automatically logs everything done with it, thus exiting with all existing
partition information, plus session history, invaluably cataloged for future use
in such or any other situations.
-- 
Evolution as taught in public schools is, like religion,
        based on faith, not based on science.

 Team OS/2 ** Reg. Linux User #211409 ** a11y rocks!

Felix Miata

Reply via email to